#include <moldtool.h>
Inheritance diagram for MouldBecomeA:
Public Member Functions | |
virtual | ~MouldBecomeA () |
Destructor for the MouldBecomeA parameter. | |
MouldBecomeA (BecomeAReason Reason, CCRuntimeClass *pClass, UndoableOperation *pOp) | |
virtual BOOL | PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap) |
From the call ProducerObj->DoBecomeA( MouldBecomeA(ObjectType) ) this function being a member of MouldBecomeA will be passed objects of ObjectType created by ProducerObj. We store the first object passed to us and ignore the rest as we really can only use one thanks very much. Most simple producers will probably return single objects anyway. | |
NodePath * | GetMouldPath () const |
Protected Member Functions | |
void | Destroy () |
Destroy the contents of the mould become a object. | |
Private Member Functions | |
CC_DECLARE_MEMDUMP (MouldBecomeA) | |
Private Attributes | |
NodePath * | pNodePath |
Definition at line 546 of file moldtool.h.
|
Destructor for the MouldBecomeA parameter.
Definition at line 2176 of file moldtool.cpp. 02177 { 02178 Destroy(); 02179 }
|
|
Definition at line 553 of file moldtool.h.
|
|
|
|
Destroy the contents of the mould become a object.
Definition at line 2233 of file moldtool.cpp. 02234 { 02235 // remember on a pass back we own this object so we 02236 // really need to delete it if we're not going to use it! 02237 if (pNodePath) 02238 { 02239 pNodePath->CascadeDelete(); 02240 delete pNodePath; 02241 pNodePath = NULL; 02242 } 02243 }
|
|
Definition at line 562 of file moldtool.h. 00562 { return pNodePath; }
|
|
From the call ProducerObj->DoBecomeA( MouldBecomeA(ObjectType) ) this function being a member of MouldBecomeA will be passed objects of ObjectType created by ProducerObj. We store the first object passed to us and ignore the rest as we really can only use one thanks very much. Most simple producers will probably return single objects anyway.
Reimplemented from BecomeA. Definition at line 2204 of file moldtool.cpp. 02207 { 02208 if ( (MouldBecomeA::pNodePath==NULL) && (pNewNode->IsKindOf(CC_RUNTIME_CLASS(NodePath))) ) 02209 MouldBecomeA::pNodePath=(NodePath*)pNewNode; 02210 else 02211 { 02212 // remember on a pass back we own this object so we 02213 // really need to delete it if we're not going to use it! 02214 pNewNode->CascadeDelete(); 02215 delete pNewNode; 02216 pNewNode = NULL; 02217 } 02218 02219 return TRUE; 02220 }
|
|
Definition at line 568 of file moldtool.h. |