Defines an outline consisting of 2D curves. More...
#include <cadex/PMI/Outline.hxx>
Public Member Functions | |
| Curve2dOutline () | |
| Constructor. | |
| void | Append (const Geom::Curve2d &theCurve) |
| Appends the curve. | |
| const std::vector< Geom::Curve2d > & | Curves () const |
| Returns the curves. | |
| bool | IsEmpty () const |
| Returns true if no curves have been added. | |
| size_t | NumberOfCurves () const |
| Returns the number of added curves. | |
| const Geom::Curve2d & | Curve (size_t theIndex) const |
| Returns the specified curve. | |
Public Member Functions inherited from cadex::PMI::Outline | |
| void | Accept (OutlineVisitor &theVisitor) const |
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) |
| Returns true if theOutline has the Curve2dOutline type. | |
Static Public Member Functions inherited from cadex::PMI::Outline | |
| static bool | CompareType (const BaseObject &theObject) |
| Returns true if theObject has the Outline type. | |
Protected Member Functions | |
| Curve2dOutline (const ImplType &theImpl) | |
Protected Member Functions inherited from cadex::PMI::Outline | |
| Outline (const ImplType &theImpl) | |
Protected Member Functions inherited from cadex::BaseObject | |
| BaseObject (const ImplType &theImpl) | |
Additional Inherited Members | |
Public Types inherited from cadex::BaseObject | |
| typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Defines an outline consisting of 2D curves.
| const Geom::Curve2d & cadex::PMI::Curve2dOutline::Curve | ( | size_t | theIndex | ) | const |
Returns the specified curve.
theIndex must be in the range [0, NumberOfCurves()-1]. Otherwise the result is undefined.
Must not be called on IsNull() object. Otherwise behavior is undefined.
| bool cadex::PMI::Curve2dOutline::IsEmpty | ( | ) | const |
Returns true if no curves have been added.
Returns true if IsNull().
| size_t cadex::PMI::Curve2dOutline::NumberOfCurves | ( | ) | const |
Returns the number of added curves.
Returns 0 if IsNull().