libetonyek::IWORKPath Class Reference

#include <IWORKPath.h>

Classes

class  Element
 An element of path. More...
 

Public Member Functions

 IWORKPath ()
 
 IWORKPath (const std::string &path)
 
 IWORKPath (const IWORKPath &other)
 
 ~IWORKPath ()
 
IWORKPathoperator= (const IWORKPath &other)
 
void swap (IWORKPath &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 glm::dmat3 &tr)
 Transform all elements of the path. More...
 
librevenge::RVNGPropertyListVector toWPG () const
 Create WPG representation of this path. More...
 

Private Attributes

std::deque< Element * > m_elements
 
bool m_closed
 

Friends

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

Constructor & Destructor Documentation

libetonyek::IWORKPath::IWORKPath ( )
libetonyek::IWORKPath::IWORKPath ( const std::string &  path)
explicit
libetonyek::IWORKPath::IWORKPath ( const IWORKPath other)
libetonyek::IWORKPath::~IWORKPath ( )

Member Function Documentation

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

Referenced by IWORKPath().

void libetonyek::IWORKPath::appendLineTo ( double  x,
double  y 
)
void libetonyek::IWORKPath::appendMoveTo ( double  x,
double  y 
)
void libetonyek::IWORKPath::clear ( )

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

void libetonyek::IWORKPath::operator*= ( const glm::dmat3 &  tr)

Transform all elements of the path.

  • [in] tr the transformation
IWORKPath & libetonyek::IWORKPath::operator= ( const IWORKPath other)
void libetonyek::IWORKPath::swap ( IWORKPath other)

Referenced by operator=().

librevenge::RVNGPropertyListVector libetonyek::IWORKPath::toWPG ( ) const

Create WPG representation of this path.

Referenced by libetonyek::IWORKText::draw().

Friends And Related Function Documentation

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

Member Data Documentation

bool libetonyek::IWORKPath::m_closed
private

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

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

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

Generated for libetonyek by doxygen 1.8.5