Hide menu
Loading...
Searching...
No Matches
cadex::Drawing::CurveSet Class Reference

Describes drawing elements composed of 2D curves. More...

#include <cadex/Drawing/Geometry.hxx>

Inheritance diagram for cadex::Drawing::CurveSet:
cadex::Drawing::Geometry cadex::Drawing::Element cadex::BaseObject

Public Member Functions

 CurveSet ()
 Constructor.
 
void AddCurve (const Geom::Curve2d &theCurve)
 Adds a curve to the element.
 
size_t NumberOfCurves () const
 Returns the number of curves currently composing the element.
 
const Geom::Curve2dCurve (size_t theIndex) const
 Returns the specified curve of the element.
 
- Public Member Functions inherited from cadex::Drawing::Element
void SetUuid (const Uuid &theUuid)
 
cadex::Uuid Uuid () const
 
void Accept (ElementVisitor &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)
 
- Static Public Member Functions inherited from cadex::Drawing::Element
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::Drawing::Geometry
 Geometry (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::Drawing::Element
 Element (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Describes drawing elements composed of 2D curves.

This geometric element encapsulates the portion of the view's geometry described with parametric 2D curves (more specifically, objects of classes derived from Geom::Curve2d).

Examples
nesting/nesting_computer/Program.cs, and nesting/nesting_computer/main.cxx.

Member Function Documentation

◆ Curve()

const Geom::Curve2d & cadex::Drawing::CurveSet::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.