#include <fillval.h>
Inheritance diagram for MouldAttribute:
Public Member Functions | |
MouldAttribute () | |
Default constructor for Mould Attribute. | |
MouldAttribute (NodeMould *pMould, MouldGeometry *pMouldShape) | |
Constructor for Mould attribute. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrMould node from this fill colour attribute. | |
virtual void | Restore (RenderRegion *, BOOL) |
Restores the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour. | |
virtual void | Render (RenderRegion *, BOOL Temp=FALSE) |
Sets the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour. | |
virtual void | SimpleCopy (AttributeValue *) |
See AttributeValue::SimpleCopy. | |
MouldGeometry * | GetMouldShape () |
void | SetMouldShape (MouldGeometry *) |
Set the mould shape associated with this Attr. | |
BOOL | IsPerspective () |
NodeMould * | GetParentMould () |
void | SetParentMould (NodeMould *) |
Set the parent mould associated with this Attr. | |
Static Public Member Functions | |
static BOOL | Init () |
Registers line colour attribute, and provides a default attribute to give black lines. | |
Protected Attributes | |
MouldGeometry * | pMouldShape |
BOOL | IsPerspectiveMould: 1 |
NodeMould * | pParentMould |
Definition at line 1915 of file fillval.h.
|
Default constructor for Mould Attribute.
Definition at line 9144 of file fillval.cpp. 09145 { 09146 SetParentMould(NULL); 09147 SetMouldShape(NULL); 09148 }
|
|
Constructor for Mould attribute.
Definition at line 9161 of file fillval.cpp. 09162 { 09163 SetParentMould(pMould); 09164 SetMouldShape(pMouldShape); 09165 }
|
|
Definition at line 1929 of file fillval.h. 01929 { return pMouldShape; }
|
|
Definition at line 1934 of file fillval.h. 01934 { return pParentMould; }
|
|
Registers line colour attribute, and provides a default attribute to give black lines.
Reimplemented from SimpleCCObject. Definition at line 9269 of file fillval.cpp. 09270 { 09271 // Default to no Mould 09272 MouldAttribute *pAttr = new MouldAttribute; 09273 if (pAttr == NULL) 09274 return FALSE; 09275 09276 UINT32 ID = AttributeManager::RegisterDefaultAttribute(CC_RUNTIME_CLASS(NodeRenderableInk), 09277 pAttr); 09278 ERROR2IF(ID == ATTR_BAD_ID, FALSE, "Bad ID when Initialising MouldAttribute"); 09279 ERROR2IF(ID != ATTR_MOULD, FALSE, "Incorrect ID for MouldAttribute"); 09280 09281 return TRUE; 09282 }
|
|
Definition at line 1932 of file fillval.h. 01932 { return IsPerspectiveMould; }
|
|
Make a AttrMould node from this fill colour attribute.
Reimplemented from AttributeValue. Definition at line 9222 of file fillval.cpp. 09223 { 09224 // Create new attribute node 09225 AttrMould *pAttr = new AttrMould(); 09226 09227 // Copy attribute value into the new node. 09228 pAttr->Value.SimpleCopy(this); 09229 09230 // Return the new node 09231 return pAttr; 09232 }
|
|
Sets the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour.
Implements AttributeValue. Definition at line 9182 of file fillval.cpp.
|
|
Restores the line colour attribute for the given render region. i.e. all lines drawn will now be drawn in this colour.
Implements AttributeValue. Definition at line 9204 of file fillval.cpp.
|
|
Set the mould shape associated with this Attr.
Definition at line 9294 of file fillval.cpp. 09295 { 09296 pMouldShape = pMould; 09297 IsPerspectiveMould = FALSE; 09298 09299 if (pMouldShape == NULL) 09300 return; 09301 09302 if (pMouldShape->IsKindOf(CC_RUNTIME_CLASS(MouldPerspective))) 09303 { 09304 IsPerspectiveMould = TRUE; 09305 } 09306 }
|
|
Set the parent mould associated with this Attr.
Definition at line 9318 of file fillval.cpp. 09319 { 09320 pParentMould = pMould; 09321 }
|
|
See AttributeValue::SimpleCopy.
Implements AttributeValue. Definition at line 9248 of file fillval.cpp. 09249 { 09250 ERROR3IF(!pValue->IsKindOf(CC_RUNTIME_CLASS(MouldAttribute)), "MouldAttribute::SimpleCopy can only copy MouldAttributes"); 09251 SetParentMould(((MouldAttribute*)pValue)->GetParentMould()); 09252 SetMouldShape(((MouldAttribute*)pValue)->GetMouldShape()); 09253 }
|
|
|
|
|
|
|