#include <fillattr2.h>
Inheritance diagram for AttrMould:
Public Member Functions | |
AttrMould () | |
AttrMould (NodeMould *pMould, MouldGeometry *pMouldShape) | |
Constructor for Mould attribute. | |
AttrMould (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
virtual INT32 | operator== (const NodeAttribute &NodeAttrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual CCRuntimeClass * | GetAttributeType () |
void | Render (RenderRegion *pRender) |
'Renders' a Mould attribute. | |
Node * | SimpleCopy () |
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes. | |
virtual UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
MouldGeometry * | GetMouldShape () |
void | SetMouldShape (MouldGeometry *pMould) |
NodeMould * | GetParentMould () |
void | SetParentMould (NodeMould *pMould) |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
Public Attributes | |
MouldAttribute | Value |
Private Member Functions | |
BOOL | CopyNodeContents (AttrMould *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 2954 of file fillattr2.h.
|
Definition at line 2959 of file fillattr2.h.
|
|
Constructor for Mould attribute.
Definition at line 19649 of file fillattr.cpp. 19650 { 19651 SetParentMould(pMould); 19652 SetMouldShape(pMouldShape); 19653 }
|
|
Definition at line 2961 of file fillattr2.h. 02966 : 02967 NodeAttribute (ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 19750 of file fillattr.cpp. 19751 { 19752 ERROR2IF(NodeCopy == NULL, FALSE, "NULL pointer in AttrMould::CopyNodeContents!"); 19753 19754 NodeAttribute::CopyNodeContents(NodeCopy); 19755 19756 // Copy contents specific to derived class here 19757 NodeCopy->Value.SimpleCopy(&Value); 19758 return TRUE; 19759 }
|
|
Reimplemented from NodeAttribute. Definition at line 2971 of file fillattr2.h. 02971 { return CC_RUNTIME_CLASS(AttrMould); }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 19731 of file fillattr.cpp. 19732 { 19733 return (_R(IDS_ATTRMOULD)); 19734 }
|
|
Definition at line 2978 of file fillattr2.h. 02978 { return Value.GetMouldShape(); }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 19796 of file fillattr.cpp. 19797 { 19798 return (sizeof(AttrMould)); 19799 }
|
|
Definition at line 2981 of file fillattr2.h. 02981 { return Value.GetParentMould(); }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 19671 of file fillattr.cpp. 19672 { 19673 ERROR3IF(!Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrMould)), 19674 "Trying to compare two objects with different types"); 19675 19676 return (GetParentMould() == ((AttrMould*)&Attrib)->GetParentMould()); 19677 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 19773 of file fillattr.cpp. 19774 { 19775 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 19776 ENSURE(IS_A(pNodeCopy, AttrMould), "PolyCopyNodeContents given wrong dest node type"); 19777 19778 if (IS_A(pNodeCopy, AttrMould)) 19779 CopyNodeContents((AttrMould*)pNodeCopy); 19780 }
|
|
'Renders' a Mould attribute.
Reimplemented from NodeAttribute. Definition at line 19689 of file fillattr.cpp.
|
|
Definition at line 2979 of file fillattr2.h. 02979 { Value.SetMouldShape(pMould); }
|
|
Definition at line 2982 of file fillattr2.h. 02982 { Value.SetParentMould(pMould); }
|
|
This method returns a shallow copy of the node with all Node pointers NULL. The function is virtual, and must be defined for all derived classes.
Reimplemented from NodeAttribute. Definition at line 19709 of file fillattr.cpp. 19710 { 19711 AttrMould* NodeCopy = new AttrMould; 19712 if (NodeCopy == NULL) 19713 return NULL; 19714 19715 CopyNodeContents(NodeCopy); 19716 19717 return NodeCopy; 19718 }
|
|
Definition at line 2990 of file fillattr2.h. |