![]() |
ufe
1.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
|
Singleton class to manage UFE run-times. More...
#include <runTimeMgr.h>
Static Public Member Functions | |
static RunTimeMgr & | instance () |
Private Member Functions | |
RunTimeMgr () | |
Cannot create a run-time manager aside from the singleton instance. More... | |
Singleton class to manage UFE run-times.
This singleton class is where UFE run-times register handlers for different interfaces. Clients that wish to use interfaces ask the run-time manager to return the appropriate handler for that interface, for the appropriate run-time.
Definition at line 32 of file runTimeMgr.h.
|
delete |
Cannot copy the run-time manager singleton.
|
private |
Cannot create a run-time manager aside from the singleton instance.
Rtid Ufe::RunTimeMgr::getId | ( | const std::string & | rtName | ) | const |
InvalidRunTimeName | Thrown if argument run-time name does not exist. |
std::list<Rtid> Ufe::RunTimeMgr::getIds | ( | ) | const |
std::string Ufe::RunTimeMgr::getName | ( | const Rtid & | rtId | ) | const |
InvalidRunTimeId | Thrown if argument run-time ID does not exist. |
HierarchyHandler::Ptr Ufe::RunTimeMgr::hierarchyHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the HierarchyHandler of a given run-time ID.
rtId | the ID of the run-time for the handler. |
const HierarchyHandler& Ufe::RunTimeMgr::hierarchyHandlerRef | ( | const Rtid & | rtId | ) | const |
Retrieve the Hierarchy handler of a given run-time ID.
rtId | the ID of the run-time for the handler. |
InvalidRunTimeId | Thrown if argument run-time does not exist. |
|
static |
|
delete |
Cannot assign the run-time manager singleton.
Rtid Ufe::RunTimeMgr::register_ | ( | const std::string & | rtName, |
const HierarchyHandler::Ptr & | hierarchyHandler, | ||
const Transform3dHandler::Ptr & | transform3dHandler, | ||
const SceneItemOpsHandler::Ptr & | sceneItemOpsHandler | ||
) |
Register a run-time and its handlers to create interfaces. register is a reserved C++ keyword, using register_ instead.
rtName | the name of the run-time for the handlers. |
hierarchyHandler | the Hierarchy interface factory. |
transform3dHandler | the Transform3d interface factory. |
sceneItemOpsHandler | the SceneItemOps interface factory. |
InvalidRunTimeName | Thrown if argument run-time name already exists. |
SceneItemOpsHandler::Ptr Ufe::RunTimeMgr::sceneItemOpsHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the SceneItemOps handler of a given run-time ID.
rtId | the ID of the run-time for the handler. |
void Ufe::RunTimeMgr::setHierarchyHandler | ( | const Rtid & | rtId, |
const HierarchyHandler::Ptr & | hierarchyHandler | ||
) |
Set a HierarchyHandler to a given run-time ID
rtId | the ID of the run-time for the handler. |
hierarchyHandler | the Hierarchy interface factory. |
void Ufe::RunTimeMgr::setSceneItemOpsHandler | ( | const Rtid & | rtId, |
const SceneItemOpsHandler::Ptr & | sceneItemOpsHandler | ||
) |
Set a SceneItemOpsHandler to a given run-time ID.
rtId | the ID of the run-time for the handler. |
sceneItemOpsHandler | the SceneItemOps interface factory. |
void Ufe::RunTimeMgr::setTransform3dHandler | ( | const Rtid & | rtId, |
const Transform3dHandler::Ptr & | transform3dHandler | ||
) |
Set a Transform3dHandler to a given run-time ID.
rtId | the ID of the run-time for the handler. |
transform3dHandler | the Transform3d interface factory. |
Transform3dHandler::Ptr Ufe::RunTimeMgr::transform3dHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Transform3d handler of a given run-time ID.
rtId | the ID of the run-time for the handler. |
bool Ufe::RunTimeMgr::unregister | ( | const Rtid & | rtId | ) |
Unregister the given run-time ID.
rtId | the ID of the run-time for the handlers. |