#include <combshps.h>
Inheritance diagram for SelObjPathListItem:
Public Member Functions | |
SelObjPathListItem () | |
SelObjPathListItem (NodePath *pThisNodePath, NodeRenderableInk *pThisCreatedByNode, CCAttrMap *pThisAttrMap, BOOL createdByStroke=FALSE) | |
Main constructor. Sets up the item correctly. | |
~SelObjPathListItem () | |
Destructor that deletes the member path pointer, and any attrs supplied. | |
Path * | GetPath () |
Get that Path ptr boy! | |
NodePath * | GetNodePath () |
NodeRenderableInk * | GetCreatedByNode () |
CCAttrMap * | GetAttrMap () |
ListRange * | GetEffectStack () |
BOOL | GetStrokeCreatedPassbackPath () |
Private Attributes | |
NodePath * | pNodePath |
NodeRenderableInk * | pCreatedByNode |
CCAttrMap * | pAttrMap |
ListRange * | pEffectStack |
BOOL | strokeCreatedPassbackPath |
Definition at line 145 of file combshps.h.
|
Definition at line 150 of file combshps.h. 00150 : pNodePath(NULL), pCreatedByNode(NULL), pAttrMap(NULL), strokeCreatedPassbackPath(FALSE) {} // For CC_IMPLEMENT_...
|
|
Main constructor. Sets up the item correctly.
Definition at line 2672 of file combshps.cpp. 02673 { 02674 pNodePath = pThisNodePath; 02675 pCreatedByNode = pThisCreatedByNode; 02676 pAttrMap = pThisAttrMap; 02677 strokeCreatedPassbackPath = createdByStroke; 02678 pEffectStack = NULL; 02679 }
|
|
Destructor that deletes the member path pointer, and any attrs supplied.
Definition at line 2696 of file combshps.cpp. 02697 { 02698 // Must delete the NodePaths generated via the DoBecomeA() mechanism 02699 // Only delete if this node is not in the tree! 02700 if (pNodePath != NULL && pNodePath!=pCreatedByNode && pNodePath->FindParent()==NULL && pNodePath->GetHiddenCnt()==0) 02701 { 02702 pNodePath->CascadeDelete(); 02703 delete pNodePath; 02704 } 02705 02706 if (pAttrMap != NULL) 02707 { 02708 // Delete all the attrs in the map 02709 CCRuntimeClass * pType; 02710 void* pVal; 02711 02712 // iterating all (key, value) pairs 02713 for (CCAttrMap::iterator Pos = pAttrMap->GetStartPosition(); Pos != pAttrMap->GetEndPosition();) 02714 { 02715 // Get attr at position Pos 02716 pAttrMap->GetNextAssoc(Pos,pType,pVal); 02717 02718 if (pVal != NULL) 02719 { 02720 pAttrMap->RemoveKey(pType); 02721 delete (NodeAttribute*)pVal; 02722 } 02723 } 02724 02725 // delete the actual map 02726 delete pAttrMap; 02727 } 02728 02729 if (pEffectStack) 02730 { 02731 delete pEffectStack; 02732 pEffectStack = NULL; 02733 } 02734 }
|
|
Definition at line 158 of file combshps.h. 00158 { return pAttrMap; }
|
|
Definition at line 157 of file combshps.h. 00157 { return pCreatedByNode; }
|
|
Definition at line 160 of file combshps.h. 00161 { 00162 if (pEffectStack==NULL && pCreatedByNode->FindParent()!=NULL) 00163 pEffectStack = EffectsStack::GetEffectsStackFromNode(pCreatedByNode); 00164 if (pEffectStack==NULL && pNodePath->FindParent()!=NULL) 00165 pEffectStack = EffectsStack::GetEffectsStackFromNode(pNodePath); 00166 return pEffectStack; 00167 }
|
|
Definition at line 156 of file combshps.h. 00156 { return pNodePath; }
|
|
Get that Path ptr boy!
Definition at line 2750 of file combshps.cpp. 02751 { 02752 if (pNodePath != NULL) 02753 return &(pNodePath->InkPath); 02754 else 02755 return NULL; 02756 }
|
|
Definition at line 169 of file combshps.h. 00169 { return (strokeCreatedPassbackPath); }
|
|
Definition at line 174 of file combshps.h. |
|
Definition at line 173 of file combshps.h. |
|
Definition at line 175 of file combshps.h. |
|
Definition at line 172 of file combshps.h. |
|
Definition at line 177 of file combshps.h. |