Class xlifepp::SetOfPoints#

class SetOfPoints : public xlifepp::Geometry#

This class defines a set of points.

The points are implicitly ordered according to their position in the vector. This allows the definition of a polygonal line made of successive segments from arbitrary points in 1D, 2D or 3D.

Public Functions

inline SetOfPoints(const std::vector<Point> &pts, const std::vector<string_t> &names)#

default constructor

virtual string_t asString() const#

format as string

inline virtual Geometry *clone() const#

virtual copy constructor

virtual real_t measure() const#

return the length/area/volume of the geometry

virtual std::vector<Point*> nodes()#

list of every point (non const)

virtual std::vector<const Point*> nodes() const#

list of every point (const)

inline std::vector<Point> &pts()#

return list of points (non const)

inline const std::vector<Point> &pts() const#

returns list of points (const)

inline virtual SetOfPoints *setofpoints()#

access to child SetOfPoints object

inline virtual const SetOfPoints *setofpoints() const#

access to child SetOfPoints object (const)