#include <VSDGeometryList.h>
Public Member Functions | |
VSDGeometryList () | |
VSDGeometryList (const VSDGeometryList &geomList) | |
~VSDGeometryList () | |
VSDGeometryList & | operator= (const VSDGeometryList &geomList) |
void | addGeometry (unsigned id, unsigned level, const boost::optional< bool > &noFill, const boost::optional< bool > &noLine, const boost::optional< bool > &noShow) |
void | addEmpty (unsigned id, unsigned level) |
void | addMoveTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y) |
void | addLineTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y) |
void | addArcTo (unsigned id, unsigned level, const boost::optional< double > &x2, const boost::optional< double > &y2, const boost::optional< double > &bow) |
void | addNURBSTo (unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree, const std::vector< std::pair< double, double > > &controlPoints, const std::vector< double > &knotVector, const std::vector< double > &weights) |
void | addNURBSTo (unsigned id, unsigned level, double x2, double y2, double knot, double knotPrev, double weight, double weightPrev, unsigned dataID) |
void | addNURBSTo (unsigned id, unsigned level, const boost::optional< double > &x2, const boost::optional< double > &y2, const boost::optional< double > &knot, const boost::optional< double > &knotPrev, const boost::optional< double > &weight, const boost::optional< double > &weightPrev, const boost::optional< NURBSData > &data) |
void | addPolylineTo (unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, const std::vector< std::pair< double, double > > &points) |
void | addPolylineTo (unsigned id, unsigned level, double x, double y, unsigned dataID) |
void | addPolylineTo (unsigned id, unsigned level, boost::optional< double > &x, boost::optional< double > &y, boost::optional< PolylineData > &data) |
void | addEllipse (unsigned id, unsigned level, const boost::optional< double > &cx, const boost::optional< double > &cy, const boost::optional< double > &xleft, const boost::optional< double > &yleft, const boost::optional< double > &xtop, const boost::optional< double > &ytop) |
void | addEllipticalArcTo (unsigned id, unsigned level, const boost::optional< double > &x3, const boost::optional< double > &y3, const boost::optional< double > &x2, const boost::optional< double > &y2, const boost::optional< double > &angle, const boost::optional< double > &ecc) |
void | addSplineStart (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y, const boost::optional< double > &secondKnot, const boost::optional< double > &firstKnot, const boost::optional< double > &lastKnot, const boost::optional< unsigned > °ree) |
void | addSplineKnot (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y, const boost::optional< double > &knot) |
void | addInfiniteLine (unsigned id, unsigned level, const boost::optional< double > &x1, const boost::optional< double > &y1, const boost::optional< double > &x2, const boost::optional< double > &y2) |
void | addRelCubBezTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y, const boost::optional< double > &a, const boost::optional< double > &b, const boost::optional< double > &c, const boost::optional< double > &d) |
void | addRelEllipticalArcTo (unsigned id, unsigned level, const boost::optional< double > &x3, const boost::optional< double > &y3, const boost::optional< double > &x2, const boost::optional< double > &y2, const boost::optional< double > &angle, const boost::optional< double > &ecc) |
void | addRelMoveTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y) |
void | addRelLineTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y) |
void | addRelQuadBezTo (unsigned id, unsigned level, const boost::optional< double > &x, const boost::optional< double > &y, const boost::optional< double > &a, const boost::optional< double > &b) |
void | setElementsOrder (const std::vector< unsigned > &m_elementsOrder) |
void | handle (VSDCollector *collector) const |
void | clear () |
bool | empty () const |
VSDGeometryListElement * | getElement (unsigned index) const |
std::vector< unsigned > | getElementsOrder () const |
unsigned | count () const |
void | resetLevel (unsigned level) |
Private Attributes | |
std::map< unsigned, std::unique_ptr< VSDGeometryListElement > > | m_elements |
std::vector< unsigned > | m_elementsOrder |
libvisio::VSDGeometryList::VSDGeometryList | ( | ) |
Referenced by operator=(), and VSDGeometryList().
libvisio::VSDGeometryList::VSDGeometryList | ( | const VSDGeometryList & | geomList | ) |
libvisio::VSDGeometryList::~VSDGeometryList | ( | ) |
void libvisio::VSDGeometryList::addArcTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x2, | ||
const boost::optional< double > & | y2, | ||
const boost::optional< double > & | bow ) |
void libvisio::VSDGeometryList::addEllipse | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | cx, | ||
const boost::optional< double > & | cy, | ||
const boost::optional< double > & | xleft, | ||
const boost::optional< double > & | yleft, | ||
const boost::optional< double > & | xtop, | ||
const boost::optional< double > & | ytop ) |
void libvisio::VSDGeometryList::addEllipticalArcTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x3, | ||
const boost::optional< double > & | y3, | ||
const boost::optional< double > & | x2, | ||
const boost::optional< double > & | y2, | ||
const boost::optional< double > & | angle, | ||
const boost::optional< double > & | ecc ) |
void libvisio::VSDGeometryList::addEmpty | ( | unsigned | id, |
unsigned | level ) |
void libvisio::VSDGeometryList::addGeometry | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< bool > & | noFill, | ||
const boost::optional< bool > & | noLine, | ||
const boost::optional< bool > & | noShow ) |
void libvisio::VSDGeometryList::addInfiniteLine | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x1, | ||
const boost::optional< double > & | y1, | ||
const boost::optional< double > & | x2, | ||
const boost::optional< double > & | y2 ) |
void libvisio::VSDGeometryList::addLineTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y ) |
void libvisio::VSDGeometryList::addMoveTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y ) |
void libvisio::VSDGeometryList::addNURBSTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x2, | ||
const boost::optional< double > & | y2, | ||
const boost::optional< double > & | knot, | ||
const boost::optional< double > & | knotPrev, | ||
const boost::optional< double > & | weight, | ||
const boost::optional< double > & | weightPrev, | ||
const boost::optional< NURBSData > & | data ) |
void libvisio::VSDGeometryList::addNURBSTo | ( | unsigned | id, |
unsigned | level, | ||
double | x2, | ||
double | y2, | ||
double | knot, | ||
double | knotPrev, | ||
double | weight, | ||
double | weightPrev, | ||
unsigned | dataID ) |
void libvisio::VSDGeometryList::addNURBSTo | ( | unsigned | id, |
unsigned | level, | ||
double | x2, | ||
double | y2, | ||
unsigned char | xType, | ||
unsigned char | yType, | ||
unsigned | degree, | ||
const std::vector< std::pair< double, double > > & | controlPoints, | ||
const std::vector< double > & | knotVector, | ||
const std::vector< double > & | weights ) |
void libvisio::VSDGeometryList::addPolylineTo | ( | unsigned | id, |
unsigned | level, | ||
boost::optional< double > & | x, | ||
boost::optional< double > & | y, | ||
boost::optional< PolylineData > & | data ) |
void libvisio::VSDGeometryList::addPolylineTo | ( | unsigned | id, |
unsigned | level, | ||
double | x, | ||
double | y, | ||
unsigned char | xType, | ||
unsigned char | yType, | ||
const std::vector< std::pair< double, double > > & | points ) |
void libvisio::VSDGeometryList::addPolylineTo | ( | unsigned | id, |
unsigned | level, | ||
double | x, | ||
double | y, | ||
unsigned | dataID ) |
void libvisio::VSDGeometryList::addRelCubBezTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y, | ||
const boost::optional< double > & | a, | ||
const boost::optional< double > & | b, | ||
const boost::optional< double > & | c, | ||
const boost::optional< double > & | d ) |
void libvisio::VSDGeometryList::addRelEllipticalArcTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x3, | ||
const boost::optional< double > & | y3, | ||
const boost::optional< double > & | x2, | ||
const boost::optional< double > & | y2, | ||
const boost::optional< double > & | angle, | ||
const boost::optional< double > & | ecc ) |
void libvisio::VSDGeometryList::addRelLineTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y ) |
void libvisio::VSDGeometryList::addRelMoveTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y ) |
void libvisio::VSDGeometryList::addRelQuadBezTo | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y, | ||
const boost::optional< double > & | a, | ||
const boost::optional< double > & | b ) |
void libvisio::VSDGeometryList::addSplineKnot | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y, | ||
const boost::optional< double > & | knot ) |
void libvisio::VSDGeometryList::addSplineStart | ( | unsigned | id, |
unsigned | level, | ||
const boost::optional< double > & | x, | ||
const boost::optional< double > & | y, | ||
const boost::optional< double > & | secondKnot, | ||
const boost::optional< double > & | firstKnot, | ||
const boost::optional< double > & | lastKnot, | ||
const boost::optional< unsigned > & | degree ) |
void libvisio::VSDGeometryList::clear | ( | ) |
Referenced by operator=().
|
inline |
|
inline |
Referenced by handle().
libvisio::VSDGeometryListElement * libvisio::VSDGeometryList::getElement | ( | unsigned | index | ) | const |
|
inline |
void libvisio::VSDGeometryList::handle | ( | VSDCollector * | collector | ) | const |
libvisio::VSDGeometryList & libvisio::VSDGeometryList::operator= | ( | const VSDGeometryList & | geomList | ) |
void libvisio::VSDGeometryList::resetLevel | ( | unsigned | level | ) |
void libvisio::VSDGeometryList::setElementsOrder | ( | const std::vector< unsigned > & | m_elementsOrder | ) |
|
private |
Referenced by addArcTo(), addEllipse(), addEllipticalArcTo(), addEmpty(), addGeometry(), addInfiniteLine(), addLineTo(), addMoveTo(), addNURBSTo(), addNURBSTo(), addNURBSTo(), addPolylineTo(), addPolylineTo(), addPolylineTo(), addRelCubBezTo(), addRelEllipticalArcTo(), addRelLineTo(), addRelMoveTo(), addRelQuadBezTo(), addSplineKnot(), addSplineStart(), clear(), count(), empty(), getElement(), handle(), operator=(), resetLevel(), VSDGeometryList(), and VSDGeometryList().
|
private |
Referenced by clear(), getElement(), getElementsOrder(), handle(), operator=(), setElementsOrder(), VSDGeometryList(), and VSDGeometryList().