Hide menu
Loading...
Searching...
No Matches
cadex::ModelData::PolylineSet Class Reference

Defines a polygonal shape consisting of polylines. More...

#include <cadex/ModelData/PolylineSet.hxx>

Inherits cadex::ModelData::PolyShape.

Public Types

typedef Geom::Polyline PolylineType
 

Public Member Functions

 PolylineSet ()
 Constructor.
 
 PolylineSet (const Geom::Polyline &thePolyline)
 
void AddPolyline (const Geom::Polyline &thePolyline)
 Adds a polyline into a polyline set.
 
void AddPolylines (const PolylineSet &theSet)
 Adds polylines from theSet into a polyline set.
 
const Geom::PolylinePolyline (size_t theIndex) const
 Returns the polyline at position theIndex in polyline set.
 
size_t NumberOfPolylines () const
 Returns a number of polylines in polyline set.
 

Static Public Member Functions

static bool CompareType (const BaseObject &theObject)
 

Detailed Description

Defines a polygonal shape consisting of polylines.

Constructor & Destructor Documentation

◆ PolylineSet() [1/2]

cadex::ModelData::PolylineSet::PolylineSet ( )
inline

Constructor.

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

◆ PolylineSet() [2/2]

cadex::ModelData::PolylineSet::PolylineSet ( const Geom::Polyline & thePolyline)

Constructor. Creates a polyline set from polyline thePolyline.

Member Function Documentation

◆ Polyline()

const Geom::Polyline & cadex::ModelData::PolylineSet::Polyline ( size_t theIndex) const

Returns the polyline at position theIndex in polyline set.

theIndex must be in the range [0, NumberOfPolylines()-1]. Otherwise the result is undefined.