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>;
105 virtual ~HdxSelectionTracker();
120 bool enableSelection,
121 VtIntArray *offsets)
const;
124 virtual VtVec4fArray GetSelectedPointColors()
const;
137 _selection = selection;
157 std::vector<int>* offsets)
const;
161 HdSelectionSharedPtr _selection;
165 PXR_NAMESPACE_CLOSE_SCOPE
167 #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 HdSelectionSharedPtr const & GetSelectionMap() const
XXX: Rename to GetSelection.
HDX_API void SetSelection(HdSelectionSharedPtr const &selection)
The collection of selected objects is expected to be created externally and set via SetSelection...
virtual HDX_API bool GetSelectionOffsetBuffer(HdRenderIndex const *index, bool enableSelection, VtIntArray *offsets) const
Encodes the selection state (HdxSelection) as an integer array.
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 HdSelection during HdxSelectionTask::Prepare.
Selection highlighting in Hydra:
HDX_API int GetVersion() const
Returns a monotonically increasing version number, which increments whenever the result of GetBuffers...