AttrTranspFillMappingSin Class Reference

Sinusoidal fill mapping class Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrTranspFillMappingSin:

AttrTranspFillMapping NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

Public Member Functions

 AttrTranspFillMappingSin ()
 AttrTranspFillMappingSin (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE)
void Render (RenderRegion *pRender)
 'Renders' a sinusoidal graduation FillTransp 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 void PolyCopyNodeContents (NodeRenderable *pNodeCopy)
 Polymorphically copies the contents of this node to another.
virtual BOOL WritePreChildrenWeb (BaseCamelotFilter *pFilter)
 Writes the transparent sine fill mapping record to the filter.
virtual BOOL WritePreChildrenNative (BaseCamelotFilter *pFilter)

Public Attributes

TranspFillMappingSinAttribute Value

Private Member Functions

BOOL CopyNodeContents (AttrTranspFillMappingSin *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:
TranspFillMappingSinAttribute

Definition at line 2908 of file fillattr2.h.


Constructor & Destructor Documentation

AttrTranspFillMappingSin::AttrTranspFillMappingSin  )  [inline]
 

Definition at line 2913 of file fillattr2.h.

02913 : AttrTranspFillMapping() {}

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

Definition at line 2914 of file fillattr2.h.

02919                                      : 
02920         AttrTranspFillMapping(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

BOOL AttrTranspFillMappingSin::CopyNodeContents AttrTranspFillMappingSin 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 19543 of file fillattr.cpp.

19544 {
19545     ERROR2IF(NodeCopy == NULL, FALSE, "NULL pointer in AttrTranspFillMappingSin::CopyNodeContents!");
19546 
19547     NodeAttribute::CopyNodeContents(NodeCopy);
19548 
19549     // Copy contents specific to derived class here
19550     NodeCopy->Value.SimpleCopy(&Value);
19551     return TRUE;
19552 } 

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

Reimplemented from NodeAttribute.

Definition at line 2928 of file fillattr2.h.

02928 { return &Value; }

UINT32 AttrTranspFillMappingSin::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 19523 of file fillattr.cpp.

19524 {
19525     return (_R(IDS_FILLMAPPINGSIN)); 
19526 }                                  

UINT32 AttrTranspFillMappingSin::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 19590 of file fillattr.cpp.

19591 {     
19592     return (sizeof(AttrTranspFillMappingSin)); 
19593 }  

void AttrTranspFillMappingSin::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 19567 of file fillattr.cpp.

19568 {
19569     ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node");
19570     ENSURE(IS_A(pNodeCopy, AttrTranspFillMappingSin), "PolyCopyNodeContents given wrong dest node type");
19571 
19572     if (IS_A(pNodeCopy, AttrTranspFillMappingSin))
19573         CopyNodeContents((AttrTranspFillMappingSin*)pNodeCopy);
19574 }

void AttrTranspFillMappingSin::Render RenderRegion pRender  )  [virtual]
 

'Renders' a sinusoidal graduation FillTransp mapping attribute.

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

Reimplemented from NodeAttribute.

Definition at line 19481 of file fillattr.cpp.

19482 {
19483     pRender->SetTranspFillMapping(&Value, FALSE);
19484 }

Node * AttrTranspFillMappingSin::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 19501 of file fillattr.cpp.

19502 {
19503     AttrTranspFillMappingSin* NodeCopy = new AttrTranspFillMappingSin();
19504     if (NodeCopy == NULL)
19505         return NULL;
19506 
19507     CopyNodeContents(NodeCopy);
19508     
19509     return NodeCopy;
19510 }  

BOOL AttrTranspFillMappingSin::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

Reimplemented from Node.

Definition at line 19628 of file fillattr.cpp.

19629 {
19630 #ifdef DO_EXPORT
19631     return WritePreChildrenWeb(pFilter);
19632 #else
19633     return FALSE;
19634 #endif
19635 }

BOOL AttrTranspFillMappingSin::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes the transparent sine fill mapping record to the filter.

> virtual BOOL AttrTranspFillMappingSin::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 19613 of file fillattr.cpp.

19614 {
19615 #ifdef DO_EXPORT
19616     ERROR2IF(pFilter == NULL,FALSE,"NULL filter param");
19617 
19618     ERROR3("v2 file format does not support this attribute");
19619     return FALSE;
19620 #else
19621     return FALSE;
19622 #endif
19623 }


Member Data Documentation

TranspFillMappingSinAttribute AttrTranspFillMappingSin::Value
 

Definition at line 2939 of file fillattr2.h.


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