Defines a collection of configurations of scene graph element. More...
#include <cadex/ModelData_ConfigurationManager.hxx>
Public Types | |
typedef cadex::internal::ModelData_ConfigurationManagerImpl | ImplType |
![]() | |
typedef int | IdType |
Defines a type identifier. | |
Public Member Functions | |
ModelData_ConfigurationManager () | |
Constructor. | |
ModelData_ConfigurationManager (const ModelData_SceneGraphElement &theBaseConfiguration) | |
Constructor. | |
void | SetBaseConfiguration (const ModelData_SceneGraphElement &theBaseConfiguration) |
Adds a scene graph element configuration. | |
ModelData_SceneGraphElement | AddConfiguration (const Base_UTF16String &theName) |
Adds a scene graph element configuration. | |
ModelData_SceneGraphElement | Configuration (const Base_UTF16String &theName) const |
Returns the scene graph element configuration. | |
bool | IsEmpty () const |
Returns true if no configurations were added. | |
size_t | NumberOfConfigurations () const |
Returns the number of configurations. | |
![]() | |
ModelData_BaseObject () | |
Constructor. | |
IdType | TypeId () const |
Returns an object type id. | |
template<typename T > | |
bool | IsOfType () const |
Returns true if the object has a type T. | |
void | SetName (const Base_UTF16String &theName) |
Sets an object name. | |
Base_UTF16String | Name () const |
void | SetUuid (const Base_Uuid &theUuid) |
Base_Uuid | Uuid () const |
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::ModelData_BaseObjectImpl * | Impl () const |
Return a handle to backend (reserved for internal use). | |
Static Public Member Functions | |
static IdType | GetTypeId () |
static Base_UTF16String | ConfigurationName (const ModelData_SceneGraphElement &theConfiguration) |
Returns the name of scene graph element configuration. | |
Additional Inherited Members | |
![]() | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl) | |
Constructor (reserved for internal use). | |
ModelData_BaseObject (const internal::ModelData_BaseObjectImpl *theImpl, const Base_UTF16String &theName) | |
Constructor (reserved for internal use). | |
template<typename T > | |
T * | GetOrCreateImpl () |
Reserved for internal use. | |
Defines a collection of configurations of scene graph element.
Whenever there are multiple configurations of a component in the model, its ModelData_SceneGraphElement contains an object of this class. It stores an alternative ModelData_SceneGraphElement variant for each configuration and allows querying them.
cadex::ModelData_ConfigurationManager::ModelData_ConfigurationManager | ( | ) |
Constructor.
Creates uninitialized object, for which IsNull() returns true.
cadex::ModelData_ConfigurationManager::ModelData_ConfigurationManager | ( | const ModelData_SceneGraphElement & | theBaseConfiguration | ) |
Constructor.
Creates a configuration manager with base configuration of ModelData_SceneGraphElement.
|
static |
Returns the name of scene graph element configuration.
Returns an empty Base_UTF16String if no configuration name has been added.
bool cadex::ModelData_ConfigurationManager::IsEmpty | ( | ) | const |