#include <fillval.h>
Inheritance diagram for FourColTranspFillAttribute:
Public Member Functions | |
FourColTranspFillAttribute () | |
Default Constuctor for fill attribute values. | |
virtual INT32 | operator== (const FillGeometryAttribute &Attrib) |
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrFourColTranspFill node from this graduated fill attribute. | |
virtual UINT32 * | GetEndTransp3 () |
virtual void | SetEndTransp3 (UINT32 *NewTransp) |
Sets the third transparency of this fill. | |
virtual BOOL | IsAFourColFill () |
virtual ColourFillAttribute * | MakeSimilarNonTranspFillGeometry (double TransparencyScale) |
Creates a non-transparent version of this transparent fill attribute. (The original use of this was so airbrushes could maintain their fill's transparency geometry). | |
virtual INT32 | GetGeometryShape () |
Public Attributes | |
UINT32 | EndTransp3 |
Definition at line 1584 of file fillval.h.
|
Default Constuctor for fill attribute values.
Definition at line 7785 of file fillval.cpp. 07786 { 07787 EndTransp3 = 192; 07788 }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 1594 of file fillval.h. 01594 { return &EndTransp3; }
|
|
Reimplemented from ThreeColTranspFillAttribute. Definition at line 1601 of file fillval.h. 01601 { return(FILLSHAPE_4POINT); }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 1597 of file fillval.h. 01597 { return TRUE; }
|
|
Make a AttrFourColTranspFill node from this graduated fill attribute.
Reimplemented from ThreeColTranspFillAttribute. Definition at line 7828 of file fillval.cpp. 07829 { 07830 // Create new attribute node 07831 AttrFourColTranspFill *pAttr = new AttrFourColTranspFill; 07832 if (pAttr==NULL) 07833 // error message has already been set by new 07834 return NULL; 07835 07836 // Copy attribute value into the new node. 07837 pAttr->GetAttributeValue()->SimpleCopy(this); 07838 07839 // Return the new node 07840 return pAttr; 07841 }
|
|
Creates a non-transparent version of this transparent fill attribute. (The original use of this was so airbrushes could maintain their fill's transparency geometry).
Reimplemented from ThreeColTranspFillAttribute. Definition at line 7882 of file fillval.cpp. 07883 { 07884 UINT32 *pStartTransp = GetStartTransp(); 07885 UINT32 *pEndTransp = GetEndTransp(); 07886 UINT32 *pEndTransp2 = GetEndTransp2(); 07887 UINT32 *pEndTransp3 = GetEndTransp3(); 07888 07889 if(pStartTransp == NULL || pEndTransp == NULL || pEndTransp2 == NULL || pEndTransp3 == NULL) 07890 return NULL; 07891 07892 FourColFillAttribute *pNewAttr = new FourColFillAttribute; 07893 if (pNewAttr != NULL) 07894 { 07895 pNewAttr->SetStartPoint(GetStartPoint()); 07896 pNewAttr->SetEndPoint(GetEndPoint()); 07897 pNewAttr->SetEndPoint2(GetEndPoint2()); 07898 pNewAttr->SetEndPoint3(GetEndPoint3()); 07899 07900 if(IsPerspective()) 07901 pNewAttr->MakePerspective(); 07902 07903 INT32 StartTransparency = 255 - (INT32)(((double)(255 - *pStartTransp)) * TransparencyScale); 07904 INT32 EndTransparency = 255 - (INT32)(((double)(255 - *pEndTransp)) * TransparencyScale); 07905 INT32 EndTransparency2 = 255 - (INT32)(((double)(255 - *pEndTransp2)) * TransparencyScale); 07906 INT32 EndTransparency3 = 255 - (INT32)(((double)(255 - *pEndTransp3)) * TransparencyScale); 07907 07908 DocColour colorStart(StartTransparency, StartTransparency, StartTransparency); 07909 DocColour colorEnd1(EndTransparency, EndTransparency, EndTransparency); 07910 DocColour colorEnd2(EndTransparency2, EndTransparency2, EndTransparency2); 07911 DocColour colorEnd3(EndTransparency3, EndTransparency3, EndTransparency3); 07912 pNewAttr->SetStartColour(&colorStart); 07913 pNewAttr->SetEndColour(&colorEnd1); 07914 pNewAttr->SetEndColour2(&colorEnd2); 07915 pNewAttr->SetEndColour3(&colorEnd3); 07916 } 07917 07918 return(pNewAttr); 07919 }
|
|
A virtual comparison operator. See NodeAttribute::operator== for a description of why it's required.
Reimplemented from ThreeColTranspFillAttribute. Definition at line 7807 of file fillval.cpp. 07808 { 07809 FourColTranspFillAttribute* pAttrib = (FourColTranspFillAttribute*) &Attrib; 07810 07811 return(ThreeColTranspFillAttribute::operator==(Attrib) && (EndTransp3 == pAttrib->EndTransp3)); 07812 }
|
|
Sets the third transparency of this fill.
Reimplemented from FillGeometryAttribute. Definition at line 7854 of file fillval.cpp. 07855 { 07856 if (NewTransp == NULL) 07857 EndTransp3 = 192; 07858 else 07859 EndTransp3 = *NewTransp; 07860 }
|
|
|