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

Defines a collection of configurations of scene graph element. More...

#include <cadex/ModelData_ConfigurationManager.hxx>

Inheritance diagram for cadex::ModelData_ConfigurationManager:
cadex::ModelData_BaseObject

Public Types

typedef cadex::internal::ModelData_ConfigurationManagerImpl ImplType
 
- Public Types inherited from cadex::ModelData_BaseObject
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.
 
- Public Member Functions inherited from cadex::ModelData_BaseObject
 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

- Protected Member Functions inherited from cadex::ModelData_BaseObject
 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.
 

Detailed Description

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.

Examples
exploring/configurations/Program.cs, and exploring/configurations/main.cxx.

Constructor & Destructor Documentation

◆ ModelData_ConfigurationManager() [1/2]

cadex::ModelData_ConfigurationManager::ModelData_ConfigurationManager ( )

Constructor.

Creates uninitialized object, for which IsNull() returns true.

◆ ModelData_ConfigurationManager() [2/2]

cadex::ModelData_ConfigurationManager::ModelData_ConfigurationManager ( const ModelData_SceneGraphElement theBaseConfiguration)

Constructor.

Creates a configuration manager with base configuration of ModelData_SceneGraphElement.

Member Function Documentation

◆ ConfigurationName()

Base_UTF16String cadex::ModelData_ConfigurationManager::ConfigurationName ( const ModelData_SceneGraphElement theConfiguration)
static

Returns the name of scene graph element configuration.

Returns an empty Base_UTF16String if no configuration name has been added.

Examples
exploring/configurations/Program.cs, and exploring/configurations/main.cxx.

◆ IsEmpty()

bool cadex::ModelData_ConfigurationManager::IsEmpty ( ) const

Returns true if no configurations were added.

Returns true if IsNull().

See also
AddConfiguration()