Defines a polygonal shape consisting of polylines. More...
#include <cadex/ModelData/PolylineSet.hxx>
Public Types | |
| typedef Geom::Polyline | PolylineType |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
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::Polyline & | Polyline (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. | |
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::ModelData::MeshShape | |
| static bool | CompareType (const BaseObject &theObject) |
| Check the type of object. Returns true if the specified object is this class type. | |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::ModelData::MeshShape | |
| MeshShape (const ImplType &theImpl) | |
Protected Member Functions inherited from cadex::BaseObject | |
| BaseObject (const ImplType &theImpl) | |
Defines a polygonal shape consisting of polylines.
|
inline |
Constructor.
Creates not initialized object, for which IsNull() returns true.
| cadex::ModelData::PolylineSet::PolylineSet | ( | const Geom::Polyline & | thePolyline | ) |
Constructor. Creates a polyline set from polyline thePolyline.
| 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.