#include <fillattr2.h>
Inheritance diagram for AttrFillMappingLinear:
Public Member Functions | |
AttrFillMappingLinear () | |
AttrFillMappingLinear (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
void | Render (RenderRegion *pRender) |
'Renders' a linear graduation fill mapping 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 UINT32 | GetAttrNameID (void) |
Returns a string resource ID describing the attribute. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual AttributeValue * | GetAttributeValue () |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes the linear fill mapping record to the filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
Public Attributes | |
FillMappingLinearAttribute | Value |
Private Member Functions | |
BOOL | CopyNodeContents (AttrFillMappingLinear *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 2568 of file fillattr2.h.
|
Definition at line 2573 of file fillattr2.h. 02573 : AttrFillMapping() {}
|
|
Definition at line 2574 of file fillattr2.h. 02579 : 02580 AttrFillMapping(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 18383 of file fillattr.cpp. 18384 { 18385 ERROR2IF(NodeCopy == NULL, FALSE, "NULL pointer in AttrFillMappingLinear::CopyNodeContents!"); 18386 18387 NodeAttribute::CopyNodeContents(NodeCopy); 18388 18389 // Copy contents specific to derived class here 18390 NodeCopy->Value.SimpleCopy(&Value); 18391 return TRUE; 18392 }
|
|
Reimplemented from NodeAttribute. Definition at line 2588 of file fillattr2.h. 02588 { return &Value; }
|
|
Returns a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 18363 of file fillattr.cpp. 18364 { 18365 return (_R(IDS_FILLMAPPINGLINEAR)); 18366 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 18430 of file fillattr.cpp. 18431 { 18432 return (sizeof(AttrFillMappingLinear)); 18433 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 18407 of file fillattr.cpp. 18408 { 18409 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 18410 ENSURE(IS_A(pNodeCopy, AttrFillMappingLinear), "PolyCopyNodeContents given wrong dest node type"); 18411 18412 if (IS_A(pNodeCopy, AttrFillMappingLinear)) 18413 CopyNodeContents((AttrFillMappingLinear*)pNodeCopy); 18414 }
|
|
'Renders' a linear graduation fill mapping attribute.
Reimplemented from NodeAttribute. Definition at line 18320 of file fillattr.cpp. 18321 { 18322 pRender->SetFillMapping(&Value, FALSE); 18323 }
|
|
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 18341 of file fillattr.cpp. 18342 { 18343 AttrFillMappingLinear* NodeCopy = new AttrFillMappingLinear; 18344 if (NodeCopy == NULL) 18345 return NULL; 18346 18347 CopyNodeContents(NodeCopy); 18348 18349 return NodeCopy; 18350 }
|
|
Reimplemented from Node. Definition at line 18491 of file fillattr.cpp. 18492 { 18493 #ifdef DO_EXPORT 18494 return WritePreChildrenWeb(pFilter); 18495 #else 18496 return FALSE; 18497 #endif 18498 }
|
|
Writes the linear fill mapping record to the filter. > virtual BOOL AttrFillMappingLinear::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 18451 of file fillattr.cpp. 18452 { 18453 #ifdef DO_EXPORT 18454 ERROR2IF(pFilter == NULL,FALSE,"NULL filter param"); 18455 18456 UINT32 Tag = TAG_UNDEFINED, TagSize = 1; 18457 switch (Value.Repeat) 18458 { 18459 case 0 : 18460 case 1 : Tag = TAG_FILL_NONREPEATING; 18461 TagSize = TAG_FILL_NONREPEATING_SIZE; 18462 break; 18463 case 2 : Tag = TAG_FILL_REPEATING; 18464 TagSize = TAG_FILL_REPEATING_SIZE; 18465 break; 18466 case 3 : Tag = TAG_FILL_REPEATINGINVERTED; 18467 TagSize = TAG_FILL_REPEATINGINVERTED_SIZE; 18468 break; 18469 //Mark Howitt. 8/10/97. Make repeating grad fills a special case 18470 #ifdef NEW_FEATURES 18471 case 4 : Tag = TAG_FILL_REPEATING_EXTRA; 18472 TagSize = TAG_FILL_REPEATING_EXTRA_SIZE; 18473 break; 18474 #endif 18475 default: 18476 ERROR3("Unknown repeat type in this fill mapping attr"); 18477 return FALSE; 18478 break; 18479 } 18480 18481 CamelotFileRecord Rec(pFilter,Tag,TagSize); 18482 return pFilter->Write(&Rec); 18483 #else 18484 return FALSE; 18485 #endif 18486 }
|
|
Definition at line 2599 of file fillattr2.h. |