#include <iso_geom_poly_line.h>
Inherits iso::geom::Geometry.
Inheritance diagram for iso::geom::PolyLine:
Public Member Functions | |
PolyLine () | |
default constructor | |
PolyLine (unsigned int pDim) | |
create polyline | |
PolyLine (const QVector< math::Vector< real > > &pPoints) | |
copy constructor | |
PolyLine (unsigned int pDim, unsigned int pPointCount, const real *pPoints) | |
copy constructor | |
PolyLine (const PolyLine &pPolyLine) | |
copy constructor | |
~PolyLine () | |
destructor | |
bool | closed () const |
void | setClosed (bool pClosed) |
virtual void | calcMinMaxPos () |
calculate minimum and maximum positions | |
unsigned int | pointCount () const |
return number of points | |
const QVector< math::Vector< real > > & | points () const |
return points | |
QVector< math::Vector< real > > & | points () |
return points | |
const math::Vector< real > & | point (unsigned int pIndex) const |
return point | |
math::Vector< real > & | point (unsigned int pIndex) |
return point | |
void | append (const math::Vector< float > &pPoint) |
void | clear () |
remove all points from polyline | |
void | append (const PolyLine &pPolyLine) |
append polyline at end of polyline | |
void | replace (int pPointCount, const real *pPoints) |
replace polyline | |
void | replace (unsigned int pIndex, const math::Vector< float > &pPoint) |
replace point in polyline | |
void | replace (unsigned int pIndex, const PolyLine &pPolyLine) |
replace polyline with polyline | |
const PolyLine & | operator= (const PolyLine &pPolyLine) |
assigment operator | |
math::Vector< real > & | operator[] (unsigned int pIndex) |
[] operator | |
const math::Vector< real > & | operator[] (unsigned int pIndex) const |
[] operator | |
virtual void | closestPoint (const math::Vector< real > &pRefPoint, math::Vector< real > &pResPoint) |
return closest point | |
virtual bool | intersect (const Line &pLine, QVector< math::Vector< real > > &pResPoints) |
return intersection point(s) with line | |
virtual bool | intersect (const Ray &pRay, QVector< math::Vector< real > > &pResPoints) |
return intersection point(s) with ray | |
operator base::String () | |
base::String | info () const |
print vector information | |
Protected Attributes | |
bool | mClosed |
QVector< math::Vector< real > > | mPoints |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const PolyLine &pPolyLine) |
print vector information |
PolyLine::PolyLine | ( | ) |
default constructor
PolyLine::PolyLine | ( | unsigned int | pDim | ) |
create polyline
pDim | dimension |
PolyLine::PolyLine | ( | const QVector< math::Vector< real > > & | pPoints | ) |
copy constructor
pPoints | vector of points |
PolyLine::PolyLine | ( | unsigned int | pDim, | |
unsigned int | pPointCount, | |||
const real * | pPoints | |||
) |
copy constructor
pDim | dimension | |
pPointCount | number of points | |
pPoints | points |
PolyLine::PolyLine | ( | const PolyLine & | pPolyLine | ) |
copy constructor
pPolyLine | poly line |
PolyLine::~PolyLine | ( | ) |
destructor
bool PolyLine::closed | ( | ) | const |
void PolyLine::setClosed | ( | bool | pClosed | ) |
void PolyLine::calcMinMaxPos | ( | ) | [virtual] |
unsigned int PolyLine::pointCount | ( | ) | const |
return number of points
const QVector< math::Vector< real > > & PolyLine::points | ( | ) | const |
return points
QVector< math::Vector< real > > & PolyLine::points | ( | ) |
return points
const math::Vector< real > & PolyLine::point | ( | unsigned int | pIndex | ) | const |
return point
pIndex | index of point |
math::Vector< real > & PolyLine::point | ( | unsigned int | pIndex | ) |
return point
pIndex | index of point |
void PolyLine::append | ( | const math::Vector< float > & | pPoint | ) |
void PolyLine::clear | ( | ) |
remove all points from polyline
void PolyLine::append | ( | const PolyLine & | pPolyLine | ) |
append polyline at end of polyline
pPolyline | polyline |
void PolyLine::replace | ( | int | pPointCount, | |
const real * | pPoints | |||
) |
replace polyline
pPointCount | ||
pPoints | points |
void PolyLine::replace | ( | unsigned int | pIndex, | |
const math::Vector< float > & | pPoint | |||
) |
replace point in polyline
pIndex | index of point | |
pPoint | point |
void PolyLine::replace | ( | unsigned int | pIndex, | |
const PolyLine & | pPolyLine | |||
) |
replace polyline with polyline
pIndex | starting index | |
pPolyline | polyline |
assigment operator
pPolyLine | polyline |
math::Vector< real > & iso::geom::PolyLine::operator[] | ( | unsigned int | pIndex | ) | [inline] |
[] operator
pIndex | index of point |
const math::Vector< real > & iso::geom::PolyLine::operator[] | ( | unsigned int | pIndex | ) | const [inline] |
[] operator
pIndex | index of point |
void PolyLine::closestPoint | ( | const math::Vector< real > & | pRefPoint, | |
math::Vector< real > & | pResPoint | |||
) | [virtual] |
return closest point
pRefPoint | reference points | |
pResPoint | result point |
Implements iso::geom::Geometry.
bool PolyLine::intersect | ( | const Line & | pLine, | |
QVector< math::Vector< real > > & | pResPoints | |||
) | [virtual] |
return intersection point(s) with line
pLine | line | |
pResPoint | result point |
bool PolyLine::intersect | ( | const Ray & | pRay, | |
QVector< math::Vector< real > > & | pResPoints | |||
) | [virtual] |
return intersection point(s) with ray
pRay | ray | |
pResPoint | result point |
iso::geom::PolyLine::operator base::String | ( | ) | [inline] |
base::String PolyLine::info | ( | ) | const |
print vector information
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const PolyLine & | pPolyLine | |||
) | [friend] |
print vector information
pOstream | output stream | |
pPolyLine | polyline |
bool iso::geom::PolyLine::mClosed [protected] |
QVector< math::Vector<real> > iso::geom::PolyLine::mPoints [protected] |