BlendedBrushDefinition Class Reference

Stores a vector Brush definition created by blending two other brush definitions. Unlike regular brush definitions these are not stored in the brush component, instead they are attached to a BlendPathProcessorBrush for the purposes of rendering and are then destroyed They are also created differently, rather than passing in a subtree of nodes instead they are given already blended blendpaths and attribute maps. More...

#include <bldbrdef.h>

Inheritance diagram for BlendedBrushDefinition:

BrushDefinition LineDefinition CCObject SimpleCCObject List of all members.

Public Member Functions

 BlendedBrushDefinition ()
 Constructor.
 ~BlendedBrushDefinition ()
 Destructor, simply calls the parent class right now.
BOOL AllocateBrushRefArray (UINT32 NumObjects)
 Allocates the brushref array. Actually an interface to the parent class function, we need public access to it in this class because the brushrefs are generated externally rather than internally in the parent class.
BOOL AddBrushRef (BrushRef *pBrushRef)
 Adds a brushref to the next vacant spot in the array. Once again a public fn. is needed as brushrefs for BlendedBD's are generated outside.

Detailed Description

Stores a vector Brush definition created by blending two other brush definitions. Unlike regular brush definitions these are not stored in the brush component, instead they are attached to a BlendPathProcessorBrush for the purposes of rendering and are then destroyed They are also created differently, rather than passing in a subtree of nodes instead they are given already blended blendpaths and attribute maps.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/99
See also:
BrushDefinition (brshcomp.h/.cpp)

Definition at line 125 of file bldbrdef.h.


Constructor & Destructor Documentation

BlendedBrushDefinition::BlendedBrushDefinition  ) 
 

Constructor.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/2/97
See also:

Definition at line 122 of file bldbrdef.cpp.

00123 {
00124     // parent class fn. initialises all the data to defaults
00125     ResetMembers();
00126 }

BlendedBrushDefinition::~BlendedBrushDefinition  ) 
 

Destructor, simply calls the parent class right now.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/2/97
See also:
~BrushDefinition()

Definition at line 141 of file bldbrdef.cpp.

00142 {
00143     // because we made all the attr maps by hand we must go through them and delete them individually
00144     for (INT32 i = 0; i < m_BrushRefPtrArray.GetSize(); i++)
00145     {
00146         BrushRef* pBrushRef = m_BrushRefPtrArray[i];
00147         if (pBrushRef != NULL)
00148             pBrushRef->DeleteAttributesAndPath();
00149     }
00150 }


Member Function Documentation

BOOL BlendedBrushDefinition::AddBrushRef BrushRef pBrushRef  ) 
 

Adds a brushref to the next vacant spot in the array. Once again a public fn. is needed as brushrefs for BlendedBD's are generated outside.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/2/97
Parameters:
brushref to add to this definition [INPUTS]
Returns:
TRUE if it went alright, FALSE if not
See also:

Definition at line 191 of file bldbrdef.cpp.

00192 {
00193     if (pBrushRef == NULL)
00194     {
00195         ERROR3("Trying to add a NULL BrushRef");
00196         return FALSE;
00197     }
00198     m_BrushRefPtrArray[m_NumBrushObjects++] = pBrushRef;
00199 
00200     return TRUE;
00201 }

BOOL BlendedBrushDefinition::AllocateBrushRefArray UINT32  NumObjects  ) 
 

Allocates the brushref array. Actually an interface to the parent class function, we need public access to it in this class because the brushrefs are generated externally rather than internally in the parent class.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
27/2/97
Parameters:
the size of the array to allocatew [INPUTS]
Returns:
TRUE if it went alright, FALSE if not
See also:

Definition at line 169 of file bldbrdef.cpp.

00170 {
00171     InitialiseBrushArray(NumObjects);
00172     return TRUE;
00173 }


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