libetonyek::IWORKPath Class Reference

#include <IWORKPath.h>

Classes

struct  Impl
 
struct  InvalidException
 

Public Member Functions

 IWORKPath ()
 
 IWORKPath (const std::string &path)
 
 IWORKPath (const IWORKPath &other)
 
IWORKPathoperator= (const IWORKPath &other)
 
void swap (IWORKPath &other)
 
void clear ()
 
bool empty () const
 
void appendMoveTo (double x, double y)
 
void appendLineTo (double x, double y)
 
void appendQCurveTo (double x1, double y1, double x, double y)
 
void appendCCurveTo (double x1, double y1, double x2, double y2, double x, double y)
 
void appendClose ()
 
void closePath (bool closeOnlyIsSamePoint=true)
 
void computeBoundingBox (double &minX, double &minY, double &maxX, double &maxY, double factor=1) const
 
bool isRectangle () const
 
void operator*= (const glm::dmat3 &tr)
 Transform all elements of the path. More...
 
const std::string str () const
 
void write (librevenge::RVNGPropertyListVector &vec, double deltaX=0, double deltaY=0) const
 Create librevenge representation of this path. More...
 

Private Attributes

std::shared_ptr< Implm_impl
 

Friends

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

Constructor & Destructor Documentation

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

Member Function Documentation

void IWORKPath::appendCCurveTo ( double  x1,
double  y1,
double  x2,
double  y2,
double  x,
double  y 
)
void IWORKPath::appendClose ( )
void IWORKPath::appendLineTo ( double  x,
double  y 
)
void IWORKPath::appendMoveTo ( double  x,
double  y 
)
void IWORKPath::appendQCurveTo ( double  x1,
double  y1,
double  x,
double  y 
)
void IWORKPath::clear ( )
void IWORKPath::closePath ( bool  closeOnlyIsSamePoint = true)
void IWORKPath::computeBoundingBox ( double &  minX,
double &  minY,
double &  maxX,
double &  maxY,
double  factor = 1 
) const
bool IWORKPath::empty ( ) const
bool IWORKPath::isRectangle ( ) const
void IWORKPath::operator*= ( const glm::dmat3 &  tr)

Transform all elements of the path.

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

Referenced by operator=().

void IWORKPath::write ( librevenge::RVNGPropertyListVector &  vec,
double  deltaX = 0,
double  deltaY = 0 
) const

Create librevenge representation of this path.

Referenced by libetonyek::IWORKCollector::drawShape().

Friends And Related Function Documentation

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

Member Data Documentation


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

Generated for libetonyek by doxygen 1.8.6