#include <attrbev.h>
Inheritance diagram for AttrBevelType:
Public Member Functions | |
AttrBevelType () | |
Default constructor for Line Width Attribute class. | |
AttrBevelType (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE) | |
Creates a bValue Attribute. | |
void | Render (RenderRegion *pRender) |
'Renders' a Line Width 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 INT32 | operator== (const NodeAttribute &NodeAttrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual UINT32 | GetAttrNameID (void) |
Returns back a string resource ID describing the attribute. | |
virtual CCRuntimeClass * | GetAttributeType () |
virtual AttributeValue * | GetAttributeValue () |
virtual AttrIndex | GetAttributeIndex () |
void | ShowDebugTreeDetails () const |
Displays debugging info of the tree. | |
void | GetDebugDetails (StringBase *Str) |
For obtaining debug information about the Node. | |
virtual UINT32 | GetNodeSize () const |
For finding the size of the node. | |
virtual void | Transform (TransformBase &) |
Scale the Line Width. | |
virtual BOOL | WritePreChildrenWeb (BaseCamelotFilter *pFilter) |
Writes the line width record to the filter. | |
virtual BOOL | WritePreChildrenNative (BaseCamelotFilter *pFilter) |
void | SetValue (INT32 NewValue) |
virtual BOOL | Blend (BlendAttrParam *pBlendParam) |
Blends this light angle to another. | |
virtual BOOL | EffectsParentBounds () |
Virtual function for determining if the node will effect it's parent bounds. eg. ArrowHeads. | |
DocRect | GetAttrBoundingRect (NodeRenderableInk *pParent=NULL, CCAttrMap *pAttribMap=NULL) |
Gets the bounding rect of this attribute. | |
virtual BOOL | CanBecomeA (BecomeA *pBecomeA) |
Informs whether this node can be changed into another node or not. | |
virtual BOOL | DoBecomeA (BecomeA *pBecomeA) |
Changes this node into something else, maybe even altering the original node. | |
virtual void | PolyCopyNodeContents (NodeRenderable *pNodeCopy) |
Polymorphically copies the contents of this node to another. | |
Public Attributes | |
BevelAttributeValueType | Value |
Private Member Functions | |
void | CopyNodeContents (AttrBevelType *NodeCopy) |
This method copies the node's contents to the node pointed to by NodeCopy. |
Definition at line 482 of file attrbev.h.
|
Default constructor for Line Width Attribute class.
Definition at line 1248 of file attrbev.cpp.
|
|
Creates a bValue Attribute.
Definition at line 1223 of file attrbev.cpp. 01229 : AttrBevel(ContextNode, Direction, Locked, Mangled, Marked, Selected) 01230 { 01231 }
|
|
Blends this light angle to another.
Reimplemented from NodeAttribute. Definition at line 1519 of file attrbev.cpp. 01520 { 01521 ERROR2IF(pBlendParam == NULL,FALSE,"pBlendParam == NULL"); 01522 ERROR3IF(!(pBlendParam->GetOtherAttr()->IS_KIND_OF(AttrBevelType)), 01523 "Blend attribute isn't a bevel type attribute"); 01524 01525 AttrBevelType * pBlendedAttr = NULL; 01526 01527 // assign the other attribute we're looking at 01528 AttrBevelType * pOtherAttr = (AttrBevelType *)pBlendParam->GetOtherAttr(); 01529 01530 // split at the half way mark 01531 if (pBlendParam->GetBlendRatio() <= 0.5) 01532 { 01533 pBlendedAttr = (AttrBevelType *)SimpleCopy(); 01534 } 01535 else 01536 { 01537 pBlendedAttr = (AttrBevelType *)pOtherAttr->SimpleCopy(); 01538 } 01539 01540 if (!pBlendedAttr) 01541 return FALSE; 01542 01543 // set the blended attribute 01544 pBlendParam->SetBlendedAttr(pBlendedAttr); 01545 01546 return TRUE; 01547 }
|
|
Informs whether this node can be changed into another node or not.
Reimplemented from Node. Definition at line 1562 of file attrbev.cpp. 01563 { 01564 if (!Value.m_bPassback) 01565 return FALSE; 01566 01567 if (pBecomeA->BAPath()) 01568 { 01569 pBecomeA->AddCount(1); 01570 return TRUE; 01571 } 01572 01573 return FALSE; 01574 }
|
|
This method copies the node's contents to the node pointed to by NodeCopy.
Definition at line 1392 of file attrbev.cpp. 01393 { 01394 NodeAttribute::CopyNodeContents( NodeCopy ); 01395 01396 NodeCopy->Value.SimpleCopy(&Value); 01397 }
|
|
Changes this node into something else, maybe even altering the original node.
Reimplemented from Node. Definition at line 1589 of file attrbev.cpp. 01590 { 01591 return TRUE; 01592 }
|
|
Virtual function for determining if the node will effect it's parent bounds. eg. ArrowHeads.
Reimplemented from NodeAttribute. Definition at line 522 of file attrbev.h. 00522 { return Value.m_bPassback; }
|
|
Gets the bounding rect of this attribute.
Reimplemented from NodeAttribute. Definition at line 1469 of file attrbev.cpp. 01470 { 01471 if (!pParent) 01472 return DocRect(0,0,0,0); 01473 01474 if (!Value.m_bPassback) 01475 return pParent->GetBoundingRect(TRUE, FALSE); 01476 01477 DocRect dr = pParent->GetBoundingRect(TRUE, FALSE); 01478 01479 if (Value.GetIndent() < 0) 01480 { 01481 dr.Inflate(-Value.GetIndent()); 01482 } 01483 01484 return dr; 01485 }
|
|
Reimplemented from NodeAttribute. Definition at line 503 of file attrbev.h. 00503 { return ATTR_BEVELTYPE; }
|
|
Reimplemented from NodeAttribute. Definition at line 501 of file attrbev.h. 00501 { return CC_RUNTIME_CLASS(AttrBevelType); }
|
|
Reimplemented from NodeAttribute. Definition at line 502 of file attrbev.h. 00502 { return &Value; }
|
|
Returns back a string resource ID describing the attribute.
Reimplemented from NodeAttribute. Definition at line 1368 of file attrbev.cpp. 01369 { 01370 return (_R(IDS_BEVEL_TYPE_ID)); 01371 }
|
|
For obtaining debug information about the Node.
Reimplemented from NodeRenderable. Definition at line 1442 of file attrbev.cpp. 01443 { 01444 #ifdef _DEBUG 01445 if (!Str) 01446 return ; 01447 01448 NodeAttribute::GetDebugDetails( Str ); 01449 String_256 TempStr; 01450 TempStr._MakeMsg( TEXT("\r\nValue=#1%d\r\n"), Value.m_Type ); 01451 (*Str) += TempStr; 01452 #else 01453 if (Str) 01454 { 01455 *Str = wxT(""); 01456 } 01457 #endif 01458 }
|
|
For finding the size of the node.
Reimplemented from Node. Definition at line 1503 of file attrbev.cpp. 01504 { 01505 return (sizeof(AttrBevelType)); 01506 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from NodeAttribute. Definition at line 1336 of file attrbev.cpp. 01337 { 01338 ENSURE(Attrib.IsKindOf(CC_RUNTIME_CLASS(AttrBevelType)), 01339 "Trying to compare two objects with different types"); 01340 AttrBevelType * Attr = (AttrBevelType *) &Attrib; 01341 01342 if (Attr->Value.IsDifferent(&Value)) 01343 { 01344 return FALSE; 01345 } 01346 01347 return TRUE; 01348 01349 }
|
|
Polymorphically copies the contents of this node to another.
Reimplemented from NodeRenderable. Definition at line 1411 of file attrbev.cpp. 01412 { 01413 ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node"); 01414 ENSURE(IS_A(pNodeCopy, AttrBevelType), "PolyCopyNodeContents given wrong dest node type"); 01415 01416 if (IS_A(pNodeCopy, AttrBevelType)) 01417 CopyNodeContents((AttrBevelType*)pNodeCopy); 01418 }
|
|
'Renders' a Line Width attribute.
Reimplemented from NodeAttribute. Definition at line 1267 of file attrbev.cpp.
|
|
Definition at line 517 of file attrbev.h.
|
|
Displays debugging info of the tree.
Definition at line 1432 of file attrbev.cpp. 01433 { 01434 // Display a bit of debugging info 01435 // For now, we will just call the base class version 01436 #ifdef _DEBUG 01437 NodeAttribute::ShowDebugTreeDetails(); 01438 #endif 01439 }
|
|
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 1308 of file attrbev.cpp. 01309 { 01310 AttrBevelType* NodeCopy = new AttrBevelType(); 01311 ERRORIF(NodeCopy == NULL, _R(IDE_NOMORE_MEMORY), NULL); 01312 CopyNodeContents(NodeCopy); 01313 NodeCopy->Value.SimpleCopy(&Value); 01314 return NodeCopy; 01315 }
|
|
Scale the Line Width.
Reimplemented from NodeRenderable. Definition at line 1284 of file attrbev.cpp.
|
|
Reimplemented from Node. Definition at line 1615 of file attrbev.cpp. 01616 { 01617 #ifdef DO_EXPORT 01618 return WritePreChildrenWeb(pFilter); 01619 #else 01620 return FALSE; 01621 #endif 01622 }
|
|
Writes the line width record to the filter. > virtual BOOL AttrBevelType::WritePreChildrenWeb(BaseCamelotFilter* pFilter)
Reimplemented from Node. Definition at line 1607 of file attrbev.cpp. 01608 { 01609 return TRUE; 01610 }
|
|
|