Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_PMICompositeOutline Class Reference

Defines a collection of outlines. More...

#include <cadex/ModelData_PMIOutline.hxx>

Inheritance diagram for cadex::ModelData_PMICompositeOutline:
cadex::ModelData_PMIOutline cadex::Base_PublicObject

Public Types

typedef cadex::internal::ModelData_PMICompositeOutlineImpl ImplType
 

Public Member Functions

 ModelData_PMICompositeOutline ()
 Constructor.
 
 ModelData_PMICompositeOutline (ImplType *theImpl)
 
void Append (const ModelData_PMIOutline &theOutline)
 Appends an outline.
 
bool IsEmpty () const
 Returns true if no outlines have been added.
 
size_t NumberOfOutlines () const
 Returns number of added outlines.
 
const ModelData_PMIOutlineOutline (size_t theIndex) const
 Returns a specified outline.
 
- Public Member Functions inherited from cadex::ModelData_PMIOutline
 ModelData_PMIOutline ()
 Constructor.
 
void Accept (ModelData_PMIOutlineVisitor &theVisitor) const
 
template<typename T >
bool IsOfType () const
 Returns true if the object has a type T.
 
- Public Member Functions inherited from cadex::Base_PublicObject
void Nullify ()
 Resets reference to implementation object.
 
bool IsNull () const
 Returns true if the object is nullified.
 
 operator bool () const
 Casts the object to the bool type.
 
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_PMICompositeOutline 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 a collection of outlines.

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

Constructor & Destructor Documentation

◆ ModelData_PMICompositeOutline()

cadex::ModelData_PMICompositeOutline::ModelData_PMICompositeOutline ( )

Constructor.

Creates a null object (see IsNull()).

Member Function Documentation

◆ IsEmpty()

bool cadex::ModelData_PMICompositeOutline::IsEmpty ( ) const

Returns true if no outlines have been added.

Returns true if IsNull().

◆ NumberOfOutlines()

size_t cadex::ModelData_PMICompositeOutline::NumberOfOutlines ( ) const

Returns number of added outlines.

Returns 0 if IsNull().

◆ Outline()

const ModelData_PMIOutline & cadex::ModelData_PMICompositeOutline::Outline ( size_t  theIndex) const

Returns a specified outline.

theIndex must be in the range [0, NumberOfOutlines()-1]. Otherwise the result is undefined.

Must not be called on IsNull() object. Otherwise behavior is undefined.