ListFill Class Reference

Relatively generic Gradient Fill holder class, so that gradient fills can be stored in a linked list (mainly used while scanning for grad fills). More...

#include <ai_epsrr.h>

Inheritance diagram for ListFill:

CCObject SimpleCCObject List of all members.

Public Member Functions

 ListFill ()
 Constructor for a gradient fill holder, so it can be stored in a linked list cache. All variables (esp. the id) should be set before use. It is better to use the constructor below, as this will allocate id numbers uniquely.
 ListFill (FillGeometryAttribute *pNewFill)
 ListFill (FillGeometryAttribute *pNewFill, EFFECTTYPE eff, ListFill *pNewNext)
 Constructor for a gradient fill holder, so it can be stored in a linked list cache.
 ~ListFill ()
 Destructor for a ListFill item. This also cleans up the fill it contains (if any).

Public Attributes

FillGeometryAttributepFill
EFFECTTYPE effect
ListFillpNext
INT32 id

Private Member Functions

 CC_DECLARE_DYNAMIC (ListFill)

Detailed Description

Relatively generic Gradient Fill holder class, so that gradient fills can be stored in a linked list (mainly used while scanning for grad fills).

Author:
Chris_Gallimore (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/3/2001
See also:
AIEPSRenderRegion, AIEPSGradientScanRenderRegion

Definition at line 180 of file ai_epsrr.h.


Constructor & Destructor Documentation

ListFill::ListFill  ) 
 

Constructor for a gradient fill holder, so it can be stored in a linked list cache. All variables (esp. the id) should be set before use. It is better to use the constructor below, as this will allocate id numbers uniquely.

Author:
Chris_Gallimore (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/3/2001

Definition at line 3832 of file ai_epsrr.cpp.

03833 {
03834     pFill = NULL;
03835     pNext = NULL;
03836     id = 1;
03837     effect = EFFECT_RGB;
03838 }

ListFill::ListFill FillGeometryAttribute pNewFill  ) 
 

ListFill::ListFill FillGeometryAttribute pNewFill,
EFFECTTYPE  eff,
ListFill pNewNext
 

Constructor for a gradient fill holder, so it can be stored in a linked list cache.

Author:
Chris_Gallimore (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/3/2001
Parameters:
pNewFill - The fill to be stored. [INPUTS] pNewNext - The next item in the list.

Definition at line 3852 of file ai_epsrr.cpp.

03853 {
03854     pFill = pNewFill;
03855     effect = eff;
03856 
03857     pNext = pNewNext;
03858     if(pNewNext)
03859     {
03860         id = pNewNext->id + 1;
03861     }
03862     else
03863     {
03864         id = 1;
03865     }
03866 }

ListFill::~ListFill  ) 
 

Destructor for a ListFill item. This also cleans up the fill it contains (if any).

Author:
Chris_Gallimore (Xara Group Ltd) <camelotdev@xara.com>
Date:
30/3/2001

Definition at line 3878 of file ai_epsrr.cpp.

03879 {
03880     if (pFill != NULL) 
03881         delete pFill;
03882 }


Member Function Documentation

ListFill::CC_DECLARE_DYNAMIC ListFill   )  [private]
 


Member Data Documentation

EFFECTTYPE ListFill::effect
 

Definition at line 192 of file ai_epsrr.h.

INT32 ListFill::id
 

Definition at line 194 of file ai_epsrr.h.

FillGeometryAttribute* ListFill::pFill
 

Definition at line 191 of file ai_epsrr.h.

ListFill* ListFill::pNext
 

Definition at line 193 of file ai_epsrr.h.


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