#include <attrbev.h>
Inheritance diagram for BevelAttributeValueContrast:
Public Member Functions | |
BevelAttributeValueContrast () | |
BevelAttributeValueContrast (INT32 val) | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrbValue node from this line width attribute. | |
BOOL | IsDifferent (AttributeValue *pAttr) |
See base class version. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers line width attribute, and provides a default attribute to give 0.25pt lines. | |
Public Attributes | |
INT32 | m_Contrast |
Definition at line 325 of file attrbev.h.
|
Definition at line 1066 of file attrbev.cpp. 01067 { 01068 m_Contrast = 50; 01069 }
|
|
Definition at line 330 of file attrbev.h. 00330 { m_Contrast = val; }
|
|
Registers line width attribute, and provides a default attribute to give 0.25pt lines.
Reimplemented from SimpleCCObject. Definition at line 1144 of file attrbev.cpp. 01145 { 01146 BevelAttributeValueContrast *pAttr = new BevelAttributeValueContrast; 01147 if (pAttr == NULL) 01148 return FALSE; 01149 01150 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 01151 pAttr); 01152 if (ID == ATTR_BAD_ID) 01153 return FALSE; 01154 ENSURE(ID == ATTR_BEVELCONTRAST, "Incorrect ID for attribute!"); 01155 return TRUE; 01156 }
|
|
See base class version.
Reimplemented from AttributeValue. Definition at line 1195 of file attrbev.cpp. 01196 { 01197 ENSURE(GetRuntimeClass() == pAttr->GetRuntimeClass(), 01198 "Different attribute types in AttributeValue::IsDifferent()"); 01199 return ((BevelAttributeValueContrast *) pAttr)->m_Contrast != m_Contrast; 01200 }
|
|
Make a AttrbValue node from this line width attribute.
Reimplemented from AttributeValue. Definition at line 1171 of file attrbev.cpp. 01172 { 01173 // Create new attribute node 01174 AttrBevelContrast *pAttr = new AttrBevelContrast(); 01175 01176 // Copy attribute value into the new node. 01177 pAttr->Value.SimpleCopy(this); 01178 01179 // Return the new node 01180 return pAttr; 01181 }
|
|
Sets the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
Implements AttributeValue. Definition at line 1086 of file attrbev.cpp.
|
|
Restores the line width attribute for the given render region. i.e. all lines drawn will now be drawn with this line width.
Implements AttributeValue. Definition at line 1107 of file attrbev.cpp.
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 1125 of file attrbev.cpp. 01126 { 01127 m_Contrast = ((BevelAttributeValueContrast *) pValue)->m_Contrast; 01128 }
|
|
|