Defines a connected sequence of line segments created as a single object. More...
#include <cadex/Geom/Polyline.hxx>
Public Member Functions | |
Polyline () | |
Constructor. | |
Polyline (const std::vector< Geom::Point > &thePoints) | |
void | AddPoint (const Geom::Point &thePoint) |
Adds a new point to the end of the list of polyline points. | |
void | AddPoints (const std::vector< Geom::Point > &thePoints) |
Adds new points to the end of the list of polyline points. | |
const Geom::Point & | Point (size_t theIndex) const |
Returns the point at position theIndex in polyline. | |
size_t | NumberOfPoints () const |
Returns a number of points in polyline. | |
![]() | |
size_t | Id () const |
Return unique identifier of public object. | |
internal::BaseObjectImpl * | Impl () const |
bool | IsNull () const |
operator bool () const | |
template<typename T > | |
bool | IsOfType () const |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Static Public Member Functions | |
static bool | CompareType (const BaseObject &theObject) |
![]() | |
static bool | CompareType (const BaseObject &theObject) |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
Geometry (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Defines a connected sequence of line segments created as a single object.
A polyline is a line consisting of one or more line segments joined end to end. Polylines, unlike polygons, are not necessarily closed.
|
inline |
Constructor.
Creates not initialized object, for which IsNull() returns true.
cadex::Geom::Polyline::Polyline | ( | const std::vector< Geom::Point > & | thePoints | ) |
Constructor. Creates a polyline from points thePoints.