Defines a collection of outlines. More...
#include <cadex/PMI/Outline.hxx>
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 Outline & | Outline (size_t theIndex) const |
Returns the specified outline. | |
![]() | |
void | Accept (OutlineVisitor &theVisitor) const |
![]() | |
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 bool | CompareType (const BaseObject &theObject) |
Returns true if theObject has the Outline type. | |
Protected Member Functions | |
CompositeOutline (const ImplType &theImpl) | |
![]() | |
Outline (const ImplType &theImpl) | |
![]() | |
BaseObject (const ImplType &theImpl) | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< internal::BaseObjectImpl > | ImplType |
Defines a collection of outlines.
bool cadex::PMI::CompositeOutline::IsEmpty | ( | ) | const |
Returns true if no outlines have been added.
Returns true if IsNull().
size_t cadex::PMI::CompositeOutline::NumberOfOutlines | ( | ) | const |
Returns the number of the added outlines.
Returns 0 if IsNull().
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.