HDK
|
#include <primTypePruningSceneIndex.h>
Static Public Member Functions | |
static HDSI_API HdsiPrimTypePruningSceneIndexRefPtr | New (HdSceneIndexBaseRefPtr const &inputSceneIndex, HdContainerDataSourceHandle const &inputArgs) |
Static Public Member Functions inherited from TfRefBase | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
Additional Inherited Members | |
Public Types inherited from TfRefBase | |
typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Scene Index that prunes prims of given type (e.g., material) and (optionally) bindings to that prim type (e.g., materialBindings).
Pruned prims are not removed from the scene index; instead, they are given an empty primType and null dataSource. This is to preserve hierarchy and allow children of the pruned types to still exist.
An optional bool argument specifies whether to suppress pruning for prims at non-prim paths, and, correspondingly, leave bindings to prims at non-prim paths unchanged.
By default, when creating the scene index, it is disabled and does not pruning anything.
If an empty binding token is used, the scene index will not prune any binding.
Definition at line 62 of file primTypePruningSceneIndex.h.
|
protected |
|
overrideprotected |
|
overrideprotectedvirtual |
Implements HdSingleInputFilteringSceneIndexBase.
|
overrideprotectedvirtual |
Implements HdSingleInputFilteringSceneIndexBase.
|
overrideprotectedvirtual |
Implements HdSingleInputFilteringSceneIndexBase.
Definition at line 84 of file primTypePruningSceneIndex.h.
|
overridevirtual |
Returns the paths of all scene index prims located immediately below primPath
. This function can be used to traverse the scene by recursing from SdfPath::AbsoluteRootPath()
; such a traversal is expected to give the same set of prims as the flattening of the scene index's PrimsAdded
and PrimsRemoved
messages. This function is expected to be threadsafe.
Implements HdSceneIndexBase.
HDSI_API bool HdsiPrimTypePruningSceneIndex::GetEnabled | ( | ) | const |
Is scene index actually prunning?
|
overridevirtual |
Returns a pair of (prim type, datasource) for the object at primPath
. If no such object exists, the type will be the empty token and the datasource will be null. This function is expected to be threadsafe.
Implements HdSceneIndexBase.
|
static |