libfreehand::FHPath Class Reference

#include <FHPath.h>

Public Member Functions

 FHPath ()
 
 FHPath (const FHPath &path)
 
 ~FHPath ()
 
FHPathoperator= (const FHPath &path)
 
void appendMoveTo (double x, double y)
 
void appendLineTo (double x, double y)
 
void appendCubicBezierTo (double x1, double y1, double x2, double y2, double x, double y)
 
void appendQuadraticBezierTo (double x1, double y1, double x, double y)
 
void appendArcTo (double rx, double ry, double rotation, bool longAngle, bool sweep, double x, double y)
 
void appendClosePath ()
 
void appendPath (const FHPath &path)
 
void setXFormId (unsigned xFormId)
 
void setGraphicStyleId (unsigned graphicStyleId)
 
void setEvenOdd (bool evenOdd)
 
void writeOut (librevenge::RVNGPropertyListVector &vec) const
 
std::string getPathString () const
 
void transform (const FHTransform &trafo)
 
void getBoundingBox (double x0, double y0, double &xmin, double &ymin, double &xmax, double &ymax) const
 
double getX () const
 
double getY () const
 
void clear ()
 
bool empty () const
 
bool isClosed () const
 
unsigned getXFormId () const
 
unsigned getGraphicStyleId () const
 
bool getEvenOdd () const
 
void getBoundingBox (double &xmin, double &ymin, double &xmax, double &ymax) const
 

Private Attributes

std::vector< std::unique_ptr< FHPathElement > > m_elements
 
bool m_isClosed
 
unsigned m_xFormId
 
unsigned m_graphicStyleId
 
bool m_evenOdd
 

Constructor & Destructor Documentation

◆ FHPath() [1/2]

libfreehand::FHPath::FHPath ( )
inline

◆ FHPath() [2/2]

libfreehand::FHPath::FHPath ( const FHPath path)

◆ ~FHPath()

libfreehand::FHPath::~FHPath ( )

Member Function Documentation

◆ appendArcTo()

void libfreehand::FHPath::appendArcTo ( double  rx,
double  ry,
double  rotation,
bool  longAngle,
bool  sweep,
double  x,
double  y 
)

◆ appendClosePath()

◆ appendCubicBezierTo()

void libfreehand::FHPath::appendCubicBezierTo ( double  x1,
double  y1,
double  x2,
double  y2,
double  x,
double  y 
)

◆ appendLineTo()

void libfreehand::FHPath::appendLineTo ( double  x,
double  y 
)

◆ appendMoveTo()

◆ appendPath()

void libfreehand::FHPath::appendPath ( const FHPath path)

◆ appendQuadraticBezierTo()

void libfreehand::FHPath::appendQuadraticBezierTo ( double  x1,
double  y1,
double  x,
double  y 
)

◆ clear()

void libfreehand::FHPath::clear ( )

◆ empty()

◆ getBoundingBox() [1/2]

void libfreehand::FHPath::getBoundingBox ( double  x0,
double  y0,
double &  xmin,
double &  ymin,
double &  xmax,
double &  ymax 
) const

◆ getBoundingBox() [2/2]

void libfreehand::FHPath::getBoundingBox ( double &  xmin,
double &  ymin,
double &  xmax,
double &  ymax 
) const

◆ getEvenOdd()

bool libfreehand::FHPath::getEvenOdd ( ) const

◆ getGraphicStyleId()

◆ getPathString()

std::string libfreehand::FHPath::getPathString ( ) const

◆ getX()

double libfreehand::FHPath::getX ( ) const

◆ getXFormId()

◆ getY()

double libfreehand::FHPath::getY ( ) const

◆ isClosed()

bool libfreehand::FHPath::isClosed ( ) const

◆ operator=()

libfreehand::FHPath & libfreehand::FHPath::operator= ( const FHPath path)

◆ setEvenOdd()

◆ setGraphicStyleId()

◆ setXFormId()

void libfreehand::FHPath::setXFormId ( unsigned  xFormId)

◆ transform()

◆ writeOut()

void libfreehand::FHPath::writeOut ( librevenge::RVNGPropertyListVector &  vec) const

Member Data Documentation

◆ m_elements

std::vector<std::unique_ptr<FHPathElement> > libfreehand::FHPath::m_elements
private

Referenced by appendPath().

◆ m_evenOdd

bool libfreehand::FHPath::m_evenOdd
private

◆ m_graphicStyleId

unsigned libfreehand::FHPath::m_graphicStyleId
private

Referenced by operator=().

◆ m_isClosed

bool libfreehand::FHPath::m_isClosed
private

Referenced by operator=().

◆ m_xFormId

unsigned libfreehand::FHPath::m_xFormId
private

Referenced by operator=().


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

Generated for libfreehand by doxygen 1.8.14