14 #include <librevenge/librevenge.h> 26 virtual void writeOut(librevenge::RVNGPropertyListVector &vec)
const = 0;
29 virtual void getBoundingBox(
double x0,
double y0,
double &px,
double &py,
double &qx,
double &qy)
const = 0;
30 virtual double getX()
const = 0;
31 virtual double getY()
const = 0;
38 FHPath() : m_elements(), m_isClosed(false), m_xFormId(0), m_graphicStyleId(0), m_evenOdd(false) {}
44 void appendMoveTo(
double x,
double y);
45 void appendLineTo(
double x,
double y);
46 void appendCubicBezierTo(
double x1,
double y1,
double x2,
double y2,
double x,
double y);
47 void appendQuadraticBezierTo(
double x1,
double y1,
double x,
double y);
48 void appendArcTo(
double rx,
double ry,
double rotation,
bool longAngle,
bool sweep,
double x,
double y);
49 void appendClosePath();
50 void appendPath(
const FHPath &path);
51 void setXFormId(
unsigned xFormId);
52 void setGraphicStyleId(
unsigned graphicStyleId);
53 void setEvenOdd(
bool evenOdd);
55 void writeOut(librevenge::RVNGPropertyListVector &vec)
const;
58 void getBoundingBox(
double x0,
double y0,
double &xmin,
double &ymin,
double &xmax,
double &ymax)
const;
64 bool isClosed()
const;
65 unsigned getXFormId()
const;
66 unsigned getGraphicStyleId()
const;
67 bool getEvenOdd()
const;
68 void getBoundingBox(
double &xmin,
double &ymin,
double &xmax,
double &ymax)
const;
virtual FHPathElement * clone()=0
FHPath()
Definition: FHPath.h:38
std::vector< FHPathElement * > m_elements
Definition: FHPath.h:71
virtual void writeOut(librevenge::RVNGPropertyListVector &vec) const =0
virtual double getX() const =0
bool m_isClosed
Definition: FHPath.h:72
Definition: FHCollector.h:21
unsigned m_xFormId
Definition: FHPath.h:73
virtual double getY() const =0
FHPathElement()
Definition: FHPath.h:24
virtual void getBoundingBox(double x0, double y0, double &px, double &py, double &qx, double &qy) const =0
virtual void transform(const FHTransform &trafo)=0
bool m_evenOdd
Definition: FHPath.h:75
unsigned m_graphicStyleId
Definition: FHPath.h:74
virtual ~FHPathElement()
Definition: FHPath.h:25