AttrRemoveTransp Class Reference

Removes the transparency from objects. This Attribute never exists in the Tree. It is used for changing the Transp of an existing Fill Geometry. More...

#include <filltool.h>

Inheritance diagram for AttrRemoveTransp:

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

Public Member Functions

 AttrRemoveTransp ()
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
 Removes all transparency from 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

Removes the transparency from objects. This Attribute never exists in the Tree. It is used for changing the Transp of an existing Fill Geometry.

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

Definition at line 728 of file filltool.h.


Constructor & Destructor Documentation

AttrRemoveTransp::AttrRemoveTransp  )  [inline]
 

Definition at line 733 of file filltool.h.

00733 {}


Member Function Documentation

NodeAttribute * AttrRemoveTransp::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 10018 of file filltool.cpp.

10019 {
10020     ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply");
10021 
10022     // Remove Transparency also need to remove line transparency
10023     NodeAttribute* OtherAttr = new AttrRemoveStrokeTransp;
10024     if (OtherAttr == NULL)
10025         return NULL;
10026 
10027     *IsMutate = TRUE;
10028 
10029     return OtherAttr;
10030 }

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

Removes all transparency from a fill.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com> (modified by Chris Snook)
Date:
1/4/94
Parameters:
The fill that is to be changed. [INPUTS]

Reimplemented from AttrTranspChange.

Definition at line 9981 of file filltool.cpp.

09982 { 
09983     AttrFillGeometry* NewFill = new AttrFlatTranspFill;
09984     if (NewFill == NULL)
09985         return NULL;
09986 
09987     UINT32 TypeNone = TT_Mix;
09988     UINT32 NoTransp = 0;
09989 
09990     NewFill->SetTranspType(TypeNone);
09991     NewFill->SetStartTransp(&NoTransp);
09992 
09993     if (GetApplication()->GetBlobManager()->GetCurrentInterest().Fill && 
09994         FillToMutate->IsVisible() &&
09995         FillToMutate->FindParent() &&
09996         FillToMutate->FindParent()->IsSelected())
09997     {
09998         FillToMutate->RenderFillBlobs();
09999     }
10000 
10001     // Return the Mutated Fill
10002     return NewFill;
10003 }


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