#include <attrval.h>
Inheritance diagram for StartArrowAttribute:
Public Member Functions | |
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 fill-type 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 () |
Registers line width attribute, and provides a default attribute to give non-dotted lines. | |
Public Attributes | |
ArrowRec | StartArrow |
Definition at line 237 of file attrval.h.
|
Registers line width attribute, and provides a default attribute to give non-dotted lines.
Reimplemented from SimpleCCObject. Definition at line 2046 of file attr.cpp. 02047 { 02048 // Default to non-dotted lines 02049 StartArrowAttribute *pAttr = new StartArrowAttribute; 02050 if (pAttr == NULL) 02051 return FALSE; 02052 02053 /* 02054 SA_STRAIGHTARROW, 02055 SA_ANGLEDARROW, 02056 SA_ROUNDEDARROW, 02057 SA_SPOT, 02058 SA_DIAMOND, 02059 SA_ARROWFEATHER, 02060 SA_ARROWFEATHER2, 02061 SA_HOLLOWDIAMOND, 02062 */ 02063 02064 // pAttr->StartArrow.CreateStockArrow(SA_ARROWFEATHER2); 02065 02066 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 02067 pAttr); 02068 if (ID == ATTR_BAD_ID) 02069 return FALSE; 02070 ENSURE(ID == ATTR_STARTARROW, "Incorrect ID for End Arrow attribute!"); 02071 return TRUE; 02072 }
|
|
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 2003 of file attr.cpp. 02004 { 02005 ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 02006 "Different attribute types in AttributeValue::IsDifferent()"); 02007 return !(((StartArrowAttribute *) pAttr)->StartArrow == StartArrow); 02008 }
|
|
Makes the appropriate NodeAttribute-derivative from a fill-type attribute.
Reimplemented from AttributeValue. Definition at line 2025 of file attr.cpp. 02026 { 02027 AttrStartArrow* pAttr = new AttrStartArrow; 02028 pAttr->Value.SimpleCopy(this); 02029 return pAttr; 02030 }
|
|
Implements AttributeValue. Definition at line 1987 of file attr.cpp. 01988 { 01989 pRegion->SetStartArrow(this, Temp); 01990 }
|
|
Implements AttributeValue. Definition at line 1992 of file attr.cpp. 01993 { 01994 pRegion->RestoreStartArrow(this, Temp); 01995 }
|
|
Implements AttributeValue. Definition at line 1997 of file attr.cpp. 01998 { 01999 StartArrow = ((StartArrowAttribute *) pValue)->StartArrow; 02000 StartArrow.m_bExtendPath = ((StartArrowAttribute *) pValue)->StartArrow.m_bExtendPath; 02001 }
|
|
|