#include <bldbrdef.h>
Inheritance diagram for BlendedBrushDefinition:
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. |
Definition at line 125 of file bldbrdef.h.
|
Constructor.
Definition at line 122 of file bldbrdef.cpp. 00123 { 00124 // parent class fn. initialises all the data to defaults 00125 ResetMembers(); 00126 }
|
|
Destructor, simply calls the parent class right now.
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 }
|
|
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.
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 }
|
|
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.
Definition at line 169 of file bldbrdef.cpp. 00170 { 00171 InitialiseBrushArray(NumObjects); 00172 return TRUE; 00173 }
|