 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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;
void addActorInfo(const cvActorSelectionInfo &info)
Actor/Representation information (ParaView-style)
Definition: cvSelectionData.cpp:148
@ SELECTION_SUBTRACTION
Subtract from selection (Shift)
cvSelectionData & operator=(const cvSelectionData &other)
Assignment operator.
Definition: cvSelectionData.cpp:81
int actorCount() const
Get number of actors in this selection.
Definition: cvSelectionData.h:248
@ SELECT_FRUSTUM_POINTS
Select points in frustum.
bool hasActorInfo() const
Check if actor information is available.
Definition: cvSelectionData.h:253
SelectionModifier
Selection modifiers for combining selections.
Definition: cvSelectionData.h:80
FieldAssociation fieldAssociation() const
Get field association.
Definition: cvSelectionData.h:193
@ SELECT_SURFACE_CELLS_POLYGON
Select cells on surface (polygon)
unsigned int blockIndex
Block index for composite datasets.
Definition: cvSelectionData.h:114
void clear()
Clear the selection.
Definition: cvSelectionData.cpp:137
@ SELECT_SURFACE_POINTDATA_INTERACTIVELY
Hover highlight point data.
Definition: WidgetMap.h:20
@ SELECT_SURFACE_CELLS_INTERACTIVELY
@ SHRINK_SELECTION
Shrink selection by one layer.
~cvSelectionData()
Destructor.
Definition: cvSelectionData.cpp:109
@ SELECT_SURFACE_CELLDATA_INTERACTIVELY
Hover highlight cell data.
QString actorName
Optional actor name/description.
Definition: cvSelectionData.h:115
core::Tensor result
Definition: VtkUtils.cpp:76
@ SELECTION_ADDITION
Add to selection (Ctrl)
@ ZOOM_TO_BOX
Zoom to box region.
double zValue
Z-buffer depth value (for front-to-back ordering)
Definition: cvSelectionData.h:112
int propId
Unique prop ID (from hardware selector)
Definition: cvSelectionData.h:113
@ SELECT_SURFACE_CELLS
Select cells on surface (rectangle)
bool isEmpty() const
Check if selection is empty.
Definition: cvSelectionData.cpp:114
@ SELECTION_DEFAULT
Replace selection (default)
@ HOVER_POINTS_TOOLTIP
Show point data tooltip on hover (read-only)
cvActorSelectionInfo actorInfo(int index=0) const
Get actor info at index.
Definition: cvSelectionData.cpp:173
@ CELLS
Selection applies to cells.
Definition: cvSelectionData.h:142
vtkActor * primaryActor() const
Get the primary (front-most) actor.
Definition: cvSelectionData.cpp:181
int count() const
Get number of selected items.
Definition: cvSelectionData.cpp:119
vtkPolyData * polyData
The associated polyData (weak pointer)
Definition: cvSelectionData.h:111
QSharedPointer< cvSelectionData > cvSelectionDataPtr
Shared pointer to selection data.
Definition: cvSelectionData.h:304
a[190]
Definition: essential_matrix_poly.h:19
@ SELECTION_TOGGLE
Toggle selection (Ctrl+Shift)
QVector< qint64 > ids() const
Get selected IDs as a vector (copy)
Definition: cvSelectionData.cpp:124
@ SELECT_BLOCKS
Select blocks (rectangle)
cvActorSelectionInfo()
Definition: cvSelectionData.h:117
QString fieldTypeString() const
Get human-readable field type string.
Definition: cvSelectionData.cpp:143
@ SELECT_CUSTOM_POLYGON
Custom polygon selection (signal only)
void clearActorInfo()
Clear actor information.
Definition: cvSelectionData.cpp:191
Encapsulates selection data without exposing VTK types.
Definition: cvSelectionData.h:136
int count
Definition: FileIOFactory.cpp:132
@ HOVER_CELLS_TOOLTIP
Show cell data tooltip on hover (read-only)
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
@ SELECT_FRUSTUM_CELLS
Select cells in frustum.
uint qHash(SelectionMode key, uint seed=0) noexcept
Definition: cvSelectionData.h:88
SelectionMode
Selection modes matching ParaView's SelectionMode enum.
Definition: cvSelectionData.h:36
@ SELECT_FRUSTUM_BLOCKS
Select blocks in frustum.
@ SELECT_SURFACE_POINTS_INTERACTIVELY
vtkSmartPointer< vtkIdTypeArray > vtkArray() const
Get the underlying VTK array (for internal use only)
Definition: cvSelectionData.h:204
@ CLEAR_SELECTION
Clear current selection.
FieldAssociation
Field association for selection.
Definition: cvSelectionData.h:141
@ SELECT_SURFACE_POINTS_POLYGON
Select points on surface (polygon)
@ SELECT_SURFACE_POINTS
Select points on surface (rectangle)
vtkPolyData * primaryPolyData() const
Get the primary (front-most) polyData.
Definition: cvSelectionData.cpp:186
@ GROW_SELECTION
Expand selection by one layer.
void setActorInfo(vtkActor *actor, vtkPolyData *polyData, double zValue=1.0)
Set actor information (single actor case)
Definition: cvSelectionData.cpp:159
Information about a selected actor/representation.
Definition: cvSelectionData.h:109
vtkActor * actor
The selected actor (weak pointer)
Definition: cvSelectionData.h:110
cvSelectionData()
Construct empty selection data.
Definition: cvSelectionData.cpp:19
QVector< cvActorSelectionInfo > actorInfos() const
Get all actor infos.
Definition: cvSelectionData.h:268