17 #include <librevenge/librevenge.h> 29 virtual void writeOut(librevenge::RVNGPropertyListVector &vec)
const = 0;
30 virtual void writeOut(std::ostream &s)
const = 0;
33 virtual void getBoundingBox(
double x0,
double y0,
double &px,
double &py,
double &qx,
double &qy)
const = 0;
34 virtual double getX()
const = 0;
35 virtual double getY()
const = 0;
42 FHPath() : m_elements(), m_isClosed(false), m_xFormId(0), m_graphicStyleId(0), m_evenOdd(false) {}
48 void appendMoveTo(
double x,
double y);
49 void appendLineTo(
double x,
double y);
50 void appendCubicBezierTo(
double x1,
double y1,
double x2,
double y2,
double x,
double y);
51 void appendQuadraticBezierTo(
double x1,
double y1,
double x,
double y);
52 void appendArcTo(
double rx,
double ry,
double rotation,
bool longAngle,
bool sweep,
double x,
double y);
53 void appendClosePath();
54 void appendPath(
const FHPath &path);
55 void setXFormId(
unsigned xFormId);
56 void setGraphicStyleId(
unsigned graphicStyleId);
57 void setEvenOdd(
bool evenOdd);
59 void writeOut(librevenge::RVNGPropertyListVector &vec)
const;
60 std::string getPathString()
const;
62 void getBoundingBox(
double x0,
double y0,
double &xmin,
double &ymin,
double &xmax,
double &ymax)
const;
68 bool isClosed()
const;
69 unsigned getXFormId()
const;
70 unsigned getGraphicStyleId()
const;
71 bool getEvenOdd()
const;
72 void getBoundingBox(
double &xmin,
double &ymin,
double &xmax,
double &ymax)
const;
virtual FHPathElement * clone()=0
FHPath()
Definition: FHPath.h:42
virtual void writeOut(librevenge::RVNGPropertyListVector &vec) const =0
virtual double getX() const =0
std::vector< std::unique_ptr< FHPathElement > > m_elements
Definition: FHPath.h:75
bool m_isClosed
Definition: FHPath.h:76
Definition: FHCollector.h:22
unsigned m_xFormId
Definition: FHPath.h:77
virtual double getY() const =0
FHPathElement()
Definition: FHPath.h:27
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:79
unsigned m_graphicStyleId
Definition: FHPath.h:78
virtual ~FHPathElement()
Definition: FHPath.h:28