Defines a connected sequence of line segments created as a single object. More...
#include <cadex/Geom/Polyline2d.hxx>
Public Types | |
| typedef Geom::Point2d | PointType |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Public Member Functions | |
| Polyline2d () | |
| Constructor. | |
| Polyline2d (const std::vector< PointType > &thePoints) | |
| void | AddPoint (const PointType &thePoint) |
| Adds a new point to the end of the list of polyline points. | |
| void | AddPoints (const std::vector< PointType > &thePoints) |
| Adds new points to the end of the list of polyline points. | |
| const PointType & | Point (size_t theIndex) const |
| Returns the point at position theIndex in polyline. | |
| size_t | NumberOfPoints () const |
| Returns a number of points in polyline. | |
Public Member Functions inherited from cadex::BaseObject | |
| 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 Public Member Functions inherited from cadex::Geom::Geometry | |
| static bool | CompareType (const BaseObject &theObject) |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::Geom::Geometry | |
| Geometry (const ImplType &theImpl) | |
Protected Member Functions inherited from cadex::BaseObject | |
| 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::Polyline2d::Polyline2d | ( | const std::vector< PointType > & | thePoints | ) |
Constructor. Creates a polyline from points thePoints.