libcdr::CDRPath Class Reference

#include <CDRPath.h>

Inheritance diagram for libcdr::CDRPath:
libcdr::CDRPathElement

Public Member Functions

 CDRPath ()
 
 CDRPath (const CDRPath &path)
 
 ~CDRPath () override
 
CDRPathoperator= (const CDRPath &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 appendSplineTo (const std::vector< std::pair< double, double > > &points)
 
void appendArcTo (double rx, double ry, double rotation, bool longAngle, bool sweep, double x, double y)
 
void appendClosePath ()
 
void appendPath (const CDRPath &path)
 
void writeOut (librevenge::RVNGPropertyListVector &vec) const override
 
void writeOut (librevenge::RVNGString &path, librevenge::RVNGString &viewBox, double &width) const
 
void transform (const CDRTransforms &trafos) override
 
void transform (const CDRTransform &trafo) override
 
std::unique_ptr< CDRPathElementclone () override
 
void clear ()
 
bool empty () const
 
bool isClosed () const
 
- Public Member Functions inherited from libcdr::CDRPathElement
 CDRPathElement ()
 
virtual ~CDRPathElement ()
 

Private Attributes

std::vector< std::unique_ptr< CDRPathElement > > m_elements
 
bool m_isClosed
 

Constructor & Destructor Documentation

◆ CDRPath() [1/2]

libcdr::CDRPath::CDRPath ( )
inline

Referenced by appendPath(), CDRPath(), and operator=().

◆ CDRPath() [2/2]

libcdr::CDRPath::CDRPath ( const CDRPath & path)

◆ ~CDRPath()

libcdr::CDRPath::~CDRPath ( )
override

Member Function Documentation

◆ appendArcTo()

void libcdr::CDRPath::appendArcTo ( double rx,
double ry,
double rotation,
bool longAngle,
bool sweep,
double x,
double y )

◆ appendClosePath()

◆ appendCubicBezierTo()

void libcdr::CDRPath::appendCubicBezierTo ( double x1,
double y1,
double x2,
double y2,
double x,
double y )

◆ appendLineTo()

◆ appendMoveTo()

◆ appendPath()

void libcdr::CDRPath::appendPath ( const CDRPath & path)

◆ appendQuadraticBezierTo()

void libcdr::CDRPath::appendQuadraticBezierTo ( double x1,
double y1,
double x,
double y )

◆ appendSplineTo()

void libcdr::CDRPath::appendSplineTo ( const std::vector< std::pair< double, double > > & points)

◆ clear()

void libcdr::CDRPath::clear ( )

Referenced by operator=().

◆ clone()

std::unique_ptr< CDRPathElement > libcdr::CDRPath::clone ( )
overridevirtual

◆ empty()

bool libcdr::CDRPath::empty ( ) const

◆ isClosed()

bool libcdr::CDRPath::isClosed ( ) const

Referenced by CDRPath(), and operator=().

◆ operator=()

CDRPath & libcdr::CDRPath::operator= ( const CDRPath & path)

◆ transform() [1/2]

void libcdr::CDRPath::transform ( const CDRTransform & trafo)
overridevirtual

◆ transform() [2/2]

void libcdr::CDRPath::transform ( const CDRTransforms & trafos)
overridevirtual

◆ writeOut() [1/2]

void libcdr::CDRPath::writeOut ( librevenge::RVNGPropertyListVector & vec) const
overridevirtual

◆ writeOut() [2/2]

void libcdr::CDRPath::writeOut ( librevenge::RVNGString & path,
librevenge::RVNGString & viewBox,
double & width ) const

Member Data Documentation

◆ m_elements

◆ m_isClosed

bool libcdr::CDRPath::m_isClosed
private

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

Generated for libcdr by doxygen 1.13.2