ChangeBlendOpParam Class Reference

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

#include <blndtool.h>

Inheritance diagram for ChangeBlendOpParam:

OpParam CCObject SimpleCCObject List of all members.

Public Member Functions

 ChangeBlendOpParam ()
 ~ChangeBlendOpParam ()
void SetOldValues (NodeRenderableInk *pNodeBlend)
 Copies the current state of the blend node into this classes Old member vars.
void SetNewValues (NodeRenderableInk *pNodeBlend)
 Copies the current state of the blend node into this classes New member vars.
void SwapOldAndNew ()
 Swaps the old and new values of this class.
void SwapProfiles (CProfileBiasGain *pOldProfile, CProfileBiasGain *pNewProfile)
 Swaps the old and new profiles of this class by swapping the pointers.

Public Attributes

ChangeBlendType ChangeType
BOOL NewAntiAlias
BOOL OldAntiAlias
BOOL NewOneToOne
BOOL OldOneToOne
ColourBlendType NewColBlendType
ColourBlendType OldColBlendType
BOOL NewTangential
BOOL OldTangential
BOOL OldBlendedOnCurve
BOOL NewBlendedOnCurve
CProfileBiasGain OldObjectProfile
CProfileBiasGain NewObjectProfile
CProfileBiasGain OldAttrProfile
CProfileBiasGain NewAttrProfile
EndObject OldEndObject
EndObject NewEndObject

Detailed Description

The param passed to OpChangeBlend::DoWithParam.

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/3/95
See also:
-

Definition at line 993 of file blndtool.h.


Constructor & Destructor Documentation

ChangeBlendOpParam::ChangeBlendOpParam  )  [inline]
 

Definition at line 999 of file blndtool.h.

ChangeBlendOpParam::~ChangeBlendOpParam  )  [inline]
 

Definition at line 1000 of file blndtool.h.

01000 {}


Member Function Documentation

void ChangeBlendOpParam::SetNewValues NodeRenderableInk pNodeBlend  ) 
 

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

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
pNodeBlend = ptr to a node blend object [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 8281 of file blndtool.cpp.

08282 {
08283     if (pNodeBlend->IsKindOf(CC_RUNTIME_CLASS(NodeBlend)))
08284     {
08285         NewAntiAlias      = !((NodeBlend *)pNodeBlend)->IsNotAntialiased();
08286         NewOneToOne       = ((NodeBlend *)pNodeBlend)->IsOneToOne();
08287         NewColBlendType   = ((NodeBlend *)pNodeBlend)->GetColourBlendType();
08288         NewTangential     = ((NodeBlend *)pNodeBlend)->IsTangential();
08289         NewBlendedOnCurve = ((NodeBlend *)pNodeBlend)->IsOnACurve();
08290         NewEndObject     = ((NodeBlend *)pNodeBlend)->GetLastEdited();
08291 
08292         // DY profile code 9/99
08293         CProfileBiasGain* pProfile = ((NodeBlend *)pNodeBlend)->GetObjectProfile();
08294         NewObjectProfile = *pProfile;
08295         pProfile = NULL;
08296         pProfile = ((NodeBlend *)pNodeBlend)->GetAttrProfile();
08297         NewAttrProfile = *pProfile;
08298         pProfile = NULL;
08299     }
08300 }

void ChangeBlendOpParam::SetOldValues NodeRenderableInk pNodeBlend  ) 
 

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

Author:
Mark_Neves (Xara Group Ltd) <camelotdev@xara.com>
Date:
20/3/95
Parameters:
pNodeBlend = ptr to a node blend object [INPUTS]
- [OUTPUTS]
Returns:
-

Errors: -

Definition at line 8243 of file blndtool.cpp.

08244 {
08245     // DMc changed to include contours
08246     
08247     if (pNodeBlend->IsKindOf(CC_RUNTIME_CLASS(NodeBlend)))
08248     {
08249         OldAntiAlias      = !((NodeBlend*)pNodeBlend)->IsNotAntialiased();
08250         OldOneToOne       = ((NodeBlend *)pNodeBlend)->IsOneToOne();
08251         OldColBlendType   = ((NodeBlend *)pNodeBlend)->GetColourBlendType();
08252         OldTangential     = ((NodeBlend *)pNodeBlend)->IsTangential();
08253         OldBlendedOnCurve = ((NodeBlend *)pNodeBlend)->IsOnACurve();
08254         OldEndObject     = ((NodeBlend *)pNodeBlend)->GetLastEdited();
08255 
08256         // get the object profile values
08257         CProfileBiasGain* pProfile = ((NodeBlend *)pNodeBlend)->GetObjectProfile();
08258         OldObjectProfile = *pProfile;
08259         pProfile = NULL;
08260     
08261         pProfile = ((NodeBlend *)pNodeBlend)->GetAttrProfile();
08262         OldAttrProfile = *pProfile;
08263         pProfile = NULL;
08264     }
08265 }

void ChangeBlendOpParam::SwapOldAndNew  ) 
 

Swaps the old and new values of this class.

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

Errors: -

Definition at line 8316 of file blndtool.cpp.

void ChangeBlendOpParam::SwapProfiles CProfileBiasGain pOldProfile,
CProfileBiasGain pNewProfile
 

Swaps the old and new profiles of this class by swapping the pointers.

Author:
Diccon_Yamanaka (Xara Group Ltd) <camelotdev@xara.com>
Date:
25/9/99
Parameters:
pointers to the old and new CProfileBiasgain objects [INPUTS]
the same pointers, swapped [OUTPUTS]
Returns:
-

Errors: -

Definition at line 8343 of file blndtool.cpp.

08345 {
08346     CProfileBiasGain TempProfile = *pOldProfile;
08347     *pOldProfile = *pNewProfile;
08348     *pNewProfile = TempProfile;
08349 }


Member Data Documentation

ChangeBlendType ChangeBlendOpParam::ChangeType
 

Definition at line 1007 of file blndtool.h.

BOOL ChangeBlendOpParam::NewAntiAlias
 

Definition at line 1009 of file blndtool.h.

CProfileBiasGain ChangeBlendOpParam::NewAttrProfile
 

Definition at line 1029 of file blndtool.h.

BOOL ChangeBlendOpParam::NewBlendedOnCurve
 

Definition at line 1023 of file blndtool.h.

ColourBlendType ChangeBlendOpParam::NewColBlendType
 

Definition at line 1015 of file blndtool.h.

EndObject ChangeBlendOpParam::NewEndObject
 

Definition at line 1032 of file blndtool.h.

CProfileBiasGain ChangeBlendOpParam::NewObjectProfile
 

Definition at line 1026 of file blndtool.h.

BOOL ChangeBlendOpParam::NewOneToOne
 

Definition at line 1012 of file blndtool.h.

BOOL ChangeBlendOpParam::NewTangential
 

Definition at line 1018 of file blndtool.h.

BOOL ChangeBlendOpParam::OldAntiAlias
 

Definition at line 1010 of file blndtool.h.

CProfileBiasGain ChangeBlendOpParam::OldAttrProfile
 

Definition at line 1028 of file blndtool.h.

BOOL ChangeBlendOpParam::OldBlendedOnCurve
 

Definition at line 1022 of file blndtool.h.

ColourBlendType ChangeBlendOpParam::OldColBlendType
 

Definition at line 1016 of file blndtool.h.

EndObject ChangeBlendOpParam::OldEndObject
 

Definition at line 1031 of file blndtool.h.

CProfileBiasGain ChangeBlendOpParam::OldObjectProfile
 

Definition at line 1025 of file blndtool.h.

BOOL ChangeBlendOpParam::OldOneToOne
 

Definition at line 1013 of file blndtool.h.

BOOL ChangeBlendOpParam::OldTangential
 

Definition at line 1019 of file blndtool.h.


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