AttrFillMappingSin Class Reference

Sinusoidal fill mapping class Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrFillMappingSin:

AttrFillMapping NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

Public Member Functions

 AttrFillMappingSin ()
 AttrFillMappingSin (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE)
void Render (RenderRegion *pRender)
 'Renders' a sinusoidal graduation fill mapping attribute.
NodeSimpleCopy ()
 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 AttributeValueGetAttributeValue ()
virtual BOOL WritePreChildrenWeb (BaseCamelotFilter *pFilter)
 Writes the sine fill mappine 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

FillMappingSinAttribute Value

Private Member Functions

BOOL CopyNodeContents (AttrFillMappingSin *NodeCopy)
 This method copies the node's contents to the node pointed to by NodeCopy.

Detailed Description

Sinusoidal fill mapping class Attribute class.

Author:
Tim_Browse (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/07/94
See also:
FillMappingSinAttribute

Definition at line 2614 of file fillattr2.h.


Constructor & Destructor Documentation

AttrFillMappingSin::AttrFillMappingSin  )  [inline]
 

Definition at line 2619 of file fillattr2.h.

02619 : AttrFillMapping() {}

AttrFillMappingSin::AttrFillMappingSin Node ContextNode,
AttachNodeDirection  Direction,
BOOL  Locked = FALSE,
BOOL  Mangled = FALSE,
BOOL  Marked = FALSE,
BOOL  Selected = FALSE
[inline]
 

Definition at line 2620 of file fillattr2.h.

02625                                      : 
02626         AttrFillMapping(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

BOOL AttrFillMappingSin::CopyNodeContents AttrFillMappingSin NodeCopy  )  [private]
 

This method copies the node's contents to the node pointed to by NodeCopy.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Parameters:
NodeCopy - the node to copy. [INPUTS]
A copy of this node [OUTPUTS]
Returns:
Errors: An assertion failure will occur if NodeCopy is NULL Scope: protected

Definition at line 18573 of file fillattr.cpp.

18574 {
18575     ERROR2IF(NodeCopy == NULL, FALSE, "NULL pointer in AttrFillMappingSin::CopyNodeContents!");
18576 
18577     NodeAttribute::CopyNodeContents(NodeCopy);
18578 
18579     // Copy contents specific to derived class here
18580     NodeCopy->Value.SimpleCopy(&Value);
18581     return TRUE;
18582 } 

virtual AttributeValue* AttrFillMappingSin::GetAttributeValue  )  [inline, virtual]
 

Reimplemented from NodeAttribute.

Definition at line 2634 of file fillattr2.h.

02634 { return &Value; }

UINT32 AttrFillMappingSin::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
Attribute description ID

Reimplemented from NodeAttribute.

Definition at line 18553 of file fillattr.cpp.

18554 {
18555     return (_R(IDS_FILLMAPPINGSIN)); 
18556 }                                  

UINT32 AttrFillMappingSin::GetNodeSize  )  const [virtual]
 

For finding the size of the node.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
The size of the node in bytes
See also:
Node::GetSubtreeSize

Reimplemented from Node.

Definition at line 18620 of file fillattr.cpp.

18621 {     
18622     return (sizeof(AttrFillMappingSin)); 
18623 }  

void AttrFillMappingSin::PolyCopyNodeContents NodeRenderable pNodeCopy  )  [virtual]
 

Polymorphically copies the contents of this node to another.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/12/2003
Parameters:
- [OUTPUTS]
Returns:
Errors: An assertion failure will occur if NodeCopy is NULL Scope: protected

Reimplemented from NodeRenderable.

Definition at line 18597 of file fillattr.cpp.

18598 {
18599     ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node");
18600     ENSURE(IS_A(pNodeCopy, AttrFillMappingSin), "PolyCopyNodeContents given wrong dest node type");
18601 
18602     if (IS_A(pNodeCopy, AttrFillMappingSin))
18603         CopyNodeContents((AttrFillMappingSin*)pNodeCopy);
18604 }

void AttrFillMappingSin::Render RenderRegion pRender  )  [virtual]
 

'Renders' a sinusoidal graduation fill mapping attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94

Reimplemented from NodeAttribute.

Definition at line 18511 of file fillattr.cpp.

18512 {
18513     pRender->SetFillMapping(&Value, FALSE);
18514 }

Node * AttrFillMappingSin::SimpleCopy void   )  [virtual]
 

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.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
23/8/94
Returns:
A copy of the node, or NULL if memory runs out

Errors: If memory runs out when trying to copy, then ERROR is called with an out of memory error and the function returns NULL. Scope: protected

Reimplemented from NodeAttribute.

Definition at line 18531 of file fillattr.cpp.

18532 {
18533     AttrFillMappingSin* NodeCopy = new AttrFillMappingSin();
18534     if (NodeCopy == NULL)
18535         return NULL;
18536 
18537     CopyNodeContents(NodeCopy);
18538     
18539     return NodeCopy;
18540 }  

BOOL AttrFillMappingSin::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

Reimplemented from Node.

Definition at line 18654 of file fillattr.cpp.

18655 {
18656 #ifdef DO_EXPORT
18657     return WritePreChildrenWeb(pFilter);
18658 #else
18659     return FALSE;
18660 #endif
18661 }

BOOL AttrFillMappingSin::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes the sine fill mappine record to the filter.

> virtual BOOL AttrFillMappingSin::WritePreChildrenWeb(BaseCamelotFilter* pFilter)

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/5/96
Parameters:
pFilter = ptr to the filter [INPUTS]
Returns:
TRUE if record is written, FALSE if not
See also:
-

Reimplemented from Node.

Definition at line 18639 of file fillattr.cpp.

18640 {
18641 #ifdef DO_EXPORT
18642     ERROR2IF(pFilter == NULL,FALSE,"NULL filter param");
18643 
18644     ERROR3("v2 file format does not support this attribute");
18645     return FALSE;
18646 #else
18647     return FALSE;
18648 #endif
18649 }


Member Data Documentation

FillMappingSinAttribute AttrFillMappingSin::Value
 

Definition at line 2645 of file fillattr2.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:50:19 2007 for Camelot by  doxygen 1.4.4