A simple scene index adding HdSelectionsSchema to all prims selected with AddSelection.
More...
|
| USDIMAGING_API HdSceneIndexPrim | GetPrim (const SdfPath &primPath) const override |
| | Returns a pair of (prim type, datasource) for the object at primPath. More...
|
| |
| USDIMAGING_API SdfPathVector | GetChildPrimPaths (const SdfPath &primPath) const override |
| | Returns the paths of all scene index prims located immediately below primPath. More...
|
| |
| USDIMAGING_API void | AddSelection (const SdfPath &path) |
| | Add prim at path to the set of prims for which this scene index will add a data source at locator selectionsSchema to indicate the prim is selected. More...
|
| |
| USDIMAGING_API void | ClearSelection () |
| | Reset the scene index selection state. More...
|
| |
|
HD_API std::vector< HdSceneIndexBaseRefPtr > | GetInputScenes () const final |
| |
| HD_API void | AddObserver (const HdSceneIndexObserverPtr &observer) |
| | Adds an observer to this scene index. More...
|
| |
| HD_API void | RemoveObserver (const HdSceneIndexObserverPtr &observer) |
| | Removes an observer from this scene index; the given observer will no longer be forwarded notices. More...
|
| |
| HdDataSourceBaseHandle | GetDataSource (const SdfPath &primPath, const HdDataSourceLocator &locator) const |
| | A convenience function: look up the object at primPath, and if successful return the datasource at locator within that prim. More...
|
| |
| size_t | GetCurrentCount () const |
| | Return the current reference count of this object. More...
|
| |
| bool | IsUnique () const |
| | Return true if only one TfRefPtr points to this object. More...
|
| |
|
const TfRefCount & | GetRefCount () const |
| |
|
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
| |
|
| TfWeakBase (const TfWeakBase &) |
| |
|
const TfWeakBase & | __GetTfWeakBase__ () const |
| |
|
const TfWeakBase & | operator= (const TfWeakBase &) |
| |
|
void | EnableNotification2 () const |
| |
|
TF_API void const * | GetUniqueIdentifier () const |
| |
|
|
static USDIMAGING_API UsdImagingSelectionSceneIndexRefPtr | New (HdSceneIndexBaseRefPtr const &inputSceneIndex) |
| |
|
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
| |
|
|
SdfPathSet | _selectedPaths |
| |
|
|
typedef void(* | UniqueChangedFuncPtr) (TfRefBase const *, bool) |
| |
A simple scene index adding HdSelectionsSchema to all prims selected with AddSelection.
Definition at line 40 of file selectionSceneIndex.h.
◆ AddSelection()
| USDIMAGING_API void AddSelection |
( |
const SdfPath & |
path | ) |
|
Add prim at path to the set of prims for which this scene index will add a data source at locator selectionsSchema to indicate the prim is selected.
◆ ClearSelection()
| USDIMAGING_API void ClearSelection |
( |
| ) |
|
Reset the scene index selection state.
◆ GetChildPrimPaths()
| USDIMAGING_API SdfPathVector GetChildPrimPaths |
( |
const SdfPath & |
primPath | ) |
const |
|
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.
◆ GetPrim()
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.
The documentation for this class was generated from the following file: