#include <fillval.h>
Inheritance diagram for ConicalFillAttribute:
Public Member Functions | |
ConicalFillAttribute () | |
Default Constuctor for fill attribute values. | |
virtual NodeAttribute * | MakeNode () |
Make a AttrConicalFill node from this graduated fill attribute. | |
virtual DocCoord | GetGeometryCoord (float pos) const |
Find the absolute position in geometry coordinate space for the given parameter. | |
virtual float | GetGeometryParam (const DocCoord &c) const |
Find the parameter for the closest point to c on this geometry. | |
virtual BOOL | IsAConicalFill () |
virtual INT32 | GetGeometryShape () |
Definition at line 608 of file fillval.h.
|
Default Constuctor for fill attribute values.
Definition at line 1971 of file fillval.cpp.
|
|
Find the absolute position in geometry coordinate space for the given parameter.
Reimplemented from GradFillAttribute. Definition at line 2019 of file fillval.cpp. 02020 { 02021 // Here we calculate a circular coordinate space 02022 return PathUtil::PointOnSemiCircle(StartPoint,EndPoint,(double)pos); 02023 }
|
|
Find the parameter for the closest point to c on this geometry.
Reimplemented from GradFillAttribute. Definition at line 2040 of file fillval.cpp. 02041 { 02042 // ok we're a linear geometry so find the closest point to a line type of thing. 02043 // use a handy util written by that other fab bloke called Mike. 02044 DocCoord Coords[2]; 02045 Coords[0] = StartPoint; 02046 Coords[1] = EndPoint; 02047 double p; 02048 PathUtil::SqrDistanceToSemiCircle(Coords, c, &p); 02049 return (float)p; 02050 }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 619 of file fillval.h. 00619 { return(FILLSHAPE_CONICAL); }
|
|
Reimplemented from FillGeometryAttribute. Definition at line 618 of file fillval.h. 00618 { return TRUE; }
|
|
Make a AttrConicalFill node from this graduated fill attribute.
Reimplemented from AttributeValue. Definition at line 1988 of file fillval.cpp. 01989 { 01990 // Create new attribute node 01991 AttrConicalFill *pAttr = new AttrConicalColourFill; 01992 if (pAttr==NULL) 01993 // error message has already been set by new 01994 return NULL; 01995 01996 // Copy attribute value into the new node. 01997 pAttr->GetAttributeValue()->SimpleCopy(this); 01998 01999 // Return the new node 02000 return pAttr; 02001 }
|