AttrValueChange Class Reference

Change Fill colour Attribute class. This Attribute never exists in the Tree. It is used for changing the colours of an existing Fill Geometry. More...

#include <fillattr.h>

Inheritance diagram for AttrValueChange:

AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject AttrBitmapChange AttrColFillRampChange AttrColourChange AttrFractalChange AttrNoiseScaleChange AttrRemoveStrokeTransp AttrStrokeColourChange AttrStrokeTranspChange AttrStrokeTranspTypeChange AttrTranspChange AttrTranspFillRampChange List of all members.

Public Member Functions

 AttrValueChange ()
 Constructor for an attribute value change.
virtual UINT32 GetAttrNameID (void)
 Returns a string resource ID describing the attribute.
virtual AttributeValueGetAttributeValue ()=0
virtual CCRuntimeClassGetAttributeType ()
 Determines the scope of the value change.
virtual void MutateColourFills (BOOL Change)
 Changes the effect of this value change on colour fills.
virtual void MutateTranspFills (BOOL Change)
 Changes the effect of this value change on Transparency fills.
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
virtual BOOL IsAValueChange () const
 Virtual function for determining if the node is a value change attribute.

Protected Attributes

BOOL Colour
BOOL Transp

Detailed Description

Change Fill colour Attribute class. This Attribute never exists in the Tree. It is used for changing the colours of an existing Fill Geometry.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
8/8/94
See also:
AttrFillGeometry

Definition at line 583 of file fillattr.h.


Constructor & Destructor Documentation

AttrValueChange::AttrValueChange  ) 
 

Constructor for an attribute value change.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94

Definition at line 3865 of file fillattr.cpp.

03866 {
03867     Colour = TRUE;
03868     Transp = !Colour;
03869 }


Member Function Documentation

CCRuntimeClass * AttrValueChange::GetAttributeType  )  [virtual]
 

Determines the scope of the value change.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94
Returns:
A CC_RUNTIME_CLASS depending on whether this should change colour or transparency attribute.

Reimplemented from NodeAttribute.

Reimplemented in AttrColourChange, AttrTranspChange, AttrColFillRampChange, AttrTranspFillRampChange, AttrStrokeColourChange, AttrStrokeTranspChange, AttrStrokeTranspTypeChange, and AttrRemoveStrokeTransp.

Definition at line 3883 of file fillattr.cpp.

03884 { 
03885     if (Colour)
03886         return CC_RUNTIME_CLASS(AttrFillGeometry); 
03887     else
03888         return CC_RUNTIME_CLASS(AttrTranspFillGeometry); 
03889 }

virtual AttributeValue* AttrValueChange::GetAttributeValue  )  [pure virtual]
 

Implements AttrFillGeometry.

Implemented in AttrColourChange, AttrBitmapChange, AttrFractalChange, AttrTranspChange, AttrNoiseScaleChange, AttrColFillRampChange, AttrTranspFillRampChange, AttrStrokeColourChange, AttrStrokeTranspChange, AttrStrokeTranspTypeChange, and AttrRemoveStrokeTransp.

UINT32 AttrValueChange::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/8/94
Returns:
Attribute description ID

Reimplemented from NodeAttribute.

Reimplemented in AttrColourChange, AttrColourDrop, AttrBitmapChange, AttrBitmapTessChange, AttrBitmapDpiChange, AttrFractalChange, AttrFractalGrainChange, AttrFractalTileableChange, AttrTranspChange, AttrTranspTypeChange, AttrNoiseScaleChange, AttrColFillRampChange, AttrTranspFillRampChange, AttrStrokeColourChange, AttrStrokeTranspChange, and AttrStrokeTranspTypeChange.

Definition at line 4357 of file fillattr.cpp.

04358 {
04359     return (_R(IDS_VALUE_CHANGE));
04360 }                                  

virtual BOOL AttrValueChange::IsAValueChange  )  const [inline, virtual]
 

Virtual function for determining if the node is a value change attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/2/95
Parameters:
- [INPUTS]
- [OUTPUTS]
Returns:
TRUE if the node is an AttrValueChange, will return TRUE

Errors:

Reimplemented from NodeAttribute.

Definition at line 600 of file fillattr.h.

00600 { return TRUE; }

void AttrValueChange::MutateColourFills BOOL  Change  )  [virtual]
 

Changes the effect of this value change on colour fills.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94

Definition at line 3901 of file fillattr.cpp.

03902 { 
03903     Colour = Change;
03904     Transp = !Colour;
03905 }

virtual AttrFillGeometry* AttrValueChange::MutateFill AttrFillGeometry FillToMutate  )  [inline, virtual]
 

Reimplemented in AttrColourChange, AttrColourDrop, AttrBitmapChange, AttrBitmapTessChange, AttrBitmapDpiChange, AttrFractalGrainChange, AttrFractalTileableChange, AttrTranspChange, AttrTranspTypeChange, AttrNoiseScaleChange, AttrColFillRampChange, AttrTranspFillRampChange, AttrStrokeColourChange, AttrStrokeTranspChange, AttrStrokeTranspTypeChange, AttrRemoveTransp, AttrRemoveStrokeTransp, and AttrMakeFlatTransp.

Definition at line 598 of file fillattr.h.

00598 { return NULL; }

void AttrValueChange::MutateTranspFills BOOL  Change  )  [virtual]
 

Changes the effect of this value change on Transparency fills.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94

Definition at line 3917 of file fillattr.cpp.

03918 { 
03919     Transp = Change;
03920     Colour = !Transp;
03921 }


Member Data Documentation

BOOL AttrValueChange::Colour [protected]
 

Definition at line 603 of file fillattr.h.

BOOL AttrValueChange::Transp [protected]
 

Definition at line 604 of file fillattr.h.


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