10#ifndef KEYPATH_H_INCLUDED
11#define KEYPATH_H_INCLUDED
16#include <librevenge/librevenge.h>
25class KEYTransformation;
47 void appendCurveTo(
double x1,
double y1,
double x2,
double y2,
double x,
double y);
58 librevenge::RVNGPropertyListVector
toWPG()
const;
double y
Definition: KEYShape.cpp:100
double x
Definition: KEYShape.cpp:99
An element of path.
Definition: KEYPath.cpp:33
KEYPath()
Definition: KEYPath.cpp:263
friend bool approxEqual(const KEYPath &left, const KEYPath &right, const double eps)
Definition: KEYPath.cpp:385
std::deque< Element * > m_elements
Definition: KEYPath.h:61
void operator*=(const KEYTransformation &tr)
Transform all elements of the path.
Definition: KEYPath.cpp:363
void swap(KEYPath &other)
Definition: KEYPath.cpp:329
librevenge::RVNGPropertyListVector toWPG() const
Create WPG representation of this path.
Definition: KEYPath.cpp:368
~KEYPath()
Definition: KEYPath.cpp:317
bool m_closed
Definition: KEYPath.h:62
KEYPath & operator=(const KEYPath &other)
Definition: KEYPath.cpp:322
void appendLineTo(double x, double y)
Definition: KEYPath.cpp:348
void appendCurveTo(double x1, double y1, double x2, double y2, double x, double y)
Definition: KEYPath.cpp:353
void clear()
Definition: KEYPath.cpp:335
void appendMoveTo(double x, double y)
Definition: KEYPath.cpp:342
void appendClose()
Definition: KEYPath.cpp:358
#define KEY_EPSILON
Definition: libetonyek_utils.h:57
@ string
Definition: KEY1Token.h:75
@ path
Definition: KEY2Token.h:357
@ right
Definition: KEY2Token.h:1068
@ left
Definition: KEY2Token.h:1014
Definition: EtonyekDocument.cpp:41
bool operator==(const KEYPath &left, const KEYPath &right)
Definition: KEYPath.cpp:393
KEYPath operator*(const KEYPath &path, const KEYTransformation &tr)
Create a transformed path.
Definition: KEYPath.cpp:403
bool approxEqual(const KEYPath &left, const KEYPath &right, const double eps)
Definition: KEYPath.cpp:385
bool operator!=(const KEYPath &left, const KEYPath &right)
Definition: KEYPath.cpp:398