libetonyek::KEYPath Class Reference

#include <KEYPath.h>

Classes

class  Element
 An element of path. More...
 

Public Member Functions

 KEYPath ()
 
 KEYPath (const std::string &path)
 
 KEYPath (const KEYPath &other)
 
 ~KEYPath ()
 
KEYPathoperator= (const KEYPath &other)
 
void swap (KEYPath &other)
 
void clear ()
 
void appendMoveTo (double x, double y)
 
void appendLineTo (double x, double y)
 
void appendCurveTo (double x1, double y1, double x2, double y2, double x, double y)
 
void appendClose ()
 
void operator*= (const KEYTransformation &tr)
 Transform all elements of the path. More...
 
WPXPropertyListVector toWPG () const
 Create WPG representation of this path. More...
 

Private Attributes

std::deque< Element * > m_elements
 
bool m_closed
 

Friends

bool approxEqual (const KEYPath &left, const KEYPath &right, const double eps)
 

Constructor & Destructor Documentation

◆ KEYPath() [1/3]

libetonyek::KEYPath::KEYPath ( )

◆ KEYPath() [2/3]

libetonyek::KEYPath::KEYPath ( const std::string &  path)
explicit

◆ KEYPath() [3/3]

libetonyek::KEYPath::KEYPath ( const KEYPath other)

◆ ~KEYPath()

libetonyek::KEYPath::~KEYPath ( )

Member Function Documentation

◆ appendClose()

void libetonyek::KEYPath::appendClose ( )

Referenced by KEYPath().

◆ appendCurveTo()

void libetonyek::KEYPath::appendCurveTo ( double  x1,
double  y1,
double  x2,
double  y2,
double  x,
double  y 
)

Referenced by KEYPath().

◆ appendLineTo()

void libetonyek::KEYPath::appendLineTo ( double  x,
double  y 
)

Referenced by KEYPath().

◆ appendMoveTo()

void libetonyek::KEYPath::appendMoveTo ( double  x,
double  y 
)

Referenced by KEYPath().

◆ clear()

void libetonyek::KEYPath::clear ( )

Referenced by KEYPath(), and ~KEYPath().

◆ operator*=()

void libetonyek::KEYPath::operator*= ( const KEYTransformation tr)

Transform all elements of the path.

  • [in] tr the transformation

◆ operator=()

KEYPath & libetonyek::KEYPath::operator= ( const KEYPath other)

◆ swap()

void libetonyek::KEYPath::swap ( KEYPath other)

Referenced by operator=().

◆ toWPG()

WPXPropertyListVector libetonyek::KEYPath::toWPG ( ) const

Create WPG representation of this path.

Friends And Related Function Documentation

◆ approxEqual

bool approxEqual ( const KEYPath left,
const KEYPath right,
const double  eps 
)
friend

Referenced by libetonyek::operator==().

Member Data Documentation

◆ m_closed

bool libetonyek::KEYPath::m_closed
private

Referenced by appendClose(), appendMoveTo(), and toWPG().

◆ m_elements

std::deque<Element *> libetonyek::KEYPath::m_elements
private

The documentation for this class was generated from the following files:

Generated for libetonyek by doxygen 1.8.13