ChangeBrushOpParam Class Reference

The param passed to OpChangeBrush::DoWithParam. More...

#include <opdrbrsh.h>

Inheritance diagram for ChangeBrushOpParam:

OpParam CCObject SimpleCCObject ChangeBrushDefOpParam List of all members.

Public Member Functions

 ChangeBrushOpParam ()
 default contructor
 ChangeBrushOpParam (const ChangeBrushOpParam &Other)
 copy constructor
 ~ChangeBrushOpParam ()
void InitMembers ()
 initialise our numerous members to something sensible
BOOL ChangeLineWidth ()
 as above
virtual void SetOldValues (AttrBrushType *pBrushedNode)
 Copies the current state of the brush node into this classes Old member vars.
virtual void SetNewValues (AttrBrushType *pBrushedNode)
 Copies the current state of the brush node into this classes New member vars.
virtual ChangeBrushOpParam operator= (const ChangeBrushOpParam &Other)
 overrides assignment operator
void SwapOldAndNew ()
 Swaps the old and new values of this class.
void SwapDouble (double &First, double &Second)
 Swaps the two double values.
void SwapUINT (UINT32 &First, UINT32 &Second)
 Swaps the two UINT32 values.
void SwapINT32 (INT32 &First, INT32 &Second)
 Swaps the two INT32 values.
void SwapBOOL (BOOL &First, BOOL &Second)
 Swaps the two BOOL values.
void SetValues (BrushData Data)
 sets the values of this opparam to those contained in the data object

Public Attributes

ChangeBrushType ChangeType
MILLIPOINT m_OldSpacing
MILLIPOINT m_NewSpacing
double m_NewSpacingIncrProp
double m_OldSpacingIncrProp
MILLIPOINT m_NewSpacingIncrConst
MILLIPOINT m_OldSpacingIncrConst
PressureArraym_pPressure
UINT32 m_OldSpacingMaxRand
UINT32 m_NewSpacingMaxRand
UINT32 m_NewSpacingRandSeed
UINT32 m_OldSpacingRandSeed
double m_OldScaling
double m_NewScaling
double m_NewScalingIncr
double m_OldScalingIncr
double m_NewScalingIncrConst
double m_OldScalingIncrConst
UINT32 m_NewScalingMaxRand
UINT32 m_OldScalingMaxRand
UINT32 m_NewScalingRandSeed
UINT32 m_OldScalingRandSeed
UINT32 m_OldScalingMaxPressure
UINT32 m_NewScalingMaxPressure
PathOffset m_OldPathOffsetType
PathOffset m_NewPathOffsetType
UINT32 m_NewOffsetTypeRandSeed
UINT32 m_OldOffsetTypeRandSeed
MILLIPOINT m_OldPathOffsetVal
MILLIPOINT m_NewPathOffsetVal
double m_NewOffsetIncrProp
double m_OldOffsetIncrProp
MILLIPOINT m_NewOffsetIncrConst
MILLIPOINT m_OldOffsetIncrConst
UINT32 m_NewOffsetValMaxRand
UINT32 m_OldOffsetValMaxRand
UINT32 m_NewOffsetValRandSeed
UINT32 m_OldOffsetValRandSeed
BOOL m_bOldTiled
BOOL m_bNewTiled
BOOL m_bOldRotated
BOOL m_bNewRotated
double m_OldRotateAngle
double m_NewRotateAngle
double m_OldRotationIncrProp
double m_NewRotationIncrProp
double m_OldRotationIncrConst
double m_NewRotationIncrConst
UINT32 m_NewRotateMaxRand
UINT32 m_OldRotateMaxRand
UINT32 m_NewRotateRandSeed
UINT32 m_OldRotateRandSeed
UINT32 m_NewRotationMaxPressure
UINT32 m_OldRotationMaxPressure
String_32 m_OldBrushName
String_32 m_NewBrushName
BOOL m_bOldUseLocalFillColour
BOOL m_bNewUseLocalFillColour
BOOL m_bNewUseLocalTransp
BOOL m_bOldUseLocalTransp
BOOL m_bOldUseNamed
BOOL m_bNewUseNamed
SequenceType m_OldSequenceType
SequenceType m_NewSequenceType
UINT32 m_NewSequenceRandSeed
UINT32 m_OldSequenceRandSeed
double m_NewHueIncrement
double m_OldHueIncrement
UINT32 m_NewHueMaxRand
UINT32 m_OldHueMaxRand
UINT32 m_NewHueRandSeed
UINT32 m_OldHueRandSeed
UINT32 m_NewSatMaxRand
UINT32 m_OldSatMaxRand
UINT32 m_NewSatRandSeed
UINT32 m_OldSatRandSeed
INT32 m_NewTransp
INT32 m_OldTransp
UINT32 m_NewTranspPressure
UINT32 m_OldTranspPressure
double m_OldTimeStampValue
double m_NewTimeStampValue

Detailed Description

The param passed to OpChangeBrush::DoWithParam.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
See also:
-

Definition at line 383 of file opdrbrsh.h.


Constructor & Destructor Documentation

ChangeBrushOpParam::ChangeBrushOpParam  ) 
 

default contructor

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4533 of file opdrbrsh.cpp.

04534 {
04535     InitMembers();
04536 }

ChangeBrushOpParam::ChangeBrushOpParam const ChangeBrushOpParam Other  ) 
 

copy constructor

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
Other the ChangeBrushOpParam whose values we wish to assign [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4552 of file opdrbrsh.cpp.

04553 {
04554 
04555 }

ChangeBrushOpParam::~ChangeBrushOpParam  )  [inline]
 

Definition at line 391 of file opdrbrsh.h.

00391 {}


Member Function Documentation

BOOL ChangeBrushOpParam::ChangeLineWidth  ) 
 

as above

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if this op param will cause the line width pf a brush to change, FALSE if not

Errors: -

Definition at line 4640 of file opdrbrsh.cpp.

04641 {
04642     // see what type we are
04643     BOOL Retval = FALSE;
04644     
04645     switch (ChangeType)
04646     {
04647         // these types of changes will cause the line width to change
04648         case CHANGEBRUSH_SCALING_MAXRAND:
04649         case CHANGEBRUSH_SCALING_RANDSEED:
04650         case CHANGEBRUSH_OFFSET_TYPE:
04651         case CHANGEBRUSH_OFFSET_VAL:
04652         case CHANGEBRUSH_OFFSET_MAXRAND:
04653         case CHANGEBRUSH_TANGENTIAL:
04654         case CHANGEBRUSH_ROTATE_ANGLE:
04655         case CHANGEBRUSH_ROTATE_INCRCONST:
04656         case CHANGEBRUSH_ROTATE_MAXRAND:
04657         case CHANGEBRUSH_ALL:
04658             Retval = TRUE;
04659         break;
04660 
04661         default: // do nothing
04662         break;
04663     }
04664 
04665     return Retval;
04666 
04667 }

void ChangeBrushOpParam::InitMembers  ) 
 

initialise our numerous members to something sensible

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4572 of file opdrbrsh.cpp.

04573 {
04574     ChangeType = CHANGEBRUSH_NONE;
04575 
04576     m_NewSpacing = m_OldSpacing = 10000;
04577     m_NewSpacingIncrProp = m_OldSpacingIncrProp = 1.0;
04578     m_NewSpacingIncrConst = m_OldSpacingIncrConst = 0;
04579     m_pPressure = NULL;
04580     m_OldSpacingMaxRand = m_NewSpacingMaxRand = 0;
04581     m_NewSpacingRandSeed = m_OldSpacingRandSeed = 0;
04582     m_OldScaling = m_NewScaling = 1.0;
04583     m_NewScalingIncr = m_OldScalingIncr = 1.0;
04584     m_NewScalingIncrConst = m_OldScalingIncrConst = 0;
04585     m_NewScalingMaxRand = m_OldScalingMaxRand = 0;
04586     m_NewScalingRandSeed = m_OldScalingRandSeed = 0;
04587     m_OldScalingMaxPressure = m_NewScalingMaxPressure = 0;
04588     m_OldPathOffsetType = m_NewPathOffsetType = OFFSET_NONE;
04589     m_NewOffsetTypeRandSeed = m_OldOffsetTypeRandSeed = 0;
04590     m_OldPathOffsetVal = m_NewPathOffsetVal = 0;
04591     m_NewOffsetIncrProp = m_OldOffsetIncrProp = 1.0;
04592     m_NewOffsetIncrConst = m_OldOffsetIncrConst = 0;
04593     m_NewOffsetValMaxRand = m_OldOffsetValMaxRand = 0;
04594     m_NewOffsetValRandSeed = m_OldOffsetValRandSeed = 0;
04595     m_bOldTiled = m_bNewTiled = TRUE;
04596     m_bOldRotated = m_bNewRotated = FALSE;
04597     m_OldRotateAngle = m_NewRotateAngle = 0.0;
04598     m_OldRotationIncrProp = m_NewRotationIncrProp = 1.0;
04599     m_OldRotationIncrConst = m_NewRotationIncrConst = 0.0;
04600     m_NewRotateMaxRand = m_OldRotateMaxRand = 0;
04601     m_NewRotateRandSeed = m_OldRotateRandSeed = 0;
04602     m_NewRotationMaxPressure = m_OldRotationMaxPressure = 0;
04603     m_OldBrushName = m_NewBrushName = TEXT("Custom Brush");
04604     m_bOldUseLocalFillColour = m_bNewUseLocalFillColour = FALSE;
04605     m_bNewUseLocalTransp = m_bOldUseLocalTransp = FALSE;
04606     m_bOldUseNamed = m_bNewUseNamed = FALSE;
04607     m_OldSequenceType = m_NewSequenceType = SEQ_FORWARD;
04608     m_NewSequenceRandSeed = m_OldSequenceRandSeed = 0;
04609     m_NewHueIncrement = m_OldHueIncrement = 0;
04610     m_NewHueMaxRand = m_OldHueMaxRand = 0;
04611     m_NewHueRandSeed = m_OldHueRandSeed = 0;
04612     m_NewSatMaxRand = m_OldSatMaxRand = 0;
04613     m_NewSatRandSeed = m_OldSatRandSeed = 0;
04614     m_NewTransp = m_OldTransp = 100;
04615     m_NewTranspPressure = m_OldTranspPressure = 0;
04616 
04617     m_OldTimeStampValue = m_NewTimeStampValue = 50;
04618 
04619 
04620 
04621 }

ChangeBrushOpParam ChangeBrushOpParam::operator= const ChangeBrushOpParam Other  )  [virtual]
 

overrides assignment operator

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
Other the ChangeBrushOpParam whose values we wish to assign [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Reimplemented in ChangeBrushDefOpParam.

Definition at line 4683 of file opdrbrsh.cpp.

04684 {
04685     m_OldSpacing = Other.m_OldSpacing;
04686     m_NewSpacing = Other.m_NewSpacing;
04687     m_NewSpacingIncrProp = Other.m_NewSpacingIncrProp;
04688     m_OldSpacingIncrProp = Other.m_OldSpacingIncrProp;
04689     m_NewSpacingIncrConst = Other.m_NewSpacingIncrConst;
04690     m_OldSpacingIncrConst = Other.m_OldSpacingIncrConst;
04691     m_OldSpacingMaxRand = Other.m_OldSpacingMaxRand;
04692     m_NewSpacingMaxRand = Other.m_NewSpacingMaxRand;
04693     m_NewSpacingRandSeed = Other.m_NewSpacingRandSeed;
04694     m_OldSpacingRandSeed = Other.m_OldSpacingRandSeed;
04695     m_OldScaling = Other.m_OldScaling;
04696     m_NewScaling = Other.m_NewScaling;
04697     m_NewScalingIncr = Other.m_NewScalingIncr;
04698     m_OldScalingIncr = Other.m_OldScalingIncr;
04699     m_NewScalingIncrConst = Other.m_NewScalingIncrConst;
04700     m_OldScalingIncrConst = Other.m_OldScalingIncrConst;
04701     m_NewScalingMaxRand = Other.m_NewScalingMaxRand;
04702     m_OldScalingMaxRand = Other.m_OldScalingMaxRand;
04703     m_NewScalingRandSeed = Other.m_NewScalingRandSeed;
04704     m_OldScalingRandSeed = Other.m_OldScalingRandSeed;
04705     m_NewScalingMaxPressure = Other.m_NewScalingMaxPressure;
04706     m_OldScalingMaxPressure = Other.m_OldScalingMaxPressure;
04707     m_OldPathOffsetType = Other.m_OldPathOffsetType;
04708     m_NewPathOffsetType = Other.m_NewPathOffsetType;
04709     m_NewOffsetTypeRandSeed = Other.m_NewOffsetTypeRandSeed;
04710     m_OldOffsetTypeRandSeed = Other.m_OldOffsetTypeRandSeed;
04711     m_OldPathOffsetVal = Other.m_OldPathOffsetVal;
04712     m_NewPathOffsetVal = Other.m_NewPathOffsetVal;
04713     m_NewOffsetIncrProp = Other.m_NewOffsetIncrProp;
04714     m_OldOffsetIncrProp = Other.m_OldOffsetIncrProp;
04715     m_NewOffsetIncrConst = Other.m_NewOffsetIncrConst;
04716     m_OldOffsetIncrConst = Other.m_OldOffsetIncrConst;
04717     m_NewOffsetValMaxRand = Other.m_NewOffsetValMaxRand;
04718     m_OldOffsetValMaxRand = Other.m_OldOffsetValMaxRand;
04719     m_NewOffsetValRandSeed = Other.m_NewOffsetValRandSeed;
04720     m_OldOffsetValRandSeed = Other.m_OldOffsetValRandSeed;
04721     m_bOldTiled = Other.m_bOldTiled;
04722     m_bNewTiled = Other.m_bNewTiled;
04723     m_bOldRotated = Other.m_bOldRotated;
04724     m_bNewRotated = Other.m_bNewRotated;
04725     m_OldRotateAngle = Other.m_OldRotateAngle;
04726     m_NewRotateAngle = Other.m_NewRotateAngle;
04727     m_OldRotationIncrProp = Other.m_OldRotationIncrProp;
04728     m_NewRotationIncrProp = Other.m_NewRotationIncrProp;
04729     m_OldRotationIncrConst = Other.m_NewRotationIncrConst;
04730     m_NewRotationIncrConst = Other.m_NewRotationIncrConst;
04731     m_NewRotateMaxRand = Other.m_NewRotateMaxRand;
04732     m_OldRotateMaxRand = Other.m_OldRotateMaxRand;
04733     m_NewRotateRandSeed = Other.m_NewRotateRandSeed;
04734     m_OldRotateRandSeed = Other.m_OldRotateRandSeed;
04735     m_NewRotationMaxPressure = Other.m_NewRotationMaxPressure;
04736     m_OldBrushName = Other.m_OldBrushName;
04737     m_NewBrushName = Other.m_NewBrushName;
04738     m_bOldUseLocalFillColour = Other.m_bOldUseLocalFillColour;
04739     m_bNewUseLocalFillColour = Other.m_bNewUseLocalFillColour;
04740     m_bOldUseLocalTransp     = Other.m_bOldUseLocalTransp;
04741     m_bNewUseLocalTransp     = Other.m_bNewUseLocalTransp;
04742     m_OldSequenceType = Other.m_OldSequenceType;
04743     m_NewSequenceType = Other.m_NewSequenceType;
04744     m_NewSequenceRandSeed = Other.m_NewSequenceRandSeed;
04745     m_OldSequenceRandSeed = Other.m_OldSequenceRandSeed;
04746     m_NewTimeStampValue = Other.m_NewTimeStampValue;
04747     m_OldTimeStampValue = Other.m_OldTimeStampValue;
04748     m_bOldUseNamed = Other.m_bOldUseNamed;
04749     m_bNewUseNamed = Other.m_bNewUseNamed;
04750     m_NewHueMaxRand = Other.m_NewHueMaxRand;
04751     m_OldHueMaxRand = Other.m_OldHueMaxRand;
04752     m_NewHueRandSeed = Other.m_NewHueRandSeed;
04753     m_OldHueRandSeed = Other.m_OldHueRandSeed;
04754     m_NewSatMaxRand = Other.m_NewSatMaxRand;
04755     m_OldSatMaxRand = Other.m_OldSatMaxRand;
04756     m_NewSatRandSeed = Other.m_NewSatRandSeed;
04757     m_OldSatRandSeed = Other.m_OldSatRandSeed;
04758     m_NewTransp      = Other.m_NewTransp;
04759     m_OldTransp      = Other.m_OldTransp;
04760     m_NewTranspPressure = Other.m_NewTranspPressure;
04761     m_OldTranspPressure = Other.m_OldTranspPressure;
04762     return *this;
04763 }

void ChangeBrushOpParam::SetNewValues AttrBrushType pAttrBrush  )  [virtual]
 

Copies the current state of the brush node into this classes New member vars.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
pAttrBrush - the attribute being changed by the operation [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4851 of file opdrbrsh.cpp.

04852 {
04853     if (pAttrBrush == NULL)
04854     {
04855         ERROR3("Attribute is NULL");
04856         return;
04857     }
04858     MILLIPOINT Value = pAttrBrush->GetSpacing();
04859     if (Value != -1)
04860         m_NewSpacing = Value;
04861     else
04862         m_NewSpacing = DEFAULT_BRUSH_SPACING;
04863 
04864     PathProcessorBrush* pPPB = pAttrBrush->GetPathProcessor();
04865     if (pPPB != NULL)
04866     {
04867         m_NewSpacingMaxRand     = pPPB->GetSpacingMaxRand();
04868         m_NewSpacingRandSeed    = pPPB->GetSpacingRandSeed();
04869         m_NewSpacingIncrProp    = pPPB->GetSpacingIncrProp();
04870         m_NewSpacingIncrConst   = pPPB->GetSpacingIncrConst();
04871         m_NewScaling            = pPPB->GetBrushScaling();
04872         m_NewScalingIncr        = pPPB->GetBrushScalingIncr();
04873         m_NewScalingIncrConst   = pPPB->GetBrushScalingIncrConst();
04874         m_NewScalingMaxPressure = pPPB->GetScalingMaxPressure();
04875         m_NewScalingMaxRand     = pPPB->GetScalingMaxRand();
04876         m_NewScalingRandSeed    = pPPB->GetScalingRandSeed();
04877         m_NewPathOffsetVal      = pPPB->GetPathOffsetValue();
04878         m_NewOffsetIncrProp     = pPPB->GetPathOffsetIncrProp();
04879         m_NewOffsetIncrConst    = pPPB->GetPathOffsetIncrConst();
04880         m_NewPathOffsetType     = pPPB->GetPathOffsetType();
04881         m_NewOffsetValMaxRand   = pPPB->GetOffsetValueMaxRand();
04882         m_bNewTiled             = pPPB->IsTiled();
04883         m_bNewRotated           = pPPB->IsRotated();
04884         m_NewRotateAngle        = pPPB->GetRotationAngle();
04885         m_NewRotationIncrConst  = pPPB->GetRotationIncrConst();
04886         m_NewRotationIncrProp   = pPPB->GetRotationIncrProp();
04887         m_NewRotateRandSeed     = pPPB->GetRotationRandSeed();
04888         m_NewRotateMaxRand      = pPPB->GetRotationMaxRand();
04889         m_NewRotationMaxPressure    = pPPB->GetRotationMaxPressure();
04890         m_bNewUseLocalFillColour   = pPPB->GetUseLocalFillColour();
04891         m_bNewUseLocalTransp    = pPPB->GetUseLocalTransp();
04892         m_NewOffsetTypeRandSeed = pPPB->GetOffsetTypeRandSeed();
04893         m_NewSequenceType       = pPPB->GetSequenceType();
04894         m_NewSequenceRandSeed   = pPPB->GetSequenceSeed();
04895         m_bNewUseNamed          = pPPB->GetUseNamedColours();
04896         m_NewHueMaxRand         = pPPB->GetHueMaxRand();
04897         m_NewHueRandSeed        = pPPB->GetHueRandSeed();
04898         m_NewSatMaxRand         = pPPB->GetSatMaxRand();
04899         m_NewSatRandSeed        = pPPB->GetSatRandSeed();
04900         m_NewTransp             = pPPB->GetBrushTransparency();
04901         m_NewTranspPressure     = pPPB->GetTransparencyPressure();
04902     }
04903 
04904 }

void ChangeBrushOpParam::SetOldValues AttrBrushType pAttrBrush  )  [virtual]
 

Copies the current state of the brush node into this classes Old member vars.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
pAttrBrush - pointer to brush attribute which is being changed [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4779 of file opdrbrsh.cpp.

04780 {
04781     if (pAttrBrush == NULL)
04782     {
04783         ERROR3("Attribute is NULL");
04784         return;
04785     }
04786     MILLIPOINT Value = pAttrBrush->GetSpacing();
04787     if (Value != -1)
04788         m_OldSpacing = Value;
04789     else
04790         m_OldSpacing = DEFAULT_BRUSH_SPACING;
04791 
04792     PathProcessorBrush* pPPB = pAttrBrush->GetPathProcessor();
04793     if (pPPB != NULL)
04794     {
04795         m_OldSpacingMaxRand   = pPPB->GetSpacingMaxRand();
04796         m_OldSpacingRandSeed  = pPPB->GetSpacingRandSeed();
04797         m_OldSpacingIncrProp  = pPPB->GetSpacingIncrProp();
04798         m_OldSpacingIncrConst = pPPB->GetSpacingIncrConst();
04799         m_OldScaling          = pPPB->GetBrushScaling();
04800         m_OldScalingIncr      = pPPB->GetBrushScalingIncr();
04801         m_OldScalingIncrConst = pPPB->GetBrushScalingIncrConst();
04802         m_OldScalingMaxPressure = pPPB->GetScalingMaxPressure();
04803         m_OldScalingMaxRand     = pPPB->GetScalingMaxRand();
04804         m_OldScalingRandSeed    = pPPB->GetScalingRandSeed();
04805         m_OldPathOffsetVal    = pPPB->GetPathOffsetValue();
04806         m_OldOffsetIncrProp   = pPPB->GetPathOffsetIncrProp();
04807         m_OldOffsetIncrConst  = pPPB->GetPathOffsetIncrConst();
04808         m_OldPathOffsetType   = pPPB->GetPathOffsetType();
04809         m_OldOffsetValMaxRand = pPPB->GetOffsetValueMaxRand();
04810         m_bOldTiled           = pPPB->IsTiled();
04811         m_bOldRotated         = pPPB->IsRotated();
04812         m_OldRotateAngle      = pPPB->GetRotationAngle();
04813         m_OldRotationIncrConst = pPPB->GetRotationIncrConst();
04814         m_OldRotationIncrProp  = pPPB->GetRotationIncrProp();
04815         m_OldRotationMaxPressure = pPPB->GetRotationMaxPressure();
04816         m_OldRotateMaxRand   = pPPB->GetRotationMaxRand();
04817         m_bOldUseLocalFillColour    = pPPB->GetUseLocalFillColour();
04818         m_bOldUseLocalTransp = pPPB->GetUseLocalTransp();
04819         m_OldOffsetTypeRandSeed = pPPB->GetOffsetTypeRandSeed();
04820         m_OldSequenceType       = pPPB->GetSequenceType();
04821         m_OldSequenceRandSeed   = pPPB->GetSequenceSeed();
04822         m_bOldUseNamed          = pPPB->GetUseNamedColours();
04823         m_OldHueMaxRand         = pPPB->GetHueMaxRand();
04824         m_OldHueRandSeed        = pPPB->GetHueRandSeed();
04825         m_OldSatMaxRand         = pPPB->GetSatMaxRand();
04826         m_OldSatRandSeed        = pPPB->GetSatRandSeed();
04827         m_OldTransp             = pPPB->GetBrushTransparency();
04828         m_OldTranspPressure     = pPPB->GetTransparencyPressure();
04829         
04830     }
04831     //m_pPressure = pAttrBrush->GetPressureCache();
04832 
04833 
04834 }

void ChangeBrushOpParam::SetValues BrushData  Data  ) 
 

sets the values of this opparam to those contained in the data object

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
Data - a data object containing the values to set [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 5074 of file opdrbrsh.cpp.

05075 {
05076     m_NewSpacing            = Data.m_BrushSpacing;
05077     m_NewSpacingIncrConst   = Data.m_BrushSpacingIncrConst;
05078     m_NewSpacingIncrProp    = Data.m_BrushSpacingIncrProp;
05079     m_NewSpacingMaxRand     = Data.m_BrushSpacingMaxRand;
05080     m_NewSpacingRandSeed    = Data.m_BrushSpacingRandSeed;
05081     m_NewScaling            = Data.m_BrushScaling;
05082     m_NewScalingIncr        = Data.m_BrushScalingIncr;
05083     m_NewScalingIncrConst   = Data.m_BrushScalingIncrConst;
05084     m_NewScalingMaxRand     = Data.m_BrushScalingMaxRand;
05085     m_NewScalingRandSeed    = Data.m_BrushScalingRandSeed;
05086     m_NewScalingMaxPressure = Data.m_ScalingMaxPressure;
05087     m_NewPathOffsetType     = Data.m_PathOffsetType;
05088     m_NewOffsetTypeRandSeed = Data.m_OffsetTypeRandSeed;
05089     m_NewPathOffsetVal      = Data.m_PathOffsetValue;
05090     m_NewOffsetIncrConst    = Data.m_PathOffsetIncrConst;
05091     m_NewOffsetIncrProp     = Data.m_PathOffsetIncrProp;
05092     m_NewOffsetValMaxRand   = Data.m_OffsetValueMaxRand;
05093     m_NewOffsetValRandSeed  = Data.m_OffsetValueRandSeed;
05094     m_bNewTiled             = Data.m_bTile;
05095     m_bNewRotated           = Data.m_bRotate;
05096     m_NewRotateAngle        = Data.m_RotateAngle;
05097     m_NewRotationIncrProp   = Data.m_RotAngleIncrProp;
05098     m_NewRotationIncrConst  = Data.m_RotAngleIncrConst;
05099     m_NewRotateMaxRand      = Data.m_RotationMaxRand;
05100     m_NewRotateRandSeed     = Data.m_RotationRandSeed;
05101     m_NewRotationMaxPressure = Data.m_RotationMaxPressure;
05102     m_bNewUseLocalFillColour = Data.m_bUseLocalFillColour;
05103     m_bNewUseNamed           = Data.m_bUseNamedColour;
05104     m_NewSequenceType        = Data.m_SequenceType;
05105     m_NewSequenceRandSeed    = Data.m_SequenceRandSeed;
05106     m_NewHueMaxRand          = Data.m_BrushHueMaxRand;
05107     m_NewHueRandSeed         = Data.m_BrushHueRandSeed;
05108     m_NewSatMaxRand          = Data.m_BrushSatMaxRand;
05109     m_NewSatRandSeed         = Data.m_BrushSatRandSeed;
05110     m_NewTransp              = Data.m_BrushTransparency;
05111     m_NewTranspPressure      = Data.m_TranspMaxPressure;
05112 
05113 }

void ChangeBrushOpParam::SwapBOOL BOOL &  First,
BOOL &  Second
 

Swaps the two BOOL values.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
First - the first value [INPUTS] Second - the value to swap with
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 5053 of file opdrbrsh.cpp.

05054 {
05055     BOOL Temp = First;
05056     First = Second;
05057     Second = Temp;
05058 }

void ChangeBrushOpParam::SwapDouble double &  First,
double &  Second
 

Swaps the two double values.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
First - the first value [INPUTS] Second - the value to swap with
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4984 of file opdrbrsh.cpp.

04985 {
04986     double Temp = First;
04987     First = Second;
04988     Second = Temp;
04989 }

void ChangeBrushOpParam::SwapINT32 INT32 &  First,
INT32 &  Second
 

Swaps the two INT32 values.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
First - the first value [INPUTS] Second - the value to swap with
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 5030 of file opdrbrsh.cpp.

05031 {
05032     INT32 Temp = First;
05033     First = Second;
05034     Second = Temp;
05035 }

void ChangeBrushOpParam::SwapOldAndNew  ) 
 

Swaps the old and new values of this class.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 4920 of file opdrbrsh.cpp.

04921 {
04922     SwapINT32(m_OldSpacing, m_NewSpacing);
04923     SwapINT32( m_OldSpacingIncrConst, m_NewSpacingIncrConst);
04924     SwapDouble(m_OldSpacingIncrProp, m_NewSpacingIncrProp);
04925     SwapUINT( m_OldSpacingMaxRand, m_NewSpacingMaxRand);
04926     SwapUINT( m_OldSpacingRandSeed, m_NewSpacingRandSeed);
04927     SwapDouble(m_OldScaling, m_NewScaling);
04928     SwapDouble(m_OldScalingIncr, m_NewScalingIncr);
04929     SwapDouble(m_OldScalingIncrConst, m_NewScalingIncrConst);
04930     SwapUINT( m_OldScalingMaxRand, m_NewScalingMaxRand);
04931     SwapUINT( m_OldScalingRandSeed, m_NewScalingRandSeed);
04932     SwapUINT( m_OldScalingMaxPressure, m_NewScalingMaxPressure);
04933     
04934     // using this typedef in the macro seems to cause floating point errors in release builds
04935     PathOffset TempOffset = m_OldPathOffsetType;
04936     m_OldPathOffsetType = m_NewPathOffsetType;
04937     m_NewPathOffsetType = TempOffset;
04938 
04939     SwapUINT( m_OldOffsetTypeRandSeed, m_NewOffsetTypeRandSeed);
04940     SwapINT32( m_OldPathOffsetVal, m_NewPathOffsetVal);
04941     SwapINT32( m_OldOffsetIncrConst, m_NewOffsetIncrConst);
04942     SwapDouble(m_OldOffsetIncrProp, m_NewOffsetIncrProp);
04943     SwapUINT( m_OldOffsetValMaxRand, m_NewOffsetValMaxRand);
04944     SwapUINT( m_OldOffsetValRandSeed, m_NewOffsetValRandSeed);
04945     SwapBOOL(m_bOldTiled, m_bNewTiled);
04946     SwapBOOL(m_bOldRotated, m_bNewRotated);
04947     SwapDouble(m_OldRotateAngle, m_NewRotateAngle);
04948     SwapDouble(m_OldRotationIncrProp, m_NewRotationIncrProp);
04949     SwapDouble(m_OldRotationIncrConst, m_NewRotationIncrConst);
04950     SwapUINT( m_OldRotateMaxRand, m_NewRotateMaxRand);
04951     SwapUINT( m_OldRotateRandSeed, m_NewRotateRandSeed);
04952     SwapUINT( m_OldRotationMaxPressure, m_NewRotationMaxPressure);
04953     SwapBOOL(m_bOldUseLocalFillColour, m_bNewUseLocalFillColour);
04954     SwapBOOL(m_bOldUseLocalTransp, m_bNewUseLocalTransp);
04955     SequenceType Temp = m_OldSequenceType;
04956     m_OldSequenceType = m_NewSequenceType;
04957     m_NewSequenceType = Temp;
04958     SwapUINT( m_OldSequenceRandSeed, m_NewSequenceRandSeed);
04959     SwapBOOL(m_bOldUseNamed, m_bNewUseNamed);
04960     SwapUINT( m_OldHueMaxRand, m_NewHueMaxRand);
04961     SwapUINT( m_OldHueRandSeed, m_NewHueRandSeed);
04962     SwapUINT( m_OldSatMaxRand, m_NewSatMaxRand);
04963     SwapUINT( m_OldSatRandSeed, m_NewSatRandSeed);
04964     SwapINT32( m_OldTransp, m_NewTransp);
04965     SwapUINT( m_OldTranspPressure, m_NewTranspPressure);
04966 }

void ChangeBrushOpParam::SwapUINT UINT32 First,
UINT32 Second
 

Swaps the two UINT32 values.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
18/11/99
Parameters:
First - the first value [INPUTS] Second - the value to swap with
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 5007 of file opdrbrsh.cpp.

05008 {
05009     UINT32 Temp = First;
05010     First = Second;
05011     Second = Temp;
05012 }


Member Data Documentation

ChangeBrushType ChangeBrushOpParam::ChangeType
 

Definition at line 408 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bNewRotated
 

Definition at line 450 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bNewTiled
 

Definition at line 448 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bNewUseLocalFillColour
 

Definition at line 466 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bNewUseLocalTransp
 

Definition at line 467 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bNewUseNamed
 

Definition at line 470 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bOldRotated
 

Definition at line 449 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bOldTiled
 

Definition at line 447 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bOldUseLocalFillColour
 

Definition at line 465 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bOldUseLocalTransp
 

Definition at line 468 of file opdrbrsh.h.

BOOL ChangeBrushOpParam::m_bOldUseNamed
 

Definition at line 469 of file opdrbrsh.h.

String_32 ChangeBrushOpParam::m_NewBrushName
 

Definition at line 464 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewHueIncrement
 

Definition at line 475 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewHueMaxRand
 

Definition at line 477 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewHueRandSeed
 

Definition at line 479 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_NewOffsetIncrConst
 

Definition at line 441 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewOffsetIncrProp
 

Definition at line 439 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewOffsetTypeRandSeed
 

Definition at line 435 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewOffsetValMaxRand
 

Definition at line 443 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewOffsetValRandSeed
 

Definition at line 445 of file opdrbrsh.h.

PathOffset ChangeBrushOpParam::m_NewPathOffsetType
 

Definition at line 434 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_NewPathOffsetVal
 

Definition at line 438 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewRotateAngle
 

Definition at line 452 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewRotateMaxRand
 

Definition at line 457 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewRotateRandSeed
 

Definition at line 459 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewRotationIncrConst
 

Definition at line 456 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewRotationIncrProp
 

Definition at line 454 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewRotationMaxPressure
 

Definition at line 461 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewSatMaxRand
 

Definition at line 481 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewSatRandSeed
 

Definition at line 483 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewScaling
 

Definition at line 422 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewScalingIncr
 

Definition at line 423 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewScalingIncrConst
 

Definition at line 425 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewScalingMaxPressure
 

Definition at line 432 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewScalingMaxRand
 

Definition at line 427 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewScalingRandSeed
 

Definition at line 429 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewSequenceRandSeed
 

Definition at line 473 of file opdrbrsh.h.

SequenceType ChangeBrushOpParam::m_NewSequenceType
 

Definition at line 472 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_NewSpacing
 

Definition at line 411 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_NewSpacingIncrConst
 

Definition at line 414 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewSpacingIncrProp
 

Definition at line 412 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewSpacingMaxRand
 

Definition at line 418 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewSpacingRandSeed
 

Definition at line 419 of file opdrbrsh.h.

double ChangeBrushOpParam::m_NewTimeStampValue
 

Definition at line 491 of file opdrbrsh.h.

INT32 ChangeBrushOpParam::m_NewTransp
 

Definition at line 485 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_NewTranspPressure
 

Definition at line 487 of file opdrbrsh.h.

String_32 ChangeBrushOpParam::m_OldBrushName
 

Definition at line 463 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldHueIncrement
 

Definition at line 476 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldHueMaxRand
 

Definition at line 478 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldHueRandSeed
 

Definition at line 480 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_OldOffsetIncrConst
 

Definition at line 442 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldOffsetIncrProp
 

Definition at line 440 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldOffsetTypeRandSeed
 

Definition at line 436 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldOffsetValMaxRand
 

Definition at line 444 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldOffsetValRandSeed
 

Definition at line 446 of file opdrbrsh.h.

PathOffset ChangeBrushOpParam::m_OldPathOffsetType
 

Definition at line 433 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_OldPathOffsetVal
 

Definition at line 437 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldRotateAngle
 

Definition at line 451 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldRotateMaxRand
 

Definition at line 458 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldRotateRandSeed
 

Definition at line 460 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldRotationIncrConst
 

Definition at line 455 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldRotationIncrProp
 

Definition at line 453 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldRotationMaxPressure
 

Definition at line 462 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldSatMaxRand
 

Definition at line 482 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldSatRandSeed
 

Definition at line 484 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldScaling
 

Definition at line 421 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldScalingIncr
 

Definition at line 424 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldScalingIncrConst
 

Definition at line 426 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldScalingMaxPressure
 

Definition at line 431 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldScalingMaxRand
 

Definition at line 428 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldScalingRandSeed
 

Definition at line 430 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldSequenceRandSeed
 

Definition at line 474 of file opdrbrsh.h.

SequenceType ChangeBrushOpParam::m_OldSequenceType
 

Definition at line 471 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_OldSpacing
 

Definition at line 410 of file opdrbrsh.h.

MILLIPOINT ChangeBrushOpParam::m_OldSpacingIncrConst
 

Definition at line 415 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldSpacingIncrProp
 

Definition at line 413 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldSpacingMaxRand
 

Definition at line 417 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldSpacingRandSeed
 

Definition at line 420 of file opdrbrsh.h.

double ChangeBrushOpParam::m_OldTimeStampValue
 

Definition at line 490 of file opdrbrsh.h.

INT32 ChangeBrushOpParam::m_OldTransp
 

Definition at line 486 of file opdrbrsh.h.

UINT32 ChangeBrushOpParam::m_OldTranspPressure
 

Definition at line 488 of file opdrbrsh.h.

PressureArray* ChangeBrushOpParam::m_pPressure
 

Definition at line 416 of file opdrbrsh.h.


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