AttrTranspTypeChange Class Reference

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

#include <fillattr2.h>

Inheritance diagram for AttrTranspTypeChange:

AttrTranspChange AttrValueChange AttrFillGeometry NodeAttribute NodeRenderable Node CCObject SimpleCCObject List of all members.

Public Member Functions

 AttrTranspTypeChange ()
virtual UINT32 GetAttrNameID (void)
 Returns a string resource ID describing the attribute.
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
 Changes the transparency type of a fill.
virtual NodeAttributeGetOtherAttrToApply (BOOL *IsMutate)
 Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply.

Detailed Description

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

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

Definition at line 401 of file fillattr2.h.


Constructor & Destructor Documentation

AttrTranspTypeChange::AttrTranspTypeChange  )  [inline]
 

Definition at line 406 of file fillattr2.h.

00406 : AttrTranspChange() { }


Member Function Documentation

UINT32 AttrTranspTypeChange::GetAttrNameID void   )  [virtual]
 

Returns a string resource ID describing the attribute.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
3/01/95
Returns:
Attribute description ID

Reimplemented from AttrTranspChange.

Definition at line 4501 of file fillattr.cpp.

04502 {
04503     return (_R(IDS_TRANSPTYPE_CHANGE));
04504 }

NodeAttribute * AttrTranspTypeChange::GetOtherAttrToApply BOOL *  IsMutate  )  [virtual]
 

Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute to apply.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
17/8/95
Returns:
The secondary attribute to apply, or NULL if none to apply

Reimplemented from AttrTranspChange.

Definition at line 4323 of file fillattr.cpp.

04324 {
04325 #if !defined(EXCLUDE_FROM_RALPH)
04326     ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply");
04327 
04328     // A transparency type change also needs to set the Stroke Transparency type
04329 
04330     NodeAttribute* OtherAttr = new AttrStrokeTranspTypeChange;
04331     if (OtherAttr == NULL)
04332         return NULL;
04333 
04334     UINT32 TranspType = GetTranspType();
04335 
04336     ((AttrStrokeTranspTypeChange *)OtherAttr)->SetTranspType(TranspType);
04337 
04338     *IsMutate = TRUE;
04339 
04340     return OtherAttr;
04341 #else
04342     return NULL;
04343 #endif
04344 }

AttrFillGeometry * AttrTranspTypeChange::MutateFill AttrFillGeometry FillToMutate  )  [virtual]
 

Changes the transparency type of a fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com>
Date:
13/12/94
Parameters:
The fill that is to be changed. [INPUTS]

Reimplemented from AttrTranspChange.

Definition at line 4265 of file fillattr.cpp.

04266 { 
04267 #if !defined(EXCLUDE_FROM_RALPH)
04268     // Make a copy of this Fill to change
04269     AttrFillGeometry* NewFill = (AttrFillGeometry*)FillToMutate->SimpleCopy();
04270     if (NewFill == NULL)
04271         return NULL;
04272 
04273     NewFill->SetTranspType(GetTranspType());
04274 
04275     return NewFill; 
04276 #else
04277     return NULL;
04278 #endif
04279 }


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