#include <brshbeca.h>
Inheritance diagram for BrushBecomeAGroup:
Public Member Functions | |
BrushBecomeAGroup (BecomeAReason Reason, CCRuntimeClass *pClass, UndoableOperation *pOp) | |
constructor | |
~BrushBecomeAGroup () | |
virtual BOOL | PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap) |
Curiously enough we're only interested in receiving nodegroups here. | |
virtual BOOL | IsBrushBecomeAGroup () |
NodeGroup * | GetNodeGroup () |
Protected Attributes | |
NodeGroup * | m_pNodeGroup |
Definition at line 239 of file brshbeca.h.
|
constructor
Definition at line 718 of file brshbeca.cpp. 00719 :BecomeA(Reason, pClass, pOp) 00720 { 00721 m_pNodeGroup = NULL; 00722 }
|
|
Definition at line 737 of file brshbeca.cpp. 00738 { 00739 if (m_pNodeGroup != NULL) 00740 { 00741 m_pNodeGroup->CascadeDelete(); 00742 delete m_pNodeGroup; 00743 } 00744 }
|
|
Definition at line 795 of file brshbeca.cpp. 00796 { 00797 NodeGroup* Temp = m_pNodeGroup; 00798 m_pNodeGroup = NULL; 00799 return Temp; 00800 }
|
|
Reimplemented from BecomeA. Definition at line 253 of file brshbeca.h. 00253 { return TRUE;}
|
|
Curiously enough we're only interested in receiving nodegroups here.
Reimplemented from BecomeA. Definition at line 761 of file brshbeca.cpp. 00763 { 00764 ERROR2IF(pNewNode == NULL || pCreatedByNode == NULL, FALSE, "Input pointers are NULL in BrushBecomeA::PassBack"); 00765 00766 // we don't care about the attr maps 00767 if (pAttrMap != NULL) 00768 { 00769 pAttrMap->DeleteAttributes(); 00770 delete pAttrMap; 00771 pAttrMap = NULL; 00772 } 00773 00774 if (pNewNode->IsAGroup()) 00775 { 00776 if (m_pNodeGroup != NULL) 00777 ERROR3("Whats going on here? We've already got a nodegroup!"); 00778 m_pNodeGroup = (NodeGroup*)pNewNode; 00779 } 00780 return TRUE; 00781 }
|
|
Definition at line 257 of file brshbeca.h. |