AttrFillEffectAltRainbow Class Reference

Alternate Rainbow (HSV) fill effect Attribute class. More...

#include <fillattr2.h>

Inheritance diagram for AttrFillEffectAltRainbow:

AttrFillEffect NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

Public Member Functions

 AttrFillEffectAltRainbow ()
 AttrFillEffectAltRainbow (Node *ContextNode, AttachNodeDirection Direction, BOOL Locked=FALSE, BOOL Mangled=FALSE, BOOL Marked=FALSE, BOOL Selected=FALSE)
void Render (RenderRegion *pRender)
 'Renders' an alternate rainbow fill effect 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 alt rainbow fill effect record to the filter.
virtual BOOL WritePreChildrenNative (BaseCamelotFilter *pFilter)

Public Attributes

FillEffectAltRainbowAttribute Value

Private Member Functions

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

Detailed Description

Alternate Rainbow (HSV) fill effect Attribute class.

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

Definition at line 2779 of file fillattr2.h.


Constructor & Destructor Documentation

AttrFillEffectAltRainbow::AttrFillEffectAltRainbow  )  [inline]
 

Definition at line 2784 of file fillattr2.h.

02784 {}

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

Definition at line 2785 of file fillattr2.h.

02790                                      : 
02791         AttrFillEffect(ContextNode, Direction, Locked, Mangled, Marked, Selected) {}


Member Function Documentation

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

19084 {
19085     ERROR2IF(NodeCopy == NULL, FALSE, "NULL pointer in AttrFillEffectAltRainbow::CopyNodeContents!");
19086 
19087     NodeAttribute::CopyNodeContents(NodeCopy);
19088 
19089     // Copy contents specific to derived class here
19090     NodeCopy->Value.SimpleCopy(&Value);
19091     return TRUE;
19092 } 

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

Reimplemented from NodeAttribute.

Definition at line 2798 of file fillattr2.h.

02798 { return &Value; }

UINT32 AttrFillEffectAltRainbow::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 19063 of file fillattr.cpp.

19064 {
19065     return (_R(IDS_FILLEFFECTALTRAINBOW)); 
19066 }                                  

UINT32 AttrFillEffectAltRainbow::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 19130 of file fillattr.cpp.

19131 {     
19132     return (sizeof(AttrFillEffectAltRainbow)); 
19133 }  

void AttrFillEffectAltRainbow::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 19107 of file fillattr.cpp.

19108 {
19109     ENSURE(pNodeCopy, "Trying to copy a node's contents into a NULL node");
19110     ENSURE(IS_A(pNodeCopy, AttrFillEffectAltRainbow), "PolyCopyNodeContents given wrong dest node type");
19111 
19112     if (IS_A(pNodeCopy, AttrFillEffectAltRainbow))
19113         CopyNodeContents((AttrFillEffectAltRainbow*)pNodeCopy);
19114 }

void AttrFillEffectAltRainbow::Render RenderRegion pRender  )  [virtual]
 

'Renders' an alternate rainbow fill effect attribute.

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

Reimplemented from NodeAttribute.

Definition at line 19021 of file fillattr.cpp.

19022 {
19023     pRender->SetFillEffect(&Value, FALSE);
19024 }

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

19042 {
19043     AttrFillEffectAltRainbow* NodeCopy = new AttrFillEffectAltRainbow();
19044     if (NodeCopy == NULL)
19045         return NULL;
19046 
19047     CopyNodeContents(NodeCopy);
19048     
19049     return NodeCopy;
19050 }  

BOOL AttrFillEffectAltRainbow::WritePreChildrenNative BaseCamelotFilter pFilter  )  [virtual]
 

Reimplemented from Node.

Definition at line 19165 of file fillattr.cpp.

19166 {
19167 #ifdef DO_EXPORT
19168     return WritePreChildrenWeb(pFilter);
19169 #else
19170     return FALSE;
19171 #endif
19172 }

BOOL AttrFillEffectAltRainbow::WritePreChildrenWeb BaseCamelotFilter pFilter  )  [virtual]
 

Writes the alt rainbow fill effect record to the filter.

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

19151 {
19152 #ifdef DO_EXPORT
19153     ERROR2IF(pFilter == NULL,FALSE,"NULL filter param");
19154 
19155     CamelotFileRecord Rec(pFilter,TAG_FILLEFFECT_ALTRAINBOW,TAG_FILLEFFECT_ALTRAINBOW_SIZE);
19156     return pFilter->Write(&Rec);
19157 #else
19158     return FALSE;
19159 #endif
19160 }


Member Data Documentation

FillEffectAltRainbowAttribute AttrFillEffectAltRainbow::Value
 

Definition at line 2809 of file fillattr2.h.


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