ChangeBrushDefOpParam Class Reference

The param passed to OpChangeBrushDefinition::DoWithParam, identical to ChangeBrushOpParam except for 1) it has a brush handle member and 2) it takes its old and new values from its brush definition instead of a path processor. More...

#include <brushop.h>

Inheritance diagram for ChangeBrushDefOpParam:

ChangeBrushOpParam OpParam CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeBrushDefOpParam ()
 ChangeBrushDefOpParam (const ChangeBrushOpParam &Other)
 kind of a copy constructor, but takes a member of the base class
 ~ChangeBrushDefOpParam ()
void SetOldValues (BrushDefinition *pBrushedNode)
 Copies the current state of the brush node into this classes Old member vars.
void SetNewValues (BrushDefinition *pBrushedNode)
 Copies the current state of the brush node into this classes New member vars.
virtual ChangeBrushOpParam operator= (const ChangeBrushOpParam &Other)
 overrides assignment operator

Public Attributes

BrushHandle m_Handle

Detailed Description

The param passed to OpChangeBrushDefinition::DoWithParam, identical to ChangeBrushOpParam except for 1) it has a brush handle member and 2) it takes its old and new values from its brush definition instead of a path processor.

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

Definition at line 158 of file brushop.h.


Constructor & Destructor Documentation

ChangeBrushDefOpParam::ChangeBrushDefOpParam  )  [inline]
 

Definition at line 164 of file brushop.h.

ChangeBrushDefOpParam::ChangeBrushDefOpParam const ChangeBrushOpParam Other  ) 
 

kind of a copy constructor, but takes a member of the base class

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 1352 of file brushop.cpp.

01353 {
01354     
01355 }

ChangeBrushDefOpParam::~ChangeBrushDefOpParam  )  [inline]
 

Definition at line 166 of file brushop.h.

00166 {};


Member Function Documentation

ChangeBrushOpParam ChangeBrushDefOpParam::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 from ChangeBrushOpParam.

Definition at line 1370 of file brushop.cpp.

01371 {
01372     ChangeBrushOpParam::operator =(Other);
01373     if (Other.IsKindOf(CC_RUNTIME_CLASS(ChangeBrushDefOpParam)))
01374     {
01375         ChangeBrushDefOpParam* pOther = (ChangeBrushDefOpParam*)&Other;
01376         m_Handle = pOther->m_Handle;
01377     }
01378     return *this;
01379 }

void ChangeBrushDefOpParam::SetNewValues BrushDefinition pBrushDef  ) 
 

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 1469 of file brushop.cpp.

01470 {
01471     if (pBrushDef == NULL)
01472     {
01473         ERROR3("Brush Definition is NULL");
01474         return;
01475     }
01476 
01477     // spacing
01478     m_NewSpacing          = pBrushDef->GetSpacing();
01479     m_NewSpacingMaxRand   = pBrushDef->GetSpacingMaxRand();
01480     m_NewSpacingRandSeed  = pBrushDef->GetSpacingRandSeed();
01481     m_NewSpacingIncrProp  = pBrushDef->GetSpacingIncrProp();
01482     m_NewSpacingIncrConst = pBrushDef->GetSpacingIncrConst();
01483     
01484     // scaling
01485     m_NewScaling          = pBrushDef->GetBrushScaling();
01486     m_NewScalingIncr      = pBrushDef->GetBrushScalingIncr();
01487     m_NewScalingIncrConst = pBrushDef->GetBrushScalingIncrConst();
01488     m_NewScalingMaxPressure = pBrushDef->GetScalingMaxPressure();
01489 
01490     m_NewPathOffsetVal    = pBrushDef->GetPathOffsetValue();
01491     m_NewOffsetIncrProp   = pBrushDef->GetPathOffsetIncrProp();
01492     m_NewOffsetIncrConst  = pBrushDef->GetPathOffsetIncrConst();
01493     m_NewPathOffsetType   = pBrushDef->GetPathOffsetType();
01494     m_bNewTiled           = pBrushDef->IsTiled();
01495     m_bNewRotated         = pBrushDef->IsRotated();
01496     m_NewRotateAngle      = pBrushDef->GetRotationAngle();
01497 
01498     m_NewOffsetTypeRandSeed = pBrushDef->GetOffsetTypeRandSeed();
01499     m_NewSequenceRandSeed   = pBrushDef->GetSequenceSeed();
01500     m_NewSequenceType       = pBrushDef->GetSequenceType();
01501     m_NewTimeStampValue     = (UINT32)pBrushDef->GetTimeStampingPeriod();
01502 
01503 
01504 }

void ChangeBrushDefOpParam::SetOldValues BrushDefinition pBrushDef  ) 
 

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 1396 of file brushop.cpp.

01397 {
01398     if (pBrushDef == NULL)
01399     {
01400         ERROR3("Attribute is NULL");
01401         return;
01402     }
01403 
01404     // spacing
01405     m_OldSpacing          = pBrushDef->GetSpacing();
01406     m_OldSpacingMaxRand   = pBrushDef->GetSpacingMaxRand();
01407     m_OldSpacingRandSeed  = pBrushDef->GetSpacingRandSeed();
01408     m_OldSpacingIncrProp  = pBrushDef->GetSpacingIncrProp();
01409     m_OldSpacingIncrConst = pBrushDef->GetSpacingIncrConst();
01410     
01411     // scaling
01412     m_OldScaling          = pBrushDef->GetBrushScaling();
01413     m_OldScalingIncr      = pBrushDef->GetBrushScalingIncr();
01414     m_OldScalingIncrConst = pBrushDef->GetBrushScalingIncrConst();
01415     m_OldScalingMaxPressure = pBrushDef->GetScalingMaxPressure();
01416     m_OldScalingMaxRand   = pBrushDef->GetScalingMaxRand();
01417     m_OldScalingRandSeed  = pBrushDef->GetScalingRandSeed();
01418 
01419     // offset
01420     m_OldPathOffsetVal    = pBrushDef->GetPathOffsetValue();
01421     m_OldOffsetIncrProp   = pBrushDef->GetPathOffsetIncrProp();
01422     m_OldOffsetIncrConst  = pBrushDef->GetPathOffsetIncrConst();
01423     m_OldPathOffsetType   = pBrushDef->GetPathOffsetType();
01424     m_OldOffsetValMaxRand = pBrushDef->GetOffsetValueMaxRand();
01425     m_OldOffsetValRandSeed = pBrushDef->GetOffsetValueRandSeed();
01426     m_OldOffsetTypeRandSeed = pBrushDef->GetOffsetTypeRandSeed();
01427     
01428     m_bOldTiled           = pBrushDef->IsTiled();
01429     
01430     // rotation
01431     m_bOldRotated         = pBrushDef->IsRotated();
01432     m_OldRotateAngle      = pBrushDef->GetRotationAngle();
01433     m_OldRotateRandSeed   = pBrushDef->GetRotationRandSeed();
01434     m_OldRotateMaxRand    = pBrushDef->GetRotationMaxRand();
01435     m_OldRotationMaxPressure = pBrushDef->GetRotationMaxPressure();
01436     m_OldRotationIncrConst = pBrushDef->GetRotationIncrConst();
01437 
01438     // sequence
01439     m_OldSequenceRandSeed   = pBrushDef->GetSequenceSeed();
01440     m_OldSequenceType       = pBrushDef->GetSequenceType();
01441 
01442     // fills
01443     m_OldHueIncrement       = pBrushDef->GetHueIncrement();
01444     m_OldHueMaxRand         = pBrushDef->GetHueMaxRand();
01445     m_OldHueRandSeed        = pBrushDef->GetHueRandSeed();
01446     
01447     m_OldSatMaxRand         = pBrushDef->GetSatMaxRand();
01448     m_OldSatRandSeed        = pBrushDef->GetSatRandSeed();
01449 
01450     m_OldTransp             = pBrushDef->GetBrushTransparency();
01451     m_OldTranspPressure     = pBrushDef->GetTransparencyPressure();
01452 }


Member Data Documentation

BrushHandle ChangeBrushDefOpParam::m_Handle
 

Definition at line 174 of file brushop.h.


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