a class used to define a generic path ( a bezier curve, ... ) More...
#include <MWAWPictBasic.hxx>
Public Member Functions | |
MWAWPictPath (Box2f bdBox, std::string path) | |
constructor: bdbox followed by the path definition More... | |
virtual | ~MWAWPictPath () |
virtual destructor More... | |
virtual bool | getODGBinary (WPXBinaryData &res) const |
returns a ODG (encoded) More... | |
![]() | |
virtual | ~MWAWPictBasic () |
virtual destructor More... | |
virtual Type | getType () const |
returns the picture type More... | |
void | setLineWidth (float w) |
sets the line width (by default 1.0) More... | |
void | setLineColor (MWAWColor const &col) |
sets the line color. More... | |
void | setSurfaceColor (MWAWColor const &col, bool hasColor=true) |
sets the surface color. More... | |
bool | hasSurfaceColor () const |
virtual bool | getBinary (WPXBinaryData &data, std::string &s) const |
returns the final representation in encoded odg (if possible) More... | |
![]() | |
virtual | ~MWAWPict () |
virtual destructor More... | |
Box2f | getBdBox () const |
returns the bdbox of the picture More... | |
void | setBdBox (Box2f const &box) |
sets the bdbox of the picture More... | |
Protected Member Functions | |
virtual SubType | getSubType () const |
returns the class type More... | |
virtual void | getGraphicStyleProperty (WPXPropertyList &list) const |
returns the graphics style More... | |
virtual int | cmp (MWAWPict const &a) const |
comparison function More... | |
![]() | |
void | getStyle1DProperty (WPXPropertyList &list) const |
returns the basic style property for 1D form (line, ...) More... | |
void | getStyle2DProperty (WPXPropertyList &list) const |
returns the basic style property for 2D form (line, ...) More... | |
void | startODG (MWAWPropertyHandlerEncoder &doc) const |
adds the odg header knowing the minPt and the maxPt More... | |
void | endODG (MWAWPropertyHandlerEncoder &doc) const |
adds the odg footer More... | |
void | extendBDBox (float val, int id) |
a function to extend the bdbox More... | |
MWAWPictBasic () | |
protected constructor must not be called directly More... | |
MWAWPictBasic (MWAWPictBasic const &p) | |
protected constructor must not be called directly More... | |
MWAWPictBasic & | operator= (MWAWPictBasic const &p) |
protected= must not be called directly More... | |
![]() | |
void | extendBDBox (float val) |
udaptes the bdbox, by extended it by (val-previousVal) More... | |
MWAWPict () | |
protected constructor must not be called directly More... | |
MWAWPict (MWAWPict const &p) | |
protected constructor must not be called directly More... | |
MWAWPict & | operator= (MWAWPict const &p) |
protected operator= must not be called directly More... | |
Protected Attributes | |
std::string | m_path |
the string represented the path (in svg) More... | |
Additional Inherited Members | |
![]() | |
enum | SubType { Line, Rectangle, Polygon, Circle, Arc, Path } |
the picture subtype ( line, rectangle, polygon, circle, arc) More... | |
![]() | |
static Box2f | getBdBox (int numPt, Vec2f const *pt) |
computes the minimum and maximum of a list of point More... | |
a class used to define a generic path ( a bezier curve, ... )
|
inline |
constructor: bdbox followed by the path definition
|
inlinevirtual |
virtual destructor
|
inlineprotectedvirtual |
comparison function
Reimplemented from MWAWPictBasic.
|
protectedvirtual |
returns the graphics style
Implements MWAWPictBasic.
|
virtual |
returns a ODG (encoded)
Reimplemented from MWAWPictBasic.
|
inlineprotectedvirtual |
returns the class type
Implements MWAWPictBasic.
|
protected |
the string represented the path (in svg)
Referenced by cmp(), and getODGBinary().