ufe 5.5
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 runtimes. More...
#include <runTimeMgr.h>
Classes | |
struct | Handlers |
Static Public Member Functions | |
static RunTimeMgr & | instance () |
Private Member Functions | |
RunTimeMgr () | |
Cannot create a runtime manager aside from the singleton instance. More... | |
HandlerInterface::Ptr | resolveHandler (const Ufe::Rtid &rtId, const std::string &handlerId) |
Singleton class to manage UFE runtimes.
This singleton class is where UFE runtimes register handlers for different interfaces. Clients that wish to use interfaces ask the runtime manager to return the appropriate handler for that interface, for the appropriate runtime.
Definition at line 47 of file runTimeMgr.h.
|
delete |
Cannot copy the runtime manager singleton.
|
private |
Cannot create a runtime manager aside from the singleton instance.
AttributesHandler::Ptr Ufe::RunTimeMgr::attributesHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Attributes handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
BatchOpsHandler::Ptr Ufe::RunTimeMgr::batchOpsHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the BatchOps handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
CameraHandler::Ptr Ufe::RunTimeMgr::cameraHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Camera handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
ClipboardHandler::Ptr Ufe::RunTimeMgr::clipboardHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the clipboard handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
ConnectionHandler::Ptr Ufe::RunTimeMgr::connectionHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the ConnectionHandler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
ContextOpsHandler::Ptr Ufe::RunTimeMgr::contextOpsHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the ContextOps handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
Rtid Ufe::RunTimeMgr::getId | ( | const std::string & | rtName | ) | const |
InvalidRunTimeName | Thrown if argument runtime name does not exist. |
std::list< Rtid > Ufe::RunTimeMgr::getIds | ( | ) | const |
std::string Ufe::RunTimeMgr::getName | ( | const Rtid & | rtId | ) | const |
InvalidRunTimeId | Thrown if argument runtime ID does not exist. |
|
inline |
Provides a pointer to a handler of type T in the specified runtime.
rtId | the ID of the runtime the handler is register to. |
Definition at line 454 of file runTimeMgr.h.
bool Ufe::RunTimeMgr::hasId | ( | const Rtid & | rtId | ) | const |
HierarchyHandler::Ptr Ufe::RunTimeMgr::hierarchyHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the HierarchyHandler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
const HierarchyHandler & Ufe::RunTimeMgr::hierarchyHandlerRef | ( | const Rtid & | rtId | ) | const |
Retrieve the Hierarchy handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
InvalidRunTimeId | Thrown if argument runtime does not exist. |
|
static |
LightHandler::Ptr Ufe::RunTimeMgr::lightHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Light handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
MaterialHandler::Ptr Ufe::RunTimeMgr::materialHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Material handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
NodeDefHandler::Ptr Ufe::RunTimeMgr::nodeDefHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the node definition handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
Object3dHandler::Ptr Ufe::RunTimeMgr::object3dHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Object3d handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
|
delete |
Cannot assign the runtime manager singleton.
PathMappingHandler::Ptr Ufe::RunTimeMgr::pathMappingHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the path mapping handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
Register a runtime and its handlers to create interfaces. register is a reserved C++ keyword, using register_ instead.
rtName | the name of the runtime for the handlers. |
handlers | the handlers for each interface to be registered. |
InvalidRunTimeName | Thrown if argument runtime name already exists. |
void Ufe::RunTimeMgr::registerHandler | ( | const Ufe::Rtid & | rtId, |
const std::string & | handlerId, | ||
const HandlerInterface::Ptr & | handler | ||
) |
Registers a dynamic handler given a handler id.
rtId | the ID of the runtime for the handler to register to. |
handlerId | the ID of the handler to be registered for the runtime. |
handler | pointer to the handler object |
|
private |
SceneItemOpsHandler::Ptr Ufe::RunTimeMgr::sceneItemOpsHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the SceneItemOps handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
SceneSegmentHandler::Ptr Ufe::RunTimeMgr::sceneSegmentHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the scene segment handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
void Ufe::RunTimeMgr::setAttributesHandler | ( | const Rtid & | rtId, |
const AttributesHandler::Ptr & | attributesHandler | ||
) |
Set an AttributesHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
attributesHandler | the Attributes interface factory. |
void Ufe::RunTimeMgr::setBatchOpsHandler | ( | const Rtid & | rtId, |
const BatchOpsHandler::Ptr & | batchOpsHandler | ||
) |
Set a BatchOpsHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
batchOpsHandler | the BatchOps interface factory. |
void Ufe::RunTimeMgr::setCameraHandler | ( | const Rtid & | rtId, |
const CameraHandler::Ptr & | cameraHandler | ||
) |
Set a CameraHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
cameraHandler | the CameraHandler object. |
void Ufe::RunTimeMgr::setClipboardHandler | ( | const Rtid & | rtId, |
const ClipboardHandler::Ptr & | clipboardHandler | ||
) |
Set a ClipboardHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
clipboardHandler | the Clipboard interface factory. |
void Ufe::RunTimeMgr::setConnectionHandler | ( | const Rtid & | rtId, |
const ConnectionHandler::Ptr & | connectionHandler | ||
) |
Set a ConnectionHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
connectionHandler | the Connections interface factory. |
void Ufe::RunTimeMgr::setContextOpsHandler | ( | const Rtid & | rtId, |
const ContextOpsHandler::Ptr & | contextOpsHandler | ||
) |
Set a ContextOpsHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
contextOpsHandler | the ContextOps interface factory. |
void Ufe::RunTimeMgr::setHierarchyHandler | ( | const Rtid & | rtId, |
const HierarchyHandler::Ptr & | hierarchyHandler | ||
) |
Set a HierarchyHandler to a given runtime ID
rtId | the ID of the runtime for the handler. |
hierarchyHandler | the Hierarchy interface factory. |
void Ufe::RunTimeMgr::setLightHandler | ( | const Rtid & | rtId, |
const LightHandler::Ptr & | lightHandler | ||
) |
Set a LightHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
lightHandler | the LightHandler object. |
void Ufe::RunTimeMgr::setMaterialHandler | ( | const Rtid & | rtId, |
const MaterialHandler::Ptr & | materialHandler | ||
) |
Set a MaterialHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
materialHandler | the Material interface factory. |
void Ufe::RunTimeMgr::setNodeDefHandler | ( | const Rtid & | rtId, |
const NodeDefHandler::Ptr & | nodeDefHandler | ||
) |
Set a NodeDefHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
nodeDefHandler | the NodeDefHandler object. |
void Ufe::RunTimeMgr::setObject3dHandler | ( | const Rtid & | rtId, |
const Object3dHandler::Ptr & | object3dHandler | ||
) |
Set an Object3dHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
object3dHandler | the Object3d interface factory. |
void Ufe::RunTimeMgr::setPathMappingHandler | ( | const Rtid & | rtId, |
const PathMappingHandler::Ptr & | pathMappingHandler | ||
) |
Set a PathMappingHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
pathMappingHandler | the PathMappingHandler object. |
void Ufe::RunTimeMgr::setSceneItemOpsHandler | ( | const Rtid & | rtId, |
const SceneItemOpsHandler::Ptr & | sceneItemOpsHandler | ||
) |
Set a SceneItemOpsHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
sceneItemOpsHandler | the SceneItemOps interface factory. |
void Ufe::RunTimeMgr::setSceneSegmentHandler | ( | const Rtid & | rtId, |
const SceneSegmentHandler::Ptr & | sceneSegmentHandler | ||
) |
Set a SceneSegmentHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
sceneSegmentHandler | the SceneSegmentHandler object. |
void Ufe::RunTimeMgr::setTransform3dHandler | ( | const Rtid & | rtId, |
const Transform3dHandler::Ptr & | transform3dHandler | ||
) |
Set a Transform3dHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
transform3dHandler | the Transform3d interface factory. |
void Ufe::RunTimeMgr::setUIInfoHandler | ( | const Rtid & | rtId, |
const UIInfoHandler::Ptr & | uiInfoHandler | ||
) |
Set a UIInfoHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
uiInfoHandler | the UIInfoHandler object. |
void Ufe::RunTimeMgr::setUINodeGraphNodeHandler | ( | const Rtid & | rtId, |
const UINodeGraphNodeHandler::Ptr & | uiNodeGraphNodeHandler | ||
) |
Set a UINodeGraphNodeHandler to a given runtime ID.
rtId | the ID of the runtime for the handler. |
uiNodeGraphNodeHandler | the UINodeGraphNode interface factory. |
Transform3dHandler::Ptr Ufe::RunTimeMgr::transform3dHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the Transform3d handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
UIInfoHandler::Ptr Ufe::RunTimeMgr::uiInfoHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the UI Info handler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
UINodeGraphNodeHandler::Ptr Ufe::RunTimeMgr::uiNodeGraphNodeHandler | ( | const Rtid & | rtId | ) | const |
Retrieve the UINodeGraphNodeHandler of a given runtime ID.
rtId | the ID of the runtime for the handler. |
bool Ufe::RunTimeMgr::unregister | ( | const Rtid & | rtId | ) |
Unregister the given runtime ID.
rtId | the ID of the runtime for the handlers. |
void Ufe::RunTimeMgr::unregisterHandler | ( | const Ufe::Rtid & | rtId, |
const std::string & | handlerId | ||
) |
Unregisters a dynamic handler given a handler id and a runtime id.
rtId | the ID of the runtime this handler was registered to. |
handlerId | the ID of the handler to be unregistered. |