HDK
|
#include <sceneIndexPlugin.h>
Classes | |
class | Factory |
class | FactoryBase |
Public Member Functions | |
virtual HdSceneIndexBaseRefPtr | AppendSceneIndex (HdSceneIndexBaseRefPtr const &inputScene)=0 |
Override by client. Similar to HdSceneIndexPlugin::AppendSceneIndex. More... | |
virtual USDIMAGING_API HdContainerDataSourceHandle | FlattenedDataSourceProviders () |
virtual USDIMAGING_API TfTokenVector | InstanceDataSourceNames () |
virtual USDIMAGING_API TfTokenVector | ProxyPathTranslationDataSourceNames () |
virtual USDIMAGING_API | ~UsdImagingSceneIndexPlugin () |
Static Public Member Functions | |
template<typename T > | |
static void | Define () |
static std::vector < UsdImagingSceneIndexPluginUniquePtr > | GetAllSceneIndexPlugins () |
Get an instance of each registered UsdImagingSceneIndexPlugin. More... | |
A base class for scene index plugins that can insert filtering scene indices into UsdImaging, see sceneIndices.cpp for details.
This is intended for UsdSkelImaging inserting scene indices implementing the UsdSkel behaviors.
Usage:
class MyPlugin : public UsdImagingSceneIndexPlugin { public: HdSceneIndexBaseRefPtr AppendSceneIndex(HdSceneIndexBaseRefPtr const &inputScene) override { ... } };
TF_REGISTRY_FUNCTION(UsdImagingSceneIndexPlugin) { // Also add to plugInfo.json. UsdImagingSceneIndexPlugin::Define<MyPlugin>(); }
Definition at line 51 of file sceneIndexPlugin.h.
|
virtual |
|
pure virtual |
Override by client. Similar to HdSceneIndexPlugin::AppendSceneIndex.
Implemented in UsdSkelImagingResolvingSceneIndexPlugin.
|
inlinestatic |
Call within TF_REGISTRY_FUNCTION(UsdImagingSceneIndexPlugin) to ensure that UsdImaging can instantiate the client's subclass of UsdImagingSceneIndexPlugin.
Definition at line 120 of file sceneIndexPlugin.h.
|
virtual |
Clients can register additional HdFlattenedDataSourceProvider's that UsdImagingCreateSceneIndices will pass to the flattening scene index.
Clients can use HdMakeDataSourceContainingFlattenedDataSourceProvider::Make to create the values of the container data source.
Reimplemented in UsdSkelImagingResolvingSceneIndexPlugin.
|
static |
Get an instance of each registered UsdImagingSceneIndexPlugin.
|
virtual |
Clients can register additional names used by the (native) instance aggregation scene index when grouping instances.
For example, two instances with different material bindings cannot be aggregated together and instantiated by the same instancer.
UsdImagingCreateSceneIndices knows about several such bindings already. Here, clients can add additional data sources that should be expected by the aggregation scene index. These data sources are identified by their name in the prim-level container data source.
Reimplemented in UsdSkelImagingResolvingSceneIndexPlugin.
|
virtual |
Clients can register additional names of prim-level data sources that should receive path-translation for any path-valued data sources that point at instance proxies to point to corresponding prototypes.
Reimplemented in UsdSkelImagingResolvingSceneIndexPlugin.