Inheritance diagram for JoinShapesBecomeA:
Public Member Functions | |
JoinShapesBecomeA (NodePath *pThisJoinedPath) | |
~JoinShapesBecomeA () | |
The default destructor. | |
virtual BOOL | PassBack (NodeRenderableInk *pNewNode, NodeRenderableInk *pCreatedByNode, CCAttrMap *pAttrMap) |
This receives the paths from the selected objects and joins them to pJoinedPath. | |
CCAttrMap * | GetLastAttrMap () |
This returns a ptr to an attr map that contains ptrs to the attrs of the last selected object. | |
Private Member Functions | |
CC_DECLARE_MEMDUMP (JoinShapesBecomeA) | |
Private Attributes | |
NodePath * | pJoinedPath |
NodeRenderableInk * | pLastCreatedByNode |
CCAttrMap * | pLastAttrMap |
CCAttrMap * | pCreatedByAttrMap |
Definition at line 5846 of file pathedit.cpp.
|
Definition at line 5850 of file pathedit.cpp. 05850 : 05851 BecomeA(BECOMEA_PASSBACK,CC_RUNTIME_CLASS(NodePath),NULL), 05852 pJoinedPath(pThisJoinedPath), pLastCreatedByNode(NULL), pLastAttrMap(NULL), pCreatedByAttrMap(NULL) {};
|
|
The default destructor.
Definition at line 5889 of file pathedit.cpp. 05890 { 05891 if (pLastAttrMap != NULL) 05892 { 05893 pLastAttrMap->DeleteAttributes(); 05894 delete pLastAttrMap; 05895 } 05896 05897 if (pCreatedByAttrMap != NULL) 05898 delete pCreatedByAttrMap; 05899 }
|
|
|
|
This returns a ptr to an attr map that contains ptrs to the attrs of the last selected object.
Do not delete this map or any of the attrs within it.
Definition at line 5921 of file pathedit.cpp. 05922 { 05923 CCAttrMap* pAttrMap = pLastAttrMap; 05924 05925 if (pAttrMap == NULL) 05926 { 05927 if (pCreatedByAttrMap == NULL && pLastCreatedByNode != NULL) 05928 { 05929 pCreatedByAttrMap = new CCAttrMap(30); 05930 if (pCreatedByAttrMap != NULL) 05931 { 05932 if (!pLastCreatedByNode->FindAppliedAttributes(pCreatedByAttrMap)) 05933 { 05934 delete pCreatedByAttrMap; 05935 pCreatedByAttrMap = NULL; 05936 } 05937 } 05938 } 05939 05940 pAttrMap = pCreatedByAttrMap; 05941 } 05942 05943 return pAttrMap; 05944 }
|
|
This receives the paths from the selected objects and joins them to pJoinedPath.
Reimplemented from BecomeA. Definition at line 5963 of file pathedit.cpp. 05964 { 05965 ERROR3IF(pJoinedPath == NULL,"NULL joined path"); 05966 ERROR3IF(pNewNode == NULL,"NULL new path"); 05967 if (pJoinedPath == NULL || pNewNode == NULL) 05968 return TRUE; 05969 05970 if (!pNewNode->IsNodePath()) 05971 { 05972 ERROR3("Received a node that's not a NodePath"); 05973 return TRUE; 05974 } 05975 05976 // If we have an attr map from the last call, delete it and all the attributes it contains 05977 if (pLastAttrMap != NULL) 05978 { 05979 pLastAttrMap->DeleteAttributes(); 05980 delete pLastAttrMap; 05981 } 05982 05983 // Update the 'last' vars 05984 pLastCreatedByNode = pCreatedByNode; 05985 pLastAttrMap = pAttrMap; 05986 05987 // Merge the new NodePath into our JoinedPath 05988 BOOL ok = pJoinedPath->InkPath.MergeTwoPaths(((NodePath*)pNewNode)->InkPath); 05989 05990 // Don't need the supplied NodePath anymore 05991 pNewNode->CascadeDelete(); 05992 delete pNewNode; 05993 pNewNode = NULL; 05994 05995 return ok; 05996 }
|
|
Definition at line 5866 of file pathedit.cpp. |
|
Definition at line 5862 of file pathedit.cpp. |
|
Definition at line 5865 of file pathedit.cpp. |
|
Definition at line 5864 of file pathedit.cpp. |