BrushData Class Reference

A repository for all kinds of data that the brush uses. More of a struct than a class at the moment. More...

#include <brshdata.h>

Inheritance diagram for BrushData:

CCObject SimpleCCObject List of all members.

Public Member Functions

 BrushData ()
 Constructor.
 BrushData (const BrushData &Other)
 copy Constructor
const BrushDataoperator= (const BrushData &Other)
 assignment operator
BOOL operator== (const BrushData &Other)
 equality operator

Public Attributes

String_32 m_Name
BrushHandle m_BrushHandle
MILLIPOINT m_BrushSpacing
double m_BrushSpacingIncrProp
MILLIPOINT m_BrushSpacingIncrConst
UINT32 m_BrushSpacingMaxRand
UINT32 m_BrushSpacingRandSeed
BOOL m_bTile
BOOL m_bRotate
double m_RotateAngle
double m_RotAngleIncrConst
double m_RotAngleIncrProp
UINT32 m_RotationMaxRand
UINT32 m_RotationRandSeed
UINT32 m_RotationMaxPressure
PathOffset m_PathOffsetType
MILLIPOINT m_PathOffsetValue
double m_PathOffsetIncrProp
MILLIPOINT m_PathOffsetIncrConst
UINT32 m_OffsetTypeRandSeed
UINT32 m_OffsetValueMaxRand
UINT32 m_OffsetValueRandSeed
double m_BrushScaling
double m_BrushScalingIncr
double m_BrushScalingIncrConst
UINT32 m_BrushScalingMaxRand
UINT32 m_BrushScalingRandSeed
UINT32 m_ScalingMaxPressure
SequenceType m_SequenceType
UINT32 m_SequenceRandSeed
MILLIPOINT m_LineWidth
BOOL m_bUseLocalFillColour
BOOL m_bUseLocalTransp
BOOL m_bUseNamedColour
BOOL m_bTimeStampBrushes
UINT32 m_TimeStampPeriod
double m_BrushHueIncrement
UINT32 m_BrushHueMaxRand
UINT32 m_BrushHueRandSeed
double m_BrushSatIncrement
UINT32 m_BrushSatMaxRand
UINT32 m_BrushSatRandSeed
INT32 m_BrushTransparency
UINT32 m_TranspMaxPressure

Detailed Description

A repository for all kinds of data that the brush uses. More of a struct than a class at the moment.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/3/2000

Definition at line 120 of file brshdata.h.


Constructor & Destructor Documentation

BrushData::BrushData  ) 
 

Constructor.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/3/2000

Definition at line 116 of file brshdata.cpp.

00117 {
00118     m_BrushHandle           = BrushHandle_NoBrush;
00119 
00120     m_BrushSpacing          = 10000;
00121     m_BrushSpacingIncrProp  = 1.0; 
00122     m_BrushSpacingIncrConst = 0;
00123     m_BrushSpacingMaxRand   = 0;
00124     m_BrushSpacingRandSeed  = 0;
00125     
00126     m_bTile                 = TRUE;
00127     m_bRotate               = FALSE;
00128     m_RotateAngle           = 0.0;
00129     m_RotAngleIncrConst     = 0;
00130     m_RotAngleIncrProp      = 1.0;
00131     m_RotationMaxRand       = 0;    
00132     m_RotationRandSeed      = 0; 
00133     m_RotationMaxPressure       = 0;
00134 
00135     m_PathOffsetType        = OFFSET_NONE;  
00136     m_PathOffsetValue       = 0;
00137     m_PathOffsetIncrProp    = 1.0;
00138     m_PathOffsetIncrConst   = 0;
00139     m_OffsetTypeRandSeed    = 0;
00140     
00141     m_OffsetValueMaxRand    = 0;
00142     m_OffsetValueRandSeed   = 0;
00143     
00144     m_BrushScaling          = 1.0;
00145     m_BrushScalingIncr      = 1.0;
00146     m_BrushScalingIncrConst = 0.0;
00147     m_BrushScalingMaxRand   = 0;
00148     m_BrushScalingRandSeed  = 0;
00149     
00150     m_SequenceType          = SEQ_FORWARD;
00151     m_SequenceRandSeed      = 0;
00152 
00153     m_LineWidth             = -1;
00154 
00155     m_bUseLocalFillColour   = FALSE;
00156     m_bUseLocalTransp       = FALSE;
00157     m_bUseNamedColour       = TRUE;
00158     m_bTimeStampBrushes     = FALSE;
00159     m_TimeStampPeriod       = 0;
00160 
00161     m_BrushTransparency     = -1;
00162     m_TranspMaxPressure     = 0;
00163 
00164 }

BrushData::BrushData const BrushData Other  ) 
 

copy Constructor

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/3/2000

Definition at line 178 of file brshdata.cpp.

00179 {
00180     this->operator =(Other);
00181 }


Member Function Documentation

const BrushData & BrushData::operator= const BrushData Other  ) 
 

assignment operator

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/3/2000

Definition at line 194 of file brshdata.cpp.

00195 {
00196     m_Name                  = Other.m_Name;
00197     m_BrushHandle           = Other.m_BrushHandle;
00198 
00199     m_BrushSpacing          = Other.m_BrushSpacing;
00200     m_BrushSpacingIncrProp  = Other.m_BrushSpacingIncrProp;
00201     m_BrushSpacingIncrConst = Other.m_BrushSpacingIncrConst;
00202     m_BrushSpacingMaxRand   = Other.m_BrushSpacingMaxRand;
00203     m_BrushSpacingRandSeed  = Other.m_BrushSpacingRandSeed;
00204     
00205     m_bTile                 = Other.m_bTile;
00206     m_bRotate               = Other.m_bRotate;
00207     m_RotateAngle           = Other.m_RotateAngle;
00208     m_RotAngleIncrProp      = Other.m_RotAngleIncrProp;
00209     m_RotAngleIncrConst     = Other.m_RotAngleIncrConst;
00210     m_RotationMaxRand       = Other.m_RotationMaxRand;  
00211     m_RotationRandSeed      = Other.m_RotationRandSeed;
00212     m_RotationMaxPressure   = Other.m_RotationMaxPressure;
00213 
00214     m_PathOffsetType        = Other.m_PathOffsetType; 
00215     m_PathOffsetValue       = Other.m_PathOffsetValue;
00216     m_PathOffsetIncrProp    = Other.m_PathOffsetIncrProp;
00217     m_PathOffsetIncrConst   = Other.m_PathOffsetIncrConst;
00218     m_OffsetTypeRandSeed    = Other.m_OffsetTypeRandSeed;
00219     
00220     m_OffsetValueMaxRand    = Other.m_OffsetValueMaxRand;
00221     m_OffsetValueRandSeed   = Other.m_OffsetValueRandSeed;
00222     
00223     m_BrushScaling          = Other.m_BrushScaling;
00224     m_BrushScalingIncr      = Other.m_BrushScalingIncr;
00225     m_BrushScalingIncrConst = Other.m_BrushScalingIncrConst;
00226     m_BrushScalingMaxRand   = Other.m_BrushScalingMaxRand;
00227     m_BrushScalingRandSeed  = Other.m_BrushScalingRandSeed;
00228     m_ScalingMaxPressure    = Other.m_ScalingMaxPressure;
00229     
00230     m_SequenceType          = Other.m_SequenceType;
00231     m_SequenceRandSeed      = Other.m_SequenceRandSeed;
00232 
00233     m_LineWidth             = Other.m_LineWidth;
00234 
00235     m_bUseLocalFillColour   = Other.m_bUseLocalFillColour;
00236     m_bUseLocalTransp       = Other.m_bUseLocalTransp;
00237     m_bUseNamedColour       = Other.m_bUseNamedColour;
00238     m_bTimeStampBrushes     = Other.m_bTimeStampBrushes;
00239     m_TimeStampPeriod       = Other.m_TimeStampPeriod;
00240 
00241     m_BrushSatIncrement     = Other.m_BrushSatIncrement;
00242     m_BrushSatMaxRand       = Other.m_BrushSatMaxRand;
00243     m_BrushSatRandSeed      = Other.m_BrushSatRandSeed;
00244     m_BrushHueIncrement     = Other.m_BrushHueIncrement;
00245     m_BrushHueMaxRand       = Other.m_BrushHueMaxRand;
00246     m_BrushHueRandSeed      = Other.m_BrushHueRandSeed;
00247 
00248     m_BrushTransparency     = Other.m_BrushTransparency;
00249     m_TranspMaxPressure     = Other.m_TranspMaxPressure;
00250 
00251     return *this;
00252 }

BOOL BrushData::operator== const BrushData Other  ) 
 

equality operator

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
2/3/2000

Definition at line 265 of file brshdata.cpp.

00266 {
00267     if (
00268         m_Name                  != Other.m_Name ||
00269         m_BrushHandle           != Other.m_BrushHandle ||
00270 
00271         m_BrushSpacing          != Other.m_BrushSpacing ||
00272         m_BrushSpacingIncrProp  != Other.m_BrushSpacingIncrProp ||
00273         m_BrushSpacingIncrConst != Other.m_BrushSpacingIncrConst ||
00274         m_BrushSpacingMaxRand   != Other.m_BrushSpacingMaxRand ||
00275         m_BrushSpacingRandSeed  != Other.m_BrushSpacingRandSeed ||
00276         
00277         m_bTile                 != Other.m_bTile ||
00278         m_bRotate               != Other.m_bRotate ||
00279         m_RotateAngle           != Other.m_RotateAngle ||
00280         m_RotAngleIncrProp      != Other.m_RotAngleIncrProp ||
00281         m_RotAngleIncrConst     != Other.m_RotAngleIncrConst ||
00282         m_RotationMaxRand       != Other.m_RotationMaxRand ||   
00283         m_RotationRandSeed      != Other.m_RotationRandSeed ||
00284         m_RotationMaxPressure   != Other.m_RotationMaxPressure ||
00285 
00286         m_PathOffsetType        != Other.m_PathOffsetType || 
00287         m_PathOffsetValue       != Other.m_PathOffsetValue ||
00288         m_PathOffsetIncrProp    != Other.m_PathOffsetIncrProp ||
00289         m_PathOffsetIncrConst   != Other.m_PathOffsetIncrConst ||
00290         m_OffsetTypeRandSeed    != Other.m_OffsetTypeRandSeed ||
00291         
00292         m_OffsetValueMaxRand    != Other.m_OffsetValueMaxRand ||
00293         m_OffsetValueRandSeed   != Other.m_OffsetValueRandSeed ||
00294         
00295         m_BrushScaling          != Other.m_BrushScaling ||
00296         m_BrushScalingIncr      != Other.m_BrushScalingIncr ||
00297         m_BrushScalingIncrConst != Other.m_BrushScalingIncrConst ||
00298         m_BrushScalingMaxRand   != Other.m_BrushScalingMaxRand ||
00299         m_BrushScalingRandSeed  != Other.m_BrushScalingRandSeed ||
00300         m_ScalingMaxPressure    != Other.m_ScalingMaxPressure ||
00301         
00302         m_SequenceType          != Other.m_SequenceType ||
00303         m_SequenceRandSeed      != Other.m_SequenceRandSeed ||
00304 
00305         m_LineWidth             != Other.m_LineWidth ||
00306 
00307         m_bUseLocalFillColour   != Other.m_bUseLocalFillColour ||
00308         m_bUseLocalTransp       != Other.m_bUseLocalTransp ||
00309         m_bUseNamedColour       != Other.m_bUseNamedColour ||
00310         m_bTimeStampBrushes     != Other.m_bTimeStampBrushes ||
00311         m_TimeStampPeriod       != Other.m_TimeStampPeriod ||
00312 
00313         m_BrushSatIncrement     != Other.m_BrushSatIncrement ||
00314         m_BrushSatMaxRand       != Other.m_BrushSatMaxRand ||
00315         m_BrushSatRandSeed      != Other.m_BrushSatRandSeed ||
00316         m_BrushHueIncrement     != Other.m_BrushHueIncrement ||
00317         m_BrushHueMaxRand       != Other.m_BrushHueMaxRand ||
00318         m_BrushHueRandSeed      != Other.m_BrushHueRandSeed ||
00319 
00320         m_BrushTransparency     != Other.m_BrushTransparency ||
00321         m_TranspMaxPressure     != Other.m_TranspMaxPressure
00322         )
00323         return FALSE;
00324     else
00325         return TRUE;
00326 }


Member Data Documentation

BOOL BrushData::m_bRotate
 

Definition at line 150 of file brshdata.h.

BrushHandle BrushData::m_BrushHandle
 

Definition at line 132 of file brshdata.h.

double BrushData::m_BrushHueIncrement
 

Definition at line 218 of file brshdata.h.

UINT32 BrushData::m_BrushHueMaxRand
 

Definition at line 219 of file brshdata.h.

UINT32 BrushData::m_BrushHueRandSeed
 

Definition at line 220 of file brshdata.h.

double BrushData::m_BrushSatIncrement
 

Definition at line 222 of file brshdata.h.

UINT32 BrushData::m_BrushSatMaxRand
 

Definition at line 223 of file brshdata.h.

UINT32 BrushData::m_BrushSatRandSeed
 

Definition at line 224 of file brshdata.h.

double BrushData::m_BrushScaling
 

Definition at line 178 of file brshdata.h.

double BrushData::m_BrushScalingIncr
 

Definition at line 181 of file brshdata.h.

double BrushData::m_BrushScalingIncrConst
 

Definition at line 184 of file brshdata.h.

UINT32 BrushData::m_BrushScalingMaxRand
 

Definition at line 186 of file brshdata.h.

UINT32 BrushData::m_BrushScalingRandSeed
 

Definition at line 189 of file brshdata.h.

MILLIPOINT BrushData::m_BrushSpacing
 

Definition at line 134 of file brshdata.h.

MILLIPOINT BrushData::m_BrushSpacingIncrConst
 

Definition at line 140 of file brshdata.h.

double BrushData::m_BrushSpacingIncrProp
 

Definition at line 137 of file brshdata.h.

UINT32 BrushData::m_BrushSpacingMaxRand
 

Definition at line 143 of file brshdata.h.

UINT32 BrushData::m_BrushSpacingRandSeed
 

Definition at line 146 of file brshdata.h.

INT32 BrushData::m_BrushTransparency
 

Definition at line 226 of file brshdata.h.

BOOL BrushData::m_bTile
 

Definition at line 149 of file brshdata.h.

BOOL BrushData::m_bTimeStampBrushes
 

Definition at line 211 of file brshdata.h.

BOOL BrushData::m_bUseLocalFillColour
 

Definition at line 207 of file brshdata.h.

BOOL BrushData::m_bUseLocalTransp
 

Definition at line 208 of file brshdata.h.

BOOL BrushData::m_bUseNamedColour
 

Definition at line 209 of file brshdata.h.

MILLIPOINT BrushData::m_LineWidth
 

Definition at line 204 of file brshdata.h.

String_32 BrushData::m_Name
 

Definition at line 130 of file brshdata.h.

UINT32 BrushData::m_OffsetTypeRandSeed
 

Definition at line 174 of file brshdata.h.

UINT32 BrushData::m_OffsetValueMaxRand
 

Definition at line 175 of file brshdata.h.

UINT32 BrushData::m_OffsetValueRandSeed
 

Definition at line 176 of file brshdata.h.

MILLIPOINT BrushData::m_PathOffsetIncrConst
 

Definition at line 172 of file brshdata.h.

double BrushData::m_PathOffsetIncrProp
 

Definition at line 169 of file brshdata.h.

PathOffset BrushData::m_PathOffsetType
 

Definition at line 158 of file brshdata.h.

MILLIPOINT BrushData::m_PathOffsetValue
 

Definition at line 167 of file brshdata.h.

double BrushData::m_RotAngleIncrConst
 

Definition at line 152 of file brshdata.h.

double BrushData::m_RotAngleIncrProp
 

Definition at line 153 of file brshdata.h.

double BrushData::m_RotateAngle
 

Definition at line 151 of file brshdata.h.

UINT32 BrushData::m_RotationMaxPressure
 

Definition at line 156 of file brshdata.h.

UINT32 BrushData::m_RotationMaxRand
 

Definition at line 154 of file brshdata.h.

UINT32 BrushData::m_RotationRandSeed
 

Definition at line 155 of file brshdata.h.

UINT32 BrushData::m_ScalingMaxPressure
 

Definition at line 191 of file brshdata.h.

UINT32 BrushData::m_SequenceRandSeed
 

Definition at line 201 of file brshdata.h.

SequenceType BrushData::m_SequenceType
 

Definition at line 193 of file brshdata.h.

UINT32 BrushData::m_TimeStampPeriod
 

Definition at line 213 of file brshdata.h.

UINT32 BrushData::m_TranspMaxPressure
 

Definition at line 227 of file brshdata.h.


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