Describes drawing elements composed connected 2D curves. More...
#include <cadex/Drawing/Geometry.hxx>
Public Member Functions | |
PiecewiseContour () | |
Constructor. | |
bool | IsClosed () const |
Returns true if the contour is closed. | |
bool | AddCurve (const Geom::Curve2d &theCurve) |
Adds a trimmed curve or a B-spline curve to the element. | |
size_t | NumberOfCurves () const |
Returns the number of curves currently composing the element. | |
const Geom::Curve2d & | Curve (size_t theIndex) const |
Returns the specified curve of the element. | |
![]() | |
void | SetUuid (const Uuid &theUuid) |
cadex::Uuid | Uuid () const |
void | Accept (ElementVisitor &theVisitor) const |
![]() | |
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 bool | CompareType (const BaseObject &theObject) |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
![]() | |
Geometry (const ImplType &theImpl) | |
![]() | |
Element (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Describes drawing elements composed connected 2D curves.
Restriction - can only contain Geom::Curve2d if it's trimmed (i.e., IsTrimmed() returns true) and Geom::BSplineCurve2d.
const Geom::Curve2d & cadex::Drawing::PiecewiseContour::Curve | ( | size_t | theIndex | ) | const |
Returns the specified curve of the element.
theIndex must be in the range [0; NumberOfCurves()-1]. Otherwise the behavior is undefined.