24 #ifndef PXR_IMAGING_HD_SELECTION_H
25 #define PXR_IMAGING_HD_SELECTION_H
32 #include "pxr/base/vt/array.h"
36 #include <unordered_map>
69 SdfPath const &renderIndexPath);
74 VtIntArray
const &instanceIndex=VtIntArray());
79 VtIntArray
const &elementIndices);
84 VtIntArray
const &edgeIndices);
89 VtIntArray
const &pointIndices);
96 VtIntArray
const &pointIndices,
124 SdfPath const &renderIndexPath)
const;
152 SdfPath const &renderIndexPath,
153 VtIntArray
const &pointIndices,
154 int pointColorIndex);
156 void _GetSelectionPrimPathsForMode(
HighlightMode const &mode,
161 std::unordered_map<SdfPath, PrimSelectionState, SdfPath::Hash>;
171 #endif //PXR_IMAGING_HD_SELECTION_H
HD_API PrimSelectionState const * GetPrimSelectionState(HighlightMode const &mode, SdfPath const &renderIndexPath) const
-------------------------— Query API ------------------------------—
virtual HD_API ~HdSelection()
HD_API void AddElements(HighlightMode const &mode, SdfPath const &renderIndexPath, VtIntArray const &elementIndices)
HD_API void AddEdges(HighlightMode const &mode, SdfPath const &renderIndexPath, VtIntArray const &edgeIndices)
std::unordered_map< SdfPath, PrimSelectionState, SdfPath::Hash > _PrimSelectionStateMap
std::vector< GfVec4f > _selectedPointColors
HD_API SdfPathVector GetSelectedPrimPaths(HighlightMode const &mode) const
std::vector< VtIntArray > elementIndices
_PrimSelectionStateMap _selMap[HighlightModeCount]
HD_API std::vector< GfVec4f > const & GetSelectedPointColors() const
HighlightMode
Selection modes allow differentiation in selection highlight behavior.
std::vector< class SdfPath > SdfPathVector
A vector of SdfPaths.
static HD_API HdSelectionSharedPtr Merge(HdSelectionSharedPtr const &, HdSelectionSharedPtr const &)
HD_API SdfPathVector GetAllSelectedPrimPaths() const
std::vector< VtIntArray > pointIndices
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HD_API void AddRprim(HighlightMode const &mode, SdfPath const &renderIndexPath)
---------------------— Population API -----------------------------—
#define PXR_NAMESPACE_CLOSE_SCOPE
HD_API void AddPoints(HighlightMode const &mode, SdfPath const &renderIndexPath, VtIntArray const &pointIndices)
HD_API void AddInstance(HighlightMode const &mode, SdfPath const &renderIndexPath, VtIntArray const &instanceIndex=VtIntArray())
std::vector< int > pointColorIndices
std::shared_ptr< class HdSelection > HdSelectionSharedPtr
HD_API bool IsEmpty() const
std::vector< VtIntArray > edgeIndices
std::vector< VtIntArray > instanceIndices