AttrMakeFlatTransp Class Reference

Force object to be 50% transparent 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 AttrMakeFlatTransp:

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

Public Member Functions

 AttrMakeFlatTransp ()
virtual AttrFillGeometryMutateFill (AttrFillGeometry *FillToMutate)
 Forces a 50% flat transparency.
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

Force object to be 50% transparent 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 784 of file filltool.h.


Constructor & Destructor Documentation

AttrMakeFlatTransp::AttrMakeFlatTransp  )  [inline]
 

Definition at line 789 of file filltool.h.

00789 {}


Member Function Documentation

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

10122 {
10123     ERROR3IF(IsMutate == NULL, "NULL flag pointer passed to GetOtherAttrToApply");
10124 
10125     // A transparency change also needs to set the Stroke Transparency
10126     NodeAttribute* OtherAttr = new AttrStrokeTranspChange;
10127     if (OtherAttr == NULL)
10128         return NULL;
10129 
10130     UINT32 Transp = 128;
10131 
10132     ((AttrStrokeTranspChange *)OtherAttr)->SetStartTransp(&Transp);
10133 
10134     *IsMutate = TRUE;
10135 
10136     return OtherAttr;
10137 }

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

Forces a 50% flat transparency.

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

Reimplemented from AttrTranspChange.

Definition at line 10070 of file filltool.cpp.

10071 { 
10072     AttrFillGeometry* NewFill = new AttrFlatTranspFill;
10073     if (NewFill == NULL)
10074         return NULL;
10075 
10076     UINT32 Transp = *FillToMutate->GetStartTransp();
10077 
10078     if (FillToMutate->GetTranspType() == TT_Mix &&
10079         *FillToMutate->GetStartTransp() == 0)
10080     {
10081         Transp = 128;
10082     }
10083 
10084     NewFill->SetTranspType(FillToMutate->GetTranspType());
10085     NewFill->SetStartTransp(&Transp);
10086 
10087     // WEBSTER-Martin-02/12/96
10088 //#ifdef WEBSTER
10089     // Make sure a FlatTransparency can change its value bearing in mind the user can't
10090     // change the blob selection
10091 //  NewFill->SelectBlob(FILLCONTROL_STARTPOINT);
10092     //NewFill->SetBlobState(FILLCONTROL_STARTPOINT, TRUE);
10093     //AttrFillGeometry::SelectionCount = AttrFillGeometry::CountSelectionControlPoints();
10094 //#endif //WEBSTER
10095 
10096     if (GetApplication()->GetBlobManager()->GetCurrentInterest().Fill && 
10097         FillToMutate->IsVisible() &&
10098         FillToMutate->FindParent() &&
10099         FillToMutate->FindParent()->IsSelected())
10100     {
10101         FillToMutate->RenderFillBlobs();
10102     }
10103 
10104     // Return the Mutated Fill
10105     return NewFill;
10106 }


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