10 #ifndef IWORKPATH_H_INCLUDED
11 #define IWORKPATH_H_INCLUDED
18 #include <glm/glm.hpp>
20 #include <librevenge/librevenge.h>
47 void appendCurveTo(
double x1,
double y1,
double x2,
double y2,
double x,
double y);
58 librevenge::RVNGPropertyListVector
toWPG()
const;
79 #endif // IWORKPATH_H_INCLUDED
IWORKPath & operator=(const IWORKPath &other)
Definition: IWORKPath.cpp:342
Definition: IWORKColorElement.cpp:19
IWORKPath operator*(const IWORKPath &path, const glm::dmat3 &tr)
Create a transformed path.
Definition: IWORKPath.cpp:423
double y
Definition: IWORKShape.cpp:43
bool m_closed
Definition: IWORKPath.h:62
void swap(IWORKPath &other)
Definition: IWORKPath.cpp:349
void appendClose()
Definition: IWORKPath.cpp:378
void operator*=(const glm::dmat3 &tr)
Transform all elements of the path.
Definition: IWORKPath.cpp:383
Definition: IWORKToken.h:171
void clear()
Definition: IWORKPath.cpp:355
double x
Definition: IWORKShape.cpp:42
void appendMoveTo(double x, double y)
Definition: IWORKPath.cpp:362
Definition: IWORKPath.h:27
An element of path.
Definition: IWORKPath.cpp:33
Definition: KEY2Token.h:56
bool operator==(const IWORKPath &left, const IWORKPath &right)
Definition: IWORKPath.cpp:413
void appendLineTo(double x, double y)
Definition: IWORKPath.cpp:368
Definition: IWORKToken.h:147
bool operator!=(const IWORKPath &left, const IWORKPath &right)
Definition: IWORKPath.cpp:418
~IWORKPath()
Definition: IWORKPath.cpp:337
IWORKPath()
Definition: IWORKPath.cpp:283
#define ETONYEK_EPSILON
Definition: libetonyek_utils.h:60
std::deque< Element * > m_elements
Definition: IWORKPath.h:61
librevenge::RVNGPropertyListVector toWPG() const
Create WPG representation of this path.
Definition: IWORKPath.cpp:388
friend bool approxEqual(const IWORKPath &left, const IWORKPath &right, const double eps)
Definition: IWORKPath.cpp:405
bool approxEqual(const IWORKPath &left, const IWORKPath &right, const double eps)
Definition: IWORKPath.cpp:405
void appendCurveTo(double x1, double y1, double x2, double y2, double x, double y)
Definition: IWORKPath.cpp:373