CAD Exchanger SDK
cadex::ModelData_PMICurveOutline Class Reference

Defines an outline consist of curves. More...

Inheritance diagram for cadex::ModelData_PMICurveOutline:
cadex::ModelData_PMIOutline cadex::Base_PublicObject

Public Types

typedef cadex::internal::ModelData_PMICurveOutlineImpl ImplType
 

Public Member Functions

 ModelData_PMICurveOutline ()
 Constructor. More...
 
 ModelData_PMICurveOutline (ImplType *theImpl)
 
void Append (const ModelData_Curve &theCurve)
 Appends a curve.
 
bool IsEmpty () const
 Returns true if no curves have been added. More...
 
size_t NumberOfCurves () const
 Returns number of added curves. More...
 
const ModelData_CurveCurve (size_t theIndex) const
 Returns a specified curve. More...
 
- Public Member Functions inherited from cadex::ModelData_PMIOutline
 ModelData_PMIOutline ()
 Constructor. More...
 
void Accept (ModelData_PMIOutlineVisitor &theVisitor) const
 
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T. More...
 
- Public Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject ()
 Constructor. More...
 
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified. More...
 
 operator bool () const
 Casts the object to the bool type. More...
 
internal::Base_HandledObject * Impl () const
 Return a handle to backend (reserved for internal use).
 

Static Public Member Functions

static bool CompareType (const ModelData_PMIOutline &theOutline)
 Returns true if theOutline has ModelData_PMICurveOutline type.
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::ModelData_PMIOutline
 ModelData_PMIOutline (internal::ModelData_PMIOutlineImpl *theImpl)
 Constructor.
 
- Protected Member Functions inherited from cadex::Base_PublicObject
 Base_PublicObject (const internal::Base_HandledObject *theObject)
 Constructor (reserved for internal use).
 
template<typename T >
T * GetOrCreateImpl ()
 Reserved for internal use.
 

Detailed Description

Defines an outline consist of curves.

See also
ModelData_PMIOutlinedComponent

Constructor & Destructor Documentation

◆ ModelData_PMICurveOutline()

cadex::ModelData_PMICurveOutline::ModelData_PMICurveOutline ( )

Constructor.

Creates a null object (see IsNull()).

Member Function Documentation

◆ Curve()

const ModelData_Curve & cadex::ModelData_PMICurveOutline::Curve ( size_t  theIndex) const

Returns a 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.

◆ IsEmpty()

bool cadex::ModelData_PMICurveOutline::IsEmpty ( ) const

Returns true if no curves have been added.

Returns true if IsNull().

◆ NumberOfCurves()

size_t cadex::ModelData_PMICurveOutline::NumberOfCurves ( ) const

Returns number of added curves.

Returns 0 if IsNull().