Hide menu
Loading...
Searching...
No Matches
cadex::Geom::Polyline2d Class Reference

Defines a connected sequence of line segments created as a single object. More...

#include <cadex/Geom/Polyline2d.hxx>

Inheritance diagram for cadex::Geom::Polyline2d:
cadex::Geom::Geometry cadex::BaseObject

Public Member Functions

 Polyline2d ()
 Constructor.
 
 Polyline2d (const std::vector< Geom::Point2d > &thePoints)
 
void AddPoint (const Geom::Point2d &thePoint)
 Adds a new point to the end of the list of polyline points.
 
void AddPoints (const std::vector< Geom::Point2d > &thePoints)
 Adds new points to the end of the list of polyline points.
 
const Geom::Point2dPoint (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

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::Geom::Geometry
 Geometry (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Polyline2d() [1/2]

cadex::Geom::Polyline2d::Polyline2d ( )
inline

Constructor.

Creates not initialized object, for which IsNull() returns true.

◆ Polyline2d() [2/2]

cadex::Geom::Polyline2d::Polyline2d ( const std::vector< Geom::Point2d > & thePoints)

Constructor. Creates a polyline from points thePoints.