Hide menu
Loading...
Searching...
No Matches

Defines an outline consist of 2d curves. More...

#include <cadex/PMI/Outline.hxx>

Inheritance diagram for cadex::PMI::Curve2dOutline:
cadex::PMI::Outline cadex::BaseObject

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 the added curves.
 
const Geom::Curve2dCurve (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
 

Detailed Description

Defines an outline consist of 2d curves.

See also
OutlinedComponent
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

Member Function Documentation

◆ Curve()

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.

◆ IsEmpty()

bool cadex::PMI::Curve2dOutline::IsEmpty ( ) const

Returns true if no curves have been added.

Returns true if IsNull().

◆ NumberOfCurves()

size_t cadex::PMI::Curve2dOutline::NumberOfCurves ( ) const

Returns the number of the added curves.

Returns 0 if IsNull().

Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.