|
Krita Source Code Documentation
|
#include <kis_image_command.h>
Public Member Functions | |
| void | update () |
| UpdateTarget (KisImageWSP image, KisNodeSP removedNode, const QRect &updateRect) | |
Private Attributes | |
| KisImageWSP | m_image |
| int | m_removedNodeIndex |
| KisNodeSP | m_removedNodeParent |
| QRect | m_updateRect |
Used for performing the smallest update after a node has been removed from stack. First tries to setDirty() node's siblings. If it doesn't help, performs full refresh.
Definition at line 43 of file kis_image_command.h.
| KisImageCommand::UpdateTarget::UpdateTarget | ( | KisImageWSP | image, |
| KisNodeSP | removedNode, | ||
| const QRect & | updateRect ) |
We are saving an index, but not shared pointer, because the target node may suddenly reincarnate into another type of a layer during the removal process
Definition at line 30 of file kis_image_command.cpp.
References KisNode::index(), m_removedNodeIndex, m_removedNodeParent, and KisNode::parent.
| void KisImageCommand::UpdateTarget::update | ( | ) |
Definition at line 44 of file kis_image_command.cpp.
References KisNode::at(), isLayer(), KIS_ASSERT_RECOVER_RETURN, KisImageCommand::m_image, KisImage::refreshGraphAsync(), KisNode::setDirty(), and KisWeakSharedPtr< T >::toStrongRef().
|
private |
Definition at line 50 of file kis_image_command.h.
|
private |
Definition at line 52 of file kis_image_command.h.
|
private |
Definition at line 53 of file kis_image_command.h.
|
private |
Definition at line 51 of file kis_image_command.h.