Hide menu
Loading...
Searching...
No Matches
cadex::PMI::Data Class Reference

Defines a container storing PMI data. More...

#include <cadex/PMI/Data.hxx>

Inheritance diagram for cadex::PMI::Data:
cadex::BaseObject

Public Member Functions

 Data (Initialized)
 Constructor.
 
 Data (const UTF16String &theName)
 
 Data (const Element &theElement)
 Constructor.
 
 Data (const std::vector< Element > &theElements)
 Constructor.
 
void Add (const Element &theElement)
 
const std::vector< Element > & Elements () const
 Returns the elements.
 
size_t NumberOfElements () const
 
void Add (const Data &theData)
 
void AddView (const SavedView &theView)
 
const std::vector< SavedView > & SavedViews () const
 Returns the saved views.
 
size_t NumberOfSavedViews () const
 
void SetName (const UTF16String &theName)
 Sets the name.
 
UTF16String Name () const
 Returns the name.
 
bool IsEmpty () const
 
void Clear ()
 
- 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 Data type.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Defines a container storing PMI data.

The container stores PMI specific information.

The container can be attached to any model element (ModelData::Assembly, ModelData::Instance, ModelData::Part).

See also
Element, SavedView
Examples
exploring/pmi/main.cxx.

Constructor & Destructor Documentation

◆ Data() [1/3]

cadex::PMI::Data::Data ( Initialized )
explicit

Constructor.

◆ Data() [2/3]

cadex::PMI::Data::Data ( const Element & theElement)
explicit

Constructor.

◆ Data() [3/3]

cadex::PMI::Data::Data ( const std::vector< Element > & theElements)
explicit

Constructor.

Member Function Documentation

◆ CompareType()

bool cadex::PMI::Data::CompareType ( const BaseObject & theObject)
static

Returns true if theObject has the Data type.

◆ Elements()

const std::vector< PMI::Element > & cadex::PMI::Data::Elements ( ) const

Returns the elements.

◆ Name()

UTF16String cadex::PMI::Data::Name ( ) const

Returns the name.

◆ SavedViews()

const std::vector< PMI::SavedView > & cadex::PMI::Data::SavedViews ( ) const

Returns the saved views.

◆ SetName()

void cadex::PMI::Data::SetName ( const UTF16String & theName)

Sets the name.