![]() |
|
A registry containing named instances of Hydra indexes. More...
Public Member Functions | |
HD_API void | RegisterNamedSceneIndex (const std::string &name, HdSceneIndexBasePtr instance) |
Registers an instance of a scene index with a given name . More... | |
HD_API std::vector< std::string > | GetRegisteredNames () |
Returns the names of all registered scene indexes. More... | |
HD_API HdSceneIndexBaseRefPtr | GetNamedSceneIndex (const std::string &name) |
Returns the scene index that was registered with the given name . More... | |
Static Public Member Functions | |
static HD_API HdSceneIndexNameRegistry & | GetInstance () |
Returns the singleton-instance of this registry. More... | |
![]() | |
static HdSceneIndexNameRegistry & | GetInstance () |
Return a reference to an object of type T , creating it if necessary. More... | |
static bool | CurrentlyExists () |
Return whether or not the single object of type T is currently in existence. More... | |
static void | SetInstanceConstructed (HdSceneIndexNameRegistry &instance) |
Indicate that the sole instance object has already been created. More... | |
static void | DeleteInstance () |
Destroy the sole instance object of type T , if it exists. More... | |
Friends | |
class | TfSingleton< HdSceneIndexNameRegistry > |
A registry containing named instances of Hydra indexes.
Scene Indexes are not automatically registered here, and must be manually added (generally by the application).
Definition at line 173 of file sceneIndex.h.
|
inlinestatic |
Returns the singleton-instance of this registry.
Definition at line 185 of file sceneIndex.h.
HD_API HdSceneIndexBaseRefPtr GetNamedSceneIndex | ( | const std::string & | name | ) |
Returns the scene index that was registered with the given name
.
HD_API std::vector<std::string> GetRegisteredNames | ( | ) |
Returns the names of all registered scene indexes.
HD_API void RegisterNamedSceneIndex | ( | const std::string & | name, |
HdSceneIndexBasePtr | instance | ||
) |
Registers an instance
of a scene index with a given name
.