#include <fillval.h>
Inheritance diagram for SquareFillAttribute:
Public Member Functions | |
SquareFillAttribute () | |
Default Constuctor for fill attribute values. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrSquareFill node from this graduated fill attribute. | |
virtual DocCoord * | GetEndPoint2 () |
virtual DocCoord * | GetEndPoint3 () |
virtual void | SetEndPoint2 (DocCoord *Pos) |
Sets the End Point of this fill. | |
virtual void | SetEndPoint3 (DocCoord *Pos) |
Sets the End Point of this fill. | |
virtual BOOL | IsPerspective () |
virtual void | MakePerspective () |
Make the fill perspectived. This should be called just before it is transformed by the moulder, so it can validate the 4th control point. | |
virtual void | RemovePerspective () |
Removes perspective from this fill. | |
virtual BOOL | IsASquareFill () |
virtual INT32 | GetGeometryShape () |
Public Attributes | |
DocCoord | EndPoint2 |
DocCoord | EndPoint3 |
BOOL | IsPersp |
Definition at line 635 of file fillval.h.
|
Default Constuctor for fill attribute values.
Definition at line 2070 of file fillval.cpp.
|
|
Reimplemented from FillGeometryAttribute. Definition at line 643 of file fillval.h. 00643 { return &EndPoint2; }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 644 of file fillval.h. 00644 { return &EndPoint3; }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 653 of file fillval.h. 00653 { return(FILLSHAPE_DIAMOND); }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 652 of file fillval.h. 00652 { return TRUE; }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 648 of file fillval.h. 00648 { return IsPersp; }
|
|
Make a AttrSquareFill node from this graduated fill attribute.
Reimplemented from AttributeValue. Definition at line 2090 of file fillval.cpp. 02091 { 02092 // Create new attribute node 02093 AttrSquareFill *pAttr = new AttrSquareColourFill; 02094 if (pAttr==NULL) 02095 // error message has already been set by new 02096 return NULL; 02097 02098 // Copy attribute value into the new node. 02099 pAttr->GetAttributeValue()->SimpleCopy(this); 02100 02101 // Return the new node 02102 return pAttr; 02103 }
|
|
Make the fill perspectived. This should be called just before it is transformed by the moulder, so it can validate the 4th control point.
Reimplemented from FillGeometryAttribute. Definition at line 2159 of file fillval.cpp. 02160 { 02161 IsPersp = TRUE; 02162 02163 INT32 dx1 = EndPoint.x - StartPoint.x; 02164 INT32 dx2 = EndPoint2.x - StartPoint.x; 02165 02166 INT32 dy1 = EndPoint.y - StartPoint.y; 02167 INT32 dy2 = EndPoint2.y - StartPoint.y; 02168 02169 DocCoord Pos3(StartPoint.x + dx1 + dx2, StartPoint.y + dy1 + dy2); 02170 SetEndPoint3(&Pos3); 02171 }
|
|
Removes perspective from this fill.
Reimplemented from FillGeometryAttribute. Definition at line 2184 of file fillval.cpp.
|
|
Sets the End Point of this fill.
Reimplemented from FillGeometryAttribute. Definition at line 2117 of file fillval.cpp. 02118 { 02119 if (Pos == NULL) 02120 EndPoint2 = MakeLineAtAngle(*GetStartPoint(), *GetEndPoint(), 90); 02121 else 02122 EndPoint2 = *Pos; 02123 }
|
|
Sets the End Point of this fill.
Reimplemented from FillGeometryAttribute. Definition at line 2137 of file fillval.cpp. 02138 { 02139 if (Pos == NULL) 02140 EndPoint3 = MakeLineAtAngle(*GetEndPoint(), *GetEndPoint2(), 90); 02141 else 02142 EndPoint3 = *Pos; 02143 }
|
|
|
|
|
|
|