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

Defines a collection of outlines. More...

#include <cadex/PMI/Outline.hxx>

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

Public Member Functions

 CompositeOutline ()
 Constructor.
 
void Append (const Outline &theOutline)
 Appends the outline.
 
const std::vector< PMI::Outline > & Outlines () const
 Returns the outlines.
 
size_t NumberOfOutlines () const
 Returns the number of the added outlines.
 
bool IsEmpty () const
 Returns true if no outlines have been added.
 
const OutlineOutline (size_t theIndex) const
 Returns the specified outline.
 
- 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 theObject has the CompositeOutline 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

 CompositeOutline (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 a collection of outlines.

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

Member Function Documentation

◆ IsEmpty()

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

Returns true if no outlines have been added.

Returns true if IsNull().

◆ NumberOfOutlines()

size_t cadex::PMI::CompositeOutline::NumberOfOutlines ( ) const

Returns the number of the added outlines.

Returns 0 if IsNull().

◆ Outline()

const Outline & cadex::PMI::CompositeOutline::Outline ( size_t theIndex) const

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