14 #include <QtCore/QHashFunctions>
15 #include <QtCore/QSharedPointer>
16 #include <QtCore/QString>
17 #include <QtCore/QVector>
20 #include <vtkSmartPointer.h>
89 return qHash(
static_cast<int>(key), seed);
95 return qHash(
static_cast<int>(key), seed);
163 cvSelectionData(
const QVector<qint64>& ids, FieldAssociation association);
183 bool isEmpty()
const;
198 QVector<qint64> ids()
const;
214 QString fieldTypeString()
const;
240 void setActorInfo(vtkActor* actor,
241 vtkPolyData* polyData,
242 double zValue = 1.0);
268 QVector<cvActorSelectionInfo>
actorInfos()
const {
return m_actorInfos; }
276 vtkActor* primaryActor()
const;
282 vtkPolyData* primaryPolyData()
const;
287 void clearActorInfo();
294 FieldAssociation m_fieldAssociation;
298 QVector<cvActorSelectionInfo> m_actorInfos;
Encapsulates selection data without exposing VTK types.
FieldAssociation fieldAssociation() const
Get field association.
vtkSmartPointer< vtkIdTypeArray > vtkArray() const
Get the underlying VTK array (for internal use only)
FieldAssociation
Field association for selection.
QVector< cvActorSelectionInfo > actorInfos() const
Get all actor infos.
bool hasActorInfo() const
Check if actor information is available.
int actorCount() const
Get number of actors in this selection.
SelectionMode
Selection modes matching ParaView's SelectionMode enum.
@ SELECT_BLOCKS
Select blocks (rectangle)
@ SELECT_FRUSTUM_BLOCKS
Select blocks in frustum.
@ SELECT_FRUSTUM_POINTS
Select points in frustum.
@ SELECT_SURFACE_POINTS
Select points on surface (rectangle)
@ HOVER_CELLS_TOOLTIP
Show cell data tooltip on hover (read-only)
@ SELECT_SURFACE_POINTS_POLYGON
Select points on surface (polygon)
@ GROW_SELECTION
Expand selection by one layer.
@ SELECT_CUSTOM_POLYGON
Custom polygon selection (signal only)
@ SHRINK_SELECTION
Shrink selection by one layer.
@ SELECT_SURFACE_POINTS_INTERACTIVELY
@ SELECT_SURFACE_CELLS
Select cells on surface (rectangle)
@ SELECT_SURFACE_CELLS_INTERACTIVELY
@ HOVER_POINTS_TOOLTIP
Show point data tooltip on hover (read-only)
@ SELECT_SURFACE_CELLDATA_INTERACTIVELY
Hover highlight cell data.
@ SELECT_SURFACE_POINTDATA_INTERACTIVELY
Hover highlight point data.
@ ZOOM_TO_BOX
Zoom to box region.
@ SELECT_SURFACE_CELLS_POLYGON
Select cells on surface (polygon)
@ SELECT_FRUSTUM_CELLS
Select cells in frustum.
@ CLEAR_SELECTION
Clear current selection.
uint qHash(SelectionMode key, uint seed=0) noexcept
SelectionModifier
Selection modifiers for combining selections.
@ SELECTION_TOGGLE
Toggle selection (Ctrl+Shift)
@ SELECTION_DEFAULT
Replace selection (default)
@ SELECTION_ADDITION
Add to selection (Ctrl)
@ SELECTION_SUBTRACTION
Subtract from selection (Shift)
QSharedPointer< cvSelectionData > cvSelectionDataPtr
Shared pointer to selection data.
#define QPCL_ENGINE_LIB_API
Information about a selected actor/representation.
double zValue
Z-buffer depth value (for front-to-back ordering)
unsigned int blockIndex
Block index for composite datasets.
int propId
Unique prop ID (from hardware selector)
vtkPolyData * polyData
The associated polyData (weak pointer)
vtkActor * actor
The selected actor (weak pointer)
QString actorName
Optional actor name/description.