libvisio::VSDXGeometryList Class Reference

#include <VSDXGeometryList.h>

Public Member Functions

 VSDXGeometryList ()
 
 VSDXGeometryList (const VSDXGeometryList &geomList)
 
 ~VSDXGeometryList ()
 
VSDXGeometryListoperator= (const VSDXGeometryList &geomList)
 
void addGeometry (unsigned id, unsigned level, unsigned char geomFlags)
 
void addMoveTo (unsigned id, unsigned level, double x, double y)
 
void addLineTo (unsigned id, unsigned level, double x, double y)
 
void addArcTo (unsigned id, unsigned level, double x2, double y2, double bow)
 
void addNURBSTo (unsigned id, unsigned level, double x2, double y2, unsigned char xType, unsigned char yType, unsigned degree, std::vector< std::pair< double, double > > controlPoints, std::vector< double > knotVector, 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 addPolylineTo (unsigned id, unsigned level, double x, double y, unsigned char xType, unsigned char yType, std::vector< std::pair< double, double > > points)
 
void addPolylineTo (unsigned id, unsigned level, double x, double y, unsigned dataID)
 
void addEllipse (unsigned id, unsigned level, double cx, double cy, double xleft, double yleft, double xtop, double ytop)
 
void addEllipticalArcTo (unsigned id, unsigned level, double x3, double y3, double x2, double y2, double angle, double ecc)
 
void addSplineStart (unsigned id, unsigned level, double x, double y, double secondKnot, double firstKnot, double lastKnot, unsigned degree)
 
void addSplineKnot (unsigned id, unsigned level, double x, double y, double knot)
 
void addInfiniteLine (unsigned id, unsigned level, double x1, double y1, double x2, double y2)
 
void setElementsOrder (const std::vector< unsigned > &m_elementsOrder)
 
void handle (VSDXCollector *collector) const
 
void clear ()
 
bool empty () const
 
VSDXGeometryListElementgetElement (unsigned index) const
 
std::vector< unsigned > getElementsOrder () const
 
unsigned count () const
 

Private Attributes

std::map< unsigned, VSDXGeometryListElement * > m_elements
 
std::vector< unsigned > m_elementsOrder
 

Constructor & Destructor Documentation

◆ VSDXGeometryList() [1/2]

libvisio::VSDXGeometryList::VSDXGeometryList ( )

◆ VSDXGeometryList() [2/2]

libvisio::VSDXGeometryList::VSDXGeometryList ( const VSDXGeometryList geomList)

◆ ~VSDXGeometryList()

libvisio::VSDXGeometryList::~VSDXGeometryList ( )

Member Function Documentation

◆ addArcTo()

void libvisio::VSDXGeometryList::addArcTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
double  bow 
)

◆ addEllipse()

void libvisio::VSDXGeometryList::addEllipse ( unsigned  id,
unsigned  level,
double  cx,
double  cy,
double  xleft,
double  yleft,
double  xtop,
double  ytop 
)

◆ addEllipticalArcTo()

void libvisio::VSDXGeometryList::addEllipticalArcTo ( unsigned  id,
unsigned  level,
double  x3,
double  y3,
double  x2,
double  y2,
double  angle,
double  ecc 
)

◆ addGeometry()

void libvisio::VSDXGeometryList::addGeometry ( unsigned  id,
unsigned  level,
unsigned char  geomFlags 
)

◆ addInfiniteLine()

void libvisio::VSDXGeometryList::addInfiniteLine ( unsigned  id,
unsigned  level,
double  x1,
double  y1,
double  x2,
double  y2 
)

◆ addLineTo()

void libvisio::VSDXGeometryList::addLineTo ( unsigned  id,
unsigned  level,
double  x,
double  y 
)

◆ addMoveTo()

void libvisio::VSDXGeometryList::addMoveTo ( unsigned  id,
unsigned  level,
double  x,
double  y 
)

◆ addNURBSTo() [1/2]

void libvisio::VSDXGeometryList::addNURBSTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
unsigned char  xType,
unsigned char  yType,
unsigned  degree,
std::vector< std::pair< double, double > >  controlPoints,
std::vector< double >  knotVector,
std::vector< double >  weights 
)

◆ addNURBSTo() [2/2]

void libvisio::VSDXGeometryList::addNURBSTo ( unsigned  id,
unsigned  level,
double  x2,
double  y2,
double  knot,
double  knotPrev,
double  weight,
double  weightPrev,
unsigned  dataID 
)

◆ addPolylineTo() [1/2]

void libvisio::VSDXGeometryList::addPolylineTo ( unsigned  id,
unsigned  level,
double  x,
double  y,
unsigned char  xType,
unsigned char  yType,
std::vector< std::pair< double, double > >  points 
)

◆ addPolylineTo() [2/2]

void libvisio::VSDXGeometryList::addPolylineTo ( unsigned  id,
unsigned  level,
double  x,
double  y,
unsigned  dataID 
)

◆ addSplineKnot()

void libvisio::VSDXGeometryList::addSplineKnot ( unsigned  id,
unsigned  level,
double  x,
double  y,
double  knot 
)

◆ addSplineStart()

void libvisio::VSDXGeometryList::addSplineStart ( unsigned  id,
unsigned  level,
double  x,
double  y,
double  secondKnot,
double  firstKnot,
double  lastKnot,
unsigned  degree 
)

◆ clear()

void libvisio::VSDXGeometryList::clear ( )

◆ count()

unsigned libvisio::VSDXGeometryList::count ( ) const
inline

◆ empty()

bool libvisio::VSDXGeometryList::empty ( ) const
inline

Referenced by handle().

◆ getElement()

libvisio::VSDXGeometryListElement * libvisio::VSDXGeometryList::getElement ( unsigned  index) const

Referenced by empty().

◆ getElementsOrder()

std::vector<unsigned> libvisio::VSDXGeometryList::getElementsOrder ( ) const
inline

◆ handle()

◆ operator=()

libvisio::VSDXGeometryList & libvisio::VSDXGeometryList::operator= ( const VSDXGeometryList geomList)

◆ setElementsOrder()

void libvisio::VSDXGeometryList::setElementsOrder ( const std::vector< unsigned > &  m_elementsOrder)

Member Data Documentation

◆ m_elements

◆ m_elementsOrder

std::vector<unsigned> libvisio::VSDXGeometryList::m_elementsOrder
private

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

Generated for libvisio by doxygen 1.8.13