#include <attrval.h>
Inheritance diagram for MitreLimitAttribute:
Public Member Functions | |
MitreLimitAttribute () | |
virtual void | Restore (RenderRegion *, BOOL) |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
virtual void | SimpleCopy (AttributeValue *) |
virtual NodeAttribute * | MakeNode () |
Makes the appropriate NodeAttribute-derivative from a mitre-limit attribute. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality. | |
Static Public Member Functions | |
static BOOL | Init () |
Declares a preference that allows you to clear memory in delete(). | |
Public Attributes | |
MILLIPOINT | MitreLimit |
Definition at line 359 of file attrval.h.
|
Definition at line 1733 of file attr.cpp. 01734 { 01735 MitreLimit = 4000; 01736 }
|
|
Declares a preference that allows you to clear memory in delete().
Reimplemented from SimpleCCObject. Definition at line 1782 of file attr.cpp. 01783 { 01784 MitreLimitAttribute *pAttr = new MitreLimitAttribute; 01785 if (pAttr == NULL) 01786 return FALSE; 01787 01788 pAttr->MitreLimit = 4000; 01789 01790 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 01791 pAttr); 01792 if (ID == ATTR_BAD_ID) 01793 return FALSE; 01794 ENSURE(ID == ATTR_MITRELIMIT, "Incorrect ID for attribute!"); 01795 return TRUE; 01796 }
|
|
Compare two AttributeValue objects. The base class version always returns TRUE - derived classes should override this function to provide functionality.
Reimplemented from AttributeValue. Definition at line 1753 of file attr.cpp. 01754 { 01755 ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 01756 "Different attribute types in AttributeValue::IsDifferent()"); 01757 return ((MitreLimitAttribute *) pAttr)->MitreLimit != MitreLimit; 01758 }
|
|
Makes the appropriate NodeAttribute-derivative from a mitre-limit attribute.
Reimplemented from AttributeValue. Definition at line 1775 of file attr.cpp. 01776 { 01777 AttrMitreLimit* pAttr = new AttrMitreLimit; 01778 pAttr->Value.SimpleCopy(this); 01779 return pAttr; 01780 }
|
|
Implements AttributeValue. Definition at line 1743 of file attr.cpp. 01744 { 01745 pRegion->SetMitreLimit(this, Temp); 01746 }
|
|
Implements AttributeValue. Definition at line 1738 of file attr.cpp. 01739 { 01740 pRegion->RestoreMitreLimit(this, Temp); 01741 }
|
|
Implements AttributeValue. Definition at line 1748 of file attr.cpp. 01749 { 01750 MitreLimit = ((MitreLimitAttribute *) pValue)->MitreLimit; 01751 }
|
|
|