24 #ifndef PXR_IMAGING_HDX_SELECTION_TRACKER_H 25 #define PXR_IMAGING_HDX_SELECTION_TRACKER_H 28 #include "pxr/imaging/hdx/api.h" 29 #include "pxr/imaging/hdx/version.h" 30 #include "pxr/imaging/hd/selection.h" 35 PXR_NAMESPACE_OPEN_SCOPE
40 using HdxSelectionTrackerSharedPtr =
41 std::shared_ptr<class HdxSelectionTracker>;
130 bool enableSelection,
131 VtIntArray *offsets)
const;
134 virtual VtVec4fArray GetSelectedPointColors(
const HdRenderIndex *index);
148 void SetSelection(HdSelectionSharedPtr
const &selection);
163 bool _GetSelectionOffsets(HdSelectionSharedPtr
const &selection,
167 std::vector<int>* offsets)
const;
172 class _MergedSelection;
173 std::unique_ptr<_MergedSelection> _mergedSelection;
177 PXR_NAMESPACE_CLOSE_SCOPE
179 #endif //PXR_IMAGING_HDX_SELECTION_TRACKER_H The Hydra render index is a flattened representation of the client scene graph, which may be composed...
HDX_API void SetSelection(HdSelectionSharedPtr const &selection)
Set the collection of selected objects.
HighlightMode
Selection modes allow differentiation in selection highlight behavior.
HDX_API void _IncrementVersion()
Increments the internal selection state version, used for invalidation via GetVersion().
virtual HDX_API void UpdateSelection(HdRenderIndex *index)
Optional override to update the selection (either compute HdSelection and call SetSelection or update...
HdxSelectionTracker takes HdSelection and generates a GPU buffer to be used.
HDX_API HdSelectionSharedPtr const & GetSelectionMap() const
Returns selection set with SetSelection.
HDX_API int GetVersion() const
Returns a monotonically increasing version number, which increments whenever the result of GetBuffers...
virtual HDX_API bool GetSelectionOffsetBuffer(const HdRenderIndex *index, bool enableSelection, VtIntArray *offsets) const
Encodes the selection state (HdxSelection) as an integer array.