#include <lineattr.h>
Inheritance diagram for AttrMitreLimit:
Public Member Functions | |
AttrMitreLimit () | |
Default constructor for Join Type Attribute class. | |
AttrMitreLimit (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a MitreLimit Attribute. | |
void | Render (RenderRegion *pRender) |
'Renders' a MitreLimit 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 INT32 | operator== (const NodeAttribute &NodeAttrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual UINT32 | GetAttrNameID (void) |
Returns back a string resource ID describing the attribute. | |
virtual AttributeValue * | GetAttributeValue () |
virtual CCRuntimeClass * | GetAttributeType () |
virtual AttrIndex | GetAttributeIndex () |
virtual BOOL | EffectsParentBounds () |
Virtual function for determining if the node will effect it's parent bounds. eg. ArrowHeads. | |
void | GetDebugDetails (StringBase *Str) |
For obtaining debug information about the Node. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes the mitre limit record to the filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
Public Attributes | |
MitreLimitAttribute | Value |
Private Member Functions | |
void | CopyNodeContents (AttrMitreLimit *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 661 of file lineattr.h.
|
Default constructor for Join Type Attribute class.
Definition at line 2977 of file lineattr.cpp. 02977 : NodeAttribute() 02978 { 02979 }
|
|
Creates a MitreLimit Attribute.
Definition at line 2952 of file lineattr.cpp. 02958 : NodeAttribute(ContextNode, Direction, Locked, Mangled, Marked, Selected) 02959 { 02960 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 3094 of file lineattr.cpp. 03095 { 03096 NodeAttribute::CopyNodeContents( NodeCopy ); 03097 NodeCopy->Value.MitreLimit = Value.MitreLimit; 03098 }
|
|
Virtual function for determining if the node will effect it's parent bounds. eg. ArrowHeads.
Reimplemented from NodeAttribute. Definition at line 684 of file lineattr.h. 00684 { return TRUE; }
|
|
Reimplemented from NodeAttribute. Definition at line 682 of file lineattr.h. 00682 { return ATTR_MITRELIMIT; }
|
|
Reimplemented from NodeAttribute. Definition at line 681 of file lineattr.h. 00681 { return CC_RUNTIME_CLASS(AttrMitreLimit); }
|
|
Reimplemented from NodeAttribute. Definition at line 680 of file lineattr.h. 00680 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 3071 of file lineattr.cpp. 03072 { 03073 return (_R(IDS_MITRE_LIMIT)); 03074 }
|
|
For obtaining debug information about the Node.
Reimplemented from NodeRenderable. Definition at line 3144 of file lineattr.cpp. 03145 { 03146 #ifdef _DEBUG 03147 NodeAttribute::GetDebugDetails( Str ); 03148 03149 String_256 TempStr; 03150 TempStr._MakeMsg( TEXT("\r\nMitre limit=#1%ld\r\n"), Value.MitreLimit ); 03151 (*Str) += TempStr; 03152 #endif 03153 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 3170 of file lineattr.cpp. 03171 { 03172 return (sizeof(AttrMitreLimit)); 03173 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 3047 of file lineattr.cpp. 03048 { 03049 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrMitreLimit)), 03050 "Trying to compare two objects with different types"); 03051 AttrMitreLimit* Attr = (AttrMitreLimit*) &Attrib; 03052 return (Attr->Value.MitreLimit == Value.MitreLimit); 03053 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 3114 of file lineattr.cpp. 03115 { 03116 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 03117 ENSURE(IS_A(pNodeCopy, AttrMitreLimit), "PolyCopyNodeContents given wrong dest node type"); 03118 03119 if (IS_A(pNodeCopy, AttrMitreLimit)) 03120 CopyNodeContents((AttrMitreLimit*)pNodeCopy); 03121 }
|
|
'Renders' a MitreLimit attribute.
Reimplemented from NodeAttribute. Definition at line 2996 of file lineattr.cpp. 02997 { 02998 pRender->SetMitreLimit(&Value, FALSE); 02999 }
|
|
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 3020 of file lineattr.cpp. 03021 { 03022 AttrMitreLimit* NodeCopy = new AttrMitreLimit(); 03023 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 03024 CopyNodeContents(NodeCopy); 03025 return NodeCopy; 03026 }
|
|
Reimplemented from Node. Definition at line 3211 of file lineattr.cpp. 03212 { 03213 #ifdef DO_EXPORT 03214 return WritePreChildrenWeb(pFilter); 03215 #else 03216 return FALSE; 03217 #endif 03218 }
|
|
Writes the mitre limit record to the filter. > virtual BOOL AttrMitreLimit::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 3191 of file lineattr.cpp. 03192 { 03193 #ifdef DO_EXPORT 03194 ERROR2IF(pFilter == NULL,FALSE,"NULL filter param"); 03195 03196 CamelotFileRecord Rec(pFilter,TAG_MITRELIMIT,TAG_MITRELIMIT_SIZE); 03197 03198 BOOL ok = Rec.Init(); 03199 if (ok) ok = Rec.WriteINT32(Value.MitreLimit); 03200 if (ok) ok = pFilter->Write(&Rec); 03201 03202 return ok; 03203 #else 03204 return FALSE; 03205 #endif 03206 }
|
|
Definition at line 703 of file lineattr.h. |