#include <filltool.h>
Inheritance diagram for AttrMakeFlatTransp:
Public Member Functions | |
AttrMakeFlatTransp () | |
virtual AttrFillGeometry * | MutateFill (AttrFillGeometry *FillToMutate) |
Forces a 50% flat transparency. | |
virtual NodeAttribute * | GetOtherAttrToApply (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. |
Definition at line 784 of file filltool.h.
|
Definition at line 789 of file filltool.h.
|
|
Some attributes require a secondary atribute to be changed when they are changed. This routine obtains a pointer to the secondary attribute 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 }
|
|
Forces a 50% flat transparency.
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 }
|