7 #ifndef PXR_IMAGING_HD_SELECTION_H
8 #define PXR_IMAGING_HD_SELECTION_H
15 #include "pxr/base/vt/array.h"
19 #include <unordered_map>
52 SdfPath const &renderIndexPath);
57 VtIntArray
const &instanceIndex=VtIntArray());
62 VtIntArray
const &elementIndices);
67 VtIntArray
const &edgeIndices);
72 VtIntArray
const &pointIndices);
80 VtIntArray
const &pointIndices,
108 SdfPath const &renderIndexPath)
const;
136 SdfPath const &renderIndexPath,
137 VtIntArray
const &pointIndices,
138 int pointColorIndex);
140 void _GetSelectionPrimPathsForMode(
HighlightMode const &mode,
145 std::unordered_map<SdfPath, PrimSelectionState, SdfPath::Hash>;
155 #endif //PXR_IMAGING_HD_SELECTION_H
HD_API PrimSelectionState const * GetPrimSelectionState(HighlightMode const &mode, SdfPath const &renderIndexPath) const
-------------------------— Query API ------------------------------—
virtual HD_API ~HdSelection()
HighlightMode
Selection modes allow differentiation in selection highlight behavior.
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< class SdfPath > SdfPathVector
std::vector< VtIntArray > elementIndices
_PrimSelectionStateMap _selMap[HighlightModeCount]
HD_API std::vector< GfVec4f > const & GetSelectedPointColors() const
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