 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
12 #include <QtGui/QColor>
13 #include <QtWidgets/QGroupBox>
14 #include <QtWidgets/QLabel>
15 #include <QtCore/QObject>
16 #include <QtWidgets/QPushButton>
17 #include <QtWidgets/QScrollArea>
18 #include <QtWidgets/QSpinBox>
19 #include <QtWidgets/QTableWidget>
20 #include <QtWidgets/QToolButton>
21 #include <QtWidgets/QWidget>
41 class cvSelectionBookmarks;
92 void syncUIWithHighlighter();
95 vtkPolyData* polyData =
nullptr);
96 void clearSelection();
100 return m_selectionManager;
106 void setDataProducerName(
const QString&
name);
112 void refreshDataProducers();
116 void highlightColorChanged(
double r,
double g,
double b,
int mode);
117 void highlightOpacityChanged(
double opacity,
int mode);
120 void expressionChanged(
const QString& expression);
121 void activateCombinedSelectionsRequested();
123 void selectionRemoved(
int index);
124 void allSelectionsRemoved();
127 void freezeSelectionRequested();
128 void extractSelectionRequested();
130 void extractedObjectReady(
ccHObject* obj);
131 void plotOverTimeRequested();
132 void invertSelectionRequested();
133 void findDataRequested(
const QString& dataProducer,
134 const QString& elementType,
135 const QString& attribute,
137 const QString& value);
140 void algebraOperationRequested(
int operation);
141 void bookmarkRequested(
const QString&
name);
142 void annotationRequested(
const QString& text);
146 void onCellLabelsClicked();
147 void onPointLabelsClicked();
148 void onEditLabelPropertiesClicked();
149 void onSelectionColorClicked();
150 void onInteractiveSelectionColorClicked();
151 void onEditInteractiveLabelPropertiesClicked();
152 void onLabelPropertiesApplied(
154 void onInteractiveLabelPropertiesApplied(
158 void onExpressionChanged(
const QString& text);
159 void onAddActiveSelectionClicked();
160 void onRemoveSelectedSelectionClicked();
161 void onRemoveAllSelectionsClicked();
162 void onActivateCombinedSelectionsClicked();
163 void onSelectionEditorTableSelectionChanged();
164 void onSelectionEditorCellClicked(
int row,
int column);
165 void onSelectionEditorCellDoubleClicked(
int row,
int column);
168 void onAttributeTypeChanged(
int index);
169 void onInvertSelectionToggled(
bool checked);
170 void onFreezeClicked();
171 void onExtractClicked();
172 void onPlotOverTimeClicked();
173 void onToggleColumnVisibility();
174 void onToggleFieldDataClicked(
bool checked);
177 void onDataProducerChanged(
int index);
178 void onElementTypeChanged(
int index);
179 void onFindDataClicked();
180 void onResetClicked();
181 void onClearClicked();
182 void updateAttributeCombo();
183 void updateDataProducerCombo();
184 void addQueryRow(
int index = -1,
185 const QString& attribute = QString(),
186 const QString& op = QString(),
187 const QString& value = QString());
188 void removeQueryRow(
int index);
189 void updateQueryRowButtons();
190 void performFindData(
const QString& attribute,
192 const QString& value,
194 void onSpreadsheetItemClicked(QTableWidgetItem* item);
197 void onHoverColorClicked();
198 void onPreselectedColorClicked();
199 void onSelectedColorClicked();
200 void onBoundaryColorClicked();
201 void onHoverOpacityChanged(
double value);
202 void onPreselectedOpacityChanged(
double value);
203 void onSelectedOpacityChanged(
double value);
204 void onBoundaryOpacityChanged(
double value);
205 void onExportToMeshClicked();
206 void onExportToPointCloudClicked();
207 void onSelectionTableItemClicked(QTableWidgetItem* item);
208 void onAlgebraOperationTriggered();
211 void onAddAnnotationClicked();
212 void onExtractBoundaryClicked();
215 void onHighlighterColorChanged(
int mode);
216 void onHighlighterOpacityChanged(
int mode);
217 void onHighlighterLabelPropertiesChanged(
bool interactive);
221 bool eventFilter(QObject* obj, QEvent*
event)
override;
223 void resizeEvent(QResizeEvent*
event)
override;
229 void setupSelectedDataHeader();
230 void setupCreateSelectionSection();
231 void setupSelectionDisplaySection();
232 void setupSelectionEditorSection();
233 void setupSelectedDataSpreadsheet();
235 setupCompactStatisticsSection();
237 void updateStatistics(vtkPolyData* polyData,
239 void updateSelectionList(vtkPolyData* polyData);
240 void updateSpreadsheetData(
241 vtkPolyData* polyData,
243 void computeBoundingBox(vtkPolyData* polyData,
double bounds[6]);
244 QString formatBounds(
const double bounds[6]);
245 void showColorDialog(
const QString& title,
246 double currentColor[3],
248 void highlightSingleItem(qint64
id);
249 qint64 extractIdFromItemText(
const QString& itemText);
251 void updateSelectionEditorTable();
252 QString generateSelectionName();
253 QColor generateSelectionColor()
const;
256 void syncInternalColorArray(
double r,
double g,
double b,
int mode);
260 void updateColorButtonIcon(QAbstractButton* button,
const QColor&
color);
263 void setupCollapsibleGroupBox(QGroupBox* groupBox);
266 void updateScrollContentWidth();
270 QStringList tokenizeExpression(
const QString& expression);
271 cvSelectionData parseOrExpression(
const QStringList& tokens,
int& pos);
272 cvSelectionData parseXorExpression(
const QStringList& tokens,
int& pos);
273 cvSelectionData parseAndExpression(
const QStringList& tokens,
int& pos);
274 cvSelectionData parseUnaryExpression(
const QStringList& tokens,
int& pos);
275 cvSelectionData parsePrimaryExpression(
const QStringList& tokens,
int& pos);
284 m_originalSelectionIds;
291 QList<SavedSelection> m_savedSelections;
292 QString m_dataProducerName;
295 QScrollArea* m_scrollArea;
296 QWidget* m_scrollContent;
300 QWidget* m_selectedDataContainer;
301 QLabel* m_selectedDataLabel;
302 QPushButton* m_freezeButton;
303 QPushButton* m_extractButton;
304 QPushButton* m_plotOverTimeButton;
308 QWidget* m_selectionDisplayContainer;
309 QGroupBox* m_selectionDisplayGroup;
311 QPushButton* m_cellLabelsButton;
312 QPushButton* m_pointLabelsButton;
313 QMenu* m_cellLabelsMenu;
314 QMenu* m_pointLabelsMenu;
315 QPushButton* m_editLabelPropertiesButton;
317 QToolButton* m_selectionColorButton;
322 m_interactiveSelectionColorButton;
323 QPushButton* m_editInteractiveLabelPropertiesButton;
327 QWidget* m_selectionEditorContainer;
328 QGroupBox* m_selectionEditorGroup;
329 QLabel* m_dataProducerLabel;
330 QLabel* m_dataProducerValue;
331 QLabel* m_elementTypeLabel;
332 QLabel* m_elementTypeValue;
334 QLabel* m_expressionLabel;
335 QLineEdit* m_expressionEdit;
336 QTableWidget* m_selectionEditorTable;
337 QToolButton* m_addSelectionButton;
338 QToolButton* m_removeSelectionButton;
339 QToolButton* m_removeAllSelectionsButton;
340 QPushButton* m_activateCombinedSelectionsButton;
344 QWidget* m_createSelectionContainer;
345 QGroupBox* m_createSelectionGroup;
346 QComboBox* m_dataProducerCombo;
347 QComboBox* m_elementTypeCombo;
348 QComboBox* m_attributeCombo;
349 QComboBox* m_operatorCombo;
350 QLineEdit* m_valueEdit;
351 QSpinBox* m_processIdSpinBox;
352 QPushButton* m_findDataButton;
353 QPushButton* m_resetButton;
354 QPushButton* m_clearButton;
355 QVBoxLayout* m_queriesLayout;
359 QComboBox* attributeCombo;
360 QComboBox* operatorCombo;
361 QLineEdit* valueEdit;
362 QPushButton* plusButton;
363 QPushButton* minusButton;
367 bool operator==(
const QueryRow& other)
const {
368 return container == other.container;
371 QList<QueryRow> m_queryRows;
375 QWidget* m_selectedDataSpreadsheetContainer;
376 QGroupBox* m_selectedDataGroup;
377 QComboBox* m_attributeTypeCombo;
378 QToolButton* m_toggleColumnVisibilityButton;
379 QToolButton* m_toggleFieldDataButton;
381 QCheckBox* m_invertSelectionCheck;
382 QTableWidget* m_spreadsheetTable;
386 QWidget* m_compactStatsContainer;
387 QGroupBox* m_compactStatsGroup;
388 QLabel* m_countLabel;
390 QLabel* m_boundsLabel;
391 QLabel* m_centerLabel;
392 QLabel* m_volumeLabel;
395 QTabWidget* m_tabWidget;
400 QTableWidget* m_selectionTableWidget;
401 QLabel* m_listInfoLabel;
402 QComboBox* m_algebraOpCombo;
403 QPushButton* m_applyAlgebraButton;
404 QPushButton* m_extractBoundaryButton;
407 QPushButton* m_addAnnotationButton;
410 QPushButton* m_hoverColorButton;
411 QPushButton* m_preselectedColorButton;
412 QPushButton* m_selectedColorButton;
413 QPushButton* m_boundaryColorButton;
414 QDoubleSpinBox* m_hoverOpacitySpin;
415 QDoubleSpinBox* m_preselectedOpacitySpin;
416 QDoubleSpinBox* m_selectedOpacitySpin;
417 QDoubleSpinBox* m_boundaryOpacitySpin;
421 QColor getSelectionColor()
const;
422 QColor getInteractiveSelectionColor()
const;
425 int m_selectionCount;
426 QString m_selectionType;
432 int m_selectionNameCounter;
436 int m_extractCounter;
439 static const QColor s_selectionColors[];
440 static const int s_selectionColorsCount;
443 QString m_currentCellLabelArray;
444 QString m_currentPointLabelArray;
447 double m_savedPreselectedColor[3];
448 qint64 m_lastHighlightedId;
cvSelectionHighlighter * getHighlighter()
Get the shared highlighter.
Definition: cvViewSelectionManager.h:238
constexpr Rgb white(MAX, MAX, MAX)
QCPAxis * xAxis
Definition: qcustomplot.h:2219
void labelPropertiesChanged(bool interactive)
Emitted when label properties change.
@ ssCircle
\enumimage{ssCircle.png} a circle
Definition: qcustomplot.h:369
bool cellLabelBold
Definition: cvSelectionHighlighter.h:59
void setScatterStyle(const QCPScatterStyle &style)
Definition: qcustomplot.cpp:15137
void setPen(const QPen &pen)
Definition: qcustomplot.cpp:7136
void opacityChanged(int mode)
Emitted when any opacity changes.
void setHighlightOpacity(double opacity, HighlightMode mode=SELECTED)
Set highlight opacity.
Definition: cvSelectionHighlighter.cpp:171
int clearGraphs()
Definition: qcustomplot.cpp:10066
constexpr Rgb black(0, 0, 0)
bool hasActorInfo() const
Check if actor information is available.
Definition: cvSelectionData.h:253
void Resize(const core::Tensor &src_im, core::Tensor &dst_im, Image::InterpType interp_type)
Definition: IPPImage.cpp:94
int lineWidth
Definition: cvSelectionLabelPropertiesDialog.h:53
void propertiesApplied(const LabelProperties &props)
Emitted when Apply is clicked.
virtual unsigned size() const override
Returns the number of triangles.
Definition: ecvMesh.cpp:2143
QHeaderView that supports showing multiple sections as one.
Definition: cvMultiColumnHeaderView.h:33
void applyLabelProperties(const cvSelectionLabelPropertiesDialog::LabelProperties &props, bool isCellLabel)
Apply label properties to all annotations (for cell or point labels)
Definition: cvSelectionAnnotation.cpp:266
bool highlightSelection(const vtkSmartPointer< vtkIdTypeArray > &selection, int fieldAssociation, HighlightMode mode=SELECTED)
Highlight selected elements (automatically gets polyData from visualizer)
Definition: cvSelectionHighlighter.cpp:268
FieldAssociation fieldAssociation() const
Get field association.
Definition: cvSelectionData.h:193
HighlightMode
Highlight mode (Enhanced multi-level highlighting)
Definition: cvSelectionHighlighter.h:115
GraphType data
Definition: graph_cut.cc:138
int pointLabelFontSize
Definition: cvSelectionLabelPropertiesDialog.h:71
QSet< T > qSetFromVector(const QVector< T > &vec)
Definition: QtCompat.h:1073
QColor pointLabelColor
Definition: cvSelectionLabelPropertiesDialog.h:72
static bool PrintVerbose(const char *format,...)
Prints out a verbose formatted message in console.
Definition: CVLog.cpp:103
int cellLabelFontSize
Definition: cvSelectionHighlighter.h:56
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:124
#define signals
Definition: PythonPlugin.cpp:26
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
double opacity
Definition: cvSelectionLabelPropertiesDialog.h:51
@ SELECTED
Definition: cvSelectionHighlighter.h:120
void setInteractions(const QCP::Interactions &interactions)
Definition: qcustomplot.cpp:9574
constexpr bool operator==(const optional< T > &x, const optional< T > &y)
Definition: Optional.h:615
int maxTooltipAttributes
Definition: cvSelectionHighlighter.h:82
bool cellLabelShadow
Definition: cvSelectionLabelPropertiesDialog.h:61
bool cellLabelItalic
Definition: cvSelectionLabelPropertiesDialog.h:60
void clear()
Clear the selection.
Definition: cvSelectionData.cpp:137
static cvSelectionData unionOf(const cvSelectionData &a, const cvSelectionData &b)
Compute union of two selections.
Definition: cvSelectionAlgebra.cpp:37
unsigned size() const override
Definition: PointCloudTpl.h:38
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:136
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
QString pointLabelFontFamily
Definition: cvSelectionHighlighter.h:69
Q_SLOT void replot(QCustomPlot::RefreshPriority refreshPriority=QCustomPlot::rpHint)
Definition: qcustomplot.cpp:10636
QString cellLabelFormat
Definition: cvSelectionLabelPropertiesDialog.h:67
bool removePlottable(QCPAbstractPlottable *plottable)
Definition: qcustomplot.cpp:9838
math::float4 color
Definition: LineSetBuffers.cpp:46
QString getPointLabelArrayName() const
Get current point label array name.
Definition: cvSelectionHighlighter.h:315
Selection algebra operations.
Definition: cvSelectionAlgebra.h:46
Label properties structure.
Definition: cvSelectionLabelPropertiesDialog.h:49
PclUtils::PCLVis * getPCLVis() const
Get PCLVis instance (for VTK-specific operations)
Definition: cvSelectionBase.cpp:33
QString cellLabelFontFamily
Definition: cvSelectionHighlighter.h:55
void setDefaultLabelProperties(const cvSelectionLabelPropertiesDialog::LabelProperties &props, bool isCellLabel)
Set default label properties for new annotations.
Definition: cvSelectionAnnotation.cpp:305
A plottable representing a graph in a plot.
Definition: qcustomplot.h:2973
double normals[3]
Definition: TriangleMeshIO.cpp:54
virtual vtkPolyData * getPolyDataForSelection(const cvSelectionData *selectionData=nullptr)
Get polyData using ParaView-style priority (centralized method)
Definition: cvSelectionBase.cpp:72
core::Tensor result
Definition: VtkUtils.cpp:76
void setLabel(const QString &str)
Definition: qcustomplot.cpp:4897
constexpr QRegularExpression::PatternOption CaseInsensitive
Definition: QtCompat.h:174
Advanced selection filtering system.
Definition: cvSelectionAlgebra.h:271
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
QString pointLabelFormat
Definition: cvSelectionLabelPropertiesDialog.h:81
bool showTooltips
Definition: cvSelectionHighlighter.h:81
static cvSelectionData symmetricDifferenceOf(const cvSelectionData &a, const cvSelectionData &b)
Compute symmetric difference of two selections.
Definition: cvSelectionAlgebra.cpp:124
#define slots
Definition: PythonPlugin.cpp:25
Represents the visual appearance of scatter points.
Definition: qcustomplot.h:345
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
QString cellLabelFormat
Definition: cvSelectionHighlighter.h:64
QCPAxis * yAxis
Definition: qcustomplot.h:2219
bool isPointLabelVisible() const
Check if point labels are visible.
Definition: cvSelectionHighlighter.h:325
bool pointLabelBold
Definition: cvSelectionLabelPropertiesDialog.h:73
int cellLabelFontSize
Definition: cvSelectionLabelPropertiesDialog.h:57
void setData(QCPDataMap *data, bool copy=false)
Definition: qcustomplot.cpp:14909
bool pointLabelBold
Definition: cvSelectionHighlighter.h:73
bool cellLabelBold
Definition: cvSelectionLabelPropertiesDialog.h:59
cvSelectionAlgebra * getAlgebra()
Get the selection algebra utility.
Definition: cvViewSelectionManager.h:208
bool isEmpty() const
Check if selection is empty.
Definition: cvSelectionData.cpp:114
QColor getHighlightQColor(HighlightMode mode) const
Get highlight color as QColor.
Definition: cvSelectionHighlighter.cpp:1218
void setFont(const QFont &font)
Definition: qcustomplot.cpp:13445
const double * e
Definition: essential_matrix_poly.h:10
int plottableCount() const
Definition: qcustomplot.cpp:9888
static ccMesh * exportFromSourceMesh(ccMesh *sourceMesh, const cvSelectionData &selectionData, const ExportOptions &options=ExportOptions())
Export selected cells directly from source ccMesh.
Definition: cvSelectionExporter.cpp:302
double pointLabelOpacity
Definition: cvSelectionHighlighter.h:72
QString getCellLabelArrayName() const
Get current cell label array name.
Definition: cvSelectionHighlighter.h:320
@ CELLS
Selection applies to cells.
Definition: cvSelectionData.h:142
int lineWidth
Definition: cvSelectionHighlighter.h:50
bool pointLabelItalic
Definition: cvSelectionHighlighter.h:74
@ PRESELECTED
Definition: cvSelectionHighlighter.h:118
@ iSelectPlottables
Definition: qcustomplot.h:248
vtkPolyData * getPolyData() const
Get the underlying polyData for selection operations.
Definition: cvViewSelectionManager.cpp:538
@ HOVER
Definition: cvSelectionHighlighter.h:116
Central manager for all selection operations in the view.
Definition: cvViewSelectionManager.h:52
vtkActor * primaryActor() const
Get the primary (front-most) actor.
Definition: cvSelectionData.cpp:181
double opacity
Definition: cvSelectionHighlighter.h:48
void setHighlightQColor(const QColor &color, HighlightMode mode=SELECTED)
Set highlight color from QColor.
Definition: cvSelectionHighlighter.cpp:1227
QCPLegend * legend
Definition: qcustomplot.h:2220
int count() const
Get number of selected items.
Definition: cvSelectionData.cpp:119
void setName(const QString &name)
Definition: qcustomplot.cpp:7092
int maxTooltipAttributes
Definition: cvSelectionLabelPropertiesDialog.h:85
QString pointLabelFormat
Definition: cvSelectionHighlighter.h:78
bool pointLabelItalic
Definition: cvSelectionLabelPropertiesDialog.h:74
double cellLabelOpacity
Definition: cvSelectionHighlighter.h:58
bool pointLabelShadow
Definition: cvSelectionLabelPropertiesDialog.h:75
QColor pointLabelColor
Definition: cvSelectionHighlighter.h:71
int pointLabelFontSize
Definition: cvSelectionHighlighter.h:70
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
bool isCellLabelVisible() const
Check if cell labels are visible.
Definition: cvSelectionHighlighter.h:330
int points
Definition: FileIOFactory.cpp:144
static ccPointCloud * exportFromSourceCloud(ccPointCloud *sourceCloud, const cvSelectionData &selectionData, const ExportOptions &options=ExportOptions())
Export selected points directly from source ccPointCloud.
Definition: cvSelectionExporter.cpp:178
void setLabelProperties(const SelectionLabelProperties &props, bool interactive=false)
Set label properties for selection mode.
Definition: cvSelectionHighlighter.cpp:923
QVector< qint64 > ids() const
Get selected IDs as a vector (copy)
Definition: cvSelectionData.cpp:124
QCPGraph * addGraph(QCPAxis *keyAxis=0, QCPAxis *valueAxis=0)
Definition: qcustomplot.cpp:10007
bool cellLabelShadow
Definition: cvSelectionHighlighter.h:61
@ POINTS
Selection applies to points.
Definition: cvSelectionData.h:143
static cvSelectionData intersectionOf(const cvSelectionData &a, const cvSelectionData &b)
Compute intersection of two selections.
Definition: cvSelectionAlgebra.cpp:63
QString pointLabelFontFamily
Definition: cvSelectionLabelPropertiesDialog.h:70
QString fieldTypeString() const
Get human-readable field type string.
Definition: cvSelectionData.cpp:143
double pointLabelOpacity
Definition: cvSelectionLabelPropertiesDialog.h:76
int pointSize
Definition: cvSelectionHighlighter.h:49
void setPointLabelArray(const QString &arrayName, bool visible=true)
Set the point label array name.
Definition: cvSelectionHighlighter.cpp:984
double getHighlightOpacity(HighlightMode mode) const
Get highlight opacity for a specific mode.
Definition: cvSelectionHighlighter.cpp:244
void UpdateScreen()
UpdateScreen - Updates/refreshes the render window This method forces a render update after actor cha...
Definition: PCLVis.cpp:3156
Q_SLOT void rescaleAxes(bool onlyVisiblePlottables=false)
Definition: qcustomplot.cpp:10726
cvSelectionAnnotationManager * getAnnotations()
Get the annotation manager.
Definition: cvViewSelectionManager.h:228
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:2020
Encapsulates selection data without exposing VTK types.
Definition: cvSelectionData.h:136
ccHObject * getSourceObject() const
Get the source object for the current selection.
Definition: cvViewSelectionManager.cpp:636
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
Lightweight base class for all selection-related components.
Definition: cvSelectionBase.h:44
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
QString cellLabelFontFamily
Definition: cvSelectionLabelPropertiesDialog.h:56
bool isSourceObjectValid() const
Check if the source object is still valid.
Definition: cvViewSelectionManager.cpp:706
void setHighlightColor(double r, double g, double b, HighlightMode mode=SELECTED)
Set highlight color.
Definition: cvSelectionHighlighter.cpp:105
ccPointCloud * getSourcePointCloud() const
Get the source object as ccPointCloud.
Definition: cvViewSelectionManager.cpp:641
void setCellLabelArray(const QString &arrayName, bool visible=true)
Set the cell label array name.
Definition: cvSelectionHighlighter.cpp:1003
Selection annotation manager.
Definition: cvSelectionAnnotation.h:112
Triangular mesh.
Definition: ecvMesh.h:35
static cvSelectionData extractBoundary(vtkPolyData *polyData, const cvSelectionData &input)
Extract boundary elements of selection.
Definition: cvSelectionAlgebra.cpp:370
static cvViewSelectionManager * instance()
Get the singleton instance.
Definition: cvViewSelectionManager.cpp:38
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
void colorChanged(int mode)
Emitted when any highlight color changes.
static ccMesh * exportToMesh(vtkPolyData *polyData, const cvSelectionData &selectionData, const ExportOptions &options=ExportOptions())
Export selected cells to ccMesh.
Definition: cvSelectionExporter.cpp:60
void setCurrentSelection(const cvSelectionData &selectionData, bool resetLayers=true)
Set the current selection data.
Definition: cvViewSelectionManager.cpp:370
void setVisible(bool on)
Definition: qcustomplot.cpp:944
static cvSelectionData complementOf(vtkPolyData *polyData, const cvSelectionData &input)
Compute complement of a selection.
Definition: cvSelectionAlgebra.cpp:165
bool cellLabelItalic
Definition: cvSelectionHighlighter.h:60
const double * getHighlightColor(HighlightMode mode) const
Get highlight color for a specific mode.
Definition: cvSelectionHighlighter.cpp:227
Options for exporting selections.
Definition: cvSelectionExporter.h:47
bool showTooltips
Definition: cvSelectionLabelPropertiesDialog.h:84
Label properties for selection annotations.
Definition: cvSelectionHighlighter.h:46
FieldAssociation
Field association for selection.
Definition: cvSelectionData.h:141
Dialog for editing selection label properties.
Definition: cvSelectionLabelPropertiesDialog.h:42
QColor cellLabelColor
Definition: cvSelectionHighlighter.h:57
vtkPolyData * primaryPolyData() const
Get the primary (front-most) polyData.
Definition: cvSelectionData.cpp:186
ccMesh * getSourceMesh() const
Get the source object as ccMesh.
Definition: cvViewSelectionManager.cpp:675
static ccPointCloud * exportToPointCloud(vtkPolyData *polyData, const cvSelectionData &selectionData, const ExportOptions &options=ExportOptions())
Export selected points to ccPointCloud.
Definition: cvSelectionExporter.cpp:117
virtual void setEnabled(bool state)
Sets the "enabled" property.
Definition: ecvObject.h:102
@ iRangeZoom
Definition: qcustomplot.h:239
Helper class for highlighting selected elements in the visualizer.
Definition: cvSelectionHighlighter.h:101
double cellLabelOpacity
Definition: cvSelectionLabelPropertiesDialog.h:62
Operation
Algebra operations Using enum class to avoid macro conflicts (e.g., DIFFERENCE may be defined as a ma...
Definition: cvSelectionAlgebra.h:57
@ iRangeDrag
Definition: qcustomplot.h:235
QColor cellLabelColor
Definition: cvSelectionLabelPropertiesDialog.h:58
const SelectionLabelProperties & getLabelProperties(bool interactive=false) const
Get label properties for selection mode.
Definition: cvSelectionHighlighter.cpp:917
int pointSize
Definition: cvSelectionLabelPropertiesDialog.h:52
bool pointLabelShadow
Definition: cvSelectionHighlighter.h:75
QString addAnnotation(const cvSelectionData &selection, const QString &text, bool autoPosition=true)
Add annotation for a selection.
Definition: cvSelectionAnnotation.cpp:51
std::string name
Definition: FileIOFactory.cpp:129
@ BOUNDARY
Definition: cvSelectionHighlighter.h:122