![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Comprehensive selection properties and management widget. More...
#include <cvSelectionPropertiesWidget.h>


Classes | |
| struct | SavedSelection |
| Saved selection entry for Selection Editor. More... | |
Signals | |
| void | highlightColorChanged (double r, double g, double b, int mode) |
| void | highlightOpacityChanged (double opacity, int mode) |
| void | expressionChanged (const QString &expression) |
| void | activateCombinedSelectionsRequested () |
| void | selectionAdded (const cvSelectionData &selection) |
| void | selectionRemoved (int index) |
| void | allSelectionsRemoved () |
| void | freezeSelectionRequested () |
| void | extractSelectionRequested () |
| void | extractedObjectReady (ccHObject *obj) |
| void | plotOverTimeRequested () |
| void | invertSelectionRequested () |
| void | findDataRequested (const QString &dataProducer, const QString &elementType, const QString &attribute, const QString &op, const QString &value) |
| void | algebraOperationRequested (int operation) |
| void | bookmarkRequested (const QString &name) |
| void | annotationRequested (const QString &text) |
Public Member Functions | |
| cvSelectionPropertiesWidget (QWidget *parent=nullptr) | |
| ~cvSelectionPropertiesWidget () override | |
| void | setHighlighter (cvSelectionHighlighter *highlighter) |
| void | setSelectionManager (cvViewSelectionManager *manager) |
| void | syncUIWithHighlighter () |
| bool | updateSelection (const cvSelectionData &selectionData, vtkPolyData *polyData=nullptr) |
| void | clearSelection () |
| const cvSelectionData & | selectionData () const |
| cvViewSelectionManager * | selectionManager () const |
| void | setDataProducerName (const QString &name) |
| Set the data producer name (source of selection) More... | |
| void | refreshDataProducers () |
| Refresh the data producer combo box Call this when data sources change (e.g., after loading new data) More... | |
Public Member Functions inherited from cvSelectionBase | |
| cvSelectionBase () | |
| virtual | ~cvSelectionBase ()=default |
| virtual void | setVisualizer (ecvGenericVisualizer3D *viewer) |
| Set the visualizer instance. More... | |
| ecvGenericVisualizer3D * | getVisualizer () const |
| Get the visualizer instance. More... | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
Protected Member Functions inherited from cvSelectionBase | |
| PclUtils::PCLVis * | getPCLVis () const |
| Get PCLVis instance (for VTK-specific operations) More... | |
| bool | hasValidPCLVis () const |
| Check if visualizer is valid and is PCLVis. More... | |
| vtkDataSet * | getDataFromActor (vtkActor *actor) |
| Get data object from a specific actor (ParaView-style) More... | |
| QList< vtkActor * > | getDataActors () const |
| Get all visible data actors from visualizer. More... | |
| std::vector< vtkPolyData * > | getAllPolyDataFromVisualizer () |
| Get all polyData from the visualizer. More... | |
| virtual vtkPolyData * | getPolyDataForSelection (const cvSelectionData *selectionData=nullptr) |
| Get polyData using ParaView-style priority (centralized method) More... | |
Additional Inherited Members | |
Protected Attributes inherited from cvSelectionBase | |
| ecvGenericVisualizer3D * | m_viewer |
| Visualizer instance (abstract interface) More... | |
Comprehensive selection properties and management widget.
Based on ParaView's Find Data panel with:
Layout:
Definition at line 71 of file cvSelectionPropertiesWidget.h.
|
explicit |
Definition at line 125 of file cvSelectionPropertiesWidget.cpp.
References CVLog::PrintVerbose().
|
override |
Definition at line 211 of file cvSelectionPropertiesWidget.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
| void cvSelectionPropertiesWidget::clearSelection | ( | ) |
Definition at line 1717 of file cvSelectionPropertiesWidget.cpp.
References cvSelectionData::clear(), cvSelectionHighlighter::isCellLabelVisible(), cvSelectionHighlighter::isPointLabelVisible(), cvSelectionHighlighter::setCellLabelArray(), and cvSelectionHighlighter::setPointLabelArray().
Referenced by cvFindDataDockWidget::clearSelection(), and updateSelection().
|
overrideprotected |
Definition at line 240 of file cvSelectionPropertiesWidget.cpp.
References color, event, cvSelectionHighlighter::getHighlightQColor(), cvSelectionHighlighter::HOVER, cloudViewer::t::geometry::ipp::Resize(), and cvSelectionHighlighter::SELECTED.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
Referenced by setHighlighter().
|
signal |
Referenced by setHighlighter().
|
signal |
|
signal |
| void cvSelectionPropertiesWidget::refreshDataProducers | ( | ) |
Refresh the data producer combo box Call this when data sources change (e.g., after loading new data)
Definition at line 5438 of file cvSelectionPropertiesWidget.cpp.
Referenced by cvFindDataDockWidget::refreshDataProducers(), and cvFindDataDockWidget::showEvent().
|
overrideprotected |
Definition at line 268 of file cvSelectionPropertiesWidget.cpp.
References event.
|
signal |
|
inline |
Definition at line 98 of file cvSelectionPropertiesWidget.h.
Referenced by updateSelection().
|
inline |
Definition at line 99 of file cvSelectionPropertiesWidget.h.
|
signal |
| void cvSelectionPropertiesWidget::setDataProducerName | ( | const QString & | name | ) |
Set the data producer name (source of selection)
Definition at line 5423 of file cvSelectionPropertiesWidget.cpp.
References name.
Referenced by updateSelection().
| void cvSelectionPropertiesWidget::setHighlighter | ( | cvSelectionHighlighter * | highlighter | ) |
Definition at line 279 of file cvSelectionPropertiesWidget.cpp.
References cvSelectionHighlighter::colorChanged(), cvSelectionBase::getPCLVis(), highlightColorChanged(), highlightOpacityChanged(), cvSelectionHighlighter::labelPropertiesChanged(), cvSelectionHighlighter::opacityChanged(), cvSelectionHighlighter::setHighlightColor(), cvSelectionHighlighter::setHighlightOpacity(), syncUIWithHighlighter(), and PclUtils::PCLVis::UpdateScreen().
Referenced by cvFindDataDockWidget::configure(), and setSelectionManager().
| void cvSelectionPropertiesWidget::setSelectionManager | ( | cvViewSelectionManager * | manager | ) |
Definition at line 1483 of file cvSelectionPropertiesWidget.cpp.
References SelectionLabelProperties::cellLabelColor, cvSelectionLabelPropertiesDialog::LabelProperties::cellLabelColor, SelectionLabelProperties::cellLabelFontFamily, cvSelectionLabelPropertiesDialog::LabelProperties::cellLabelFontFamily, SelectionLabelProperties::cellLabelFontSize, cvSelectionLabelPropertiesDialog::LabelProperties::cellLabelFontSize, cvViewSelectionManager::getAnnotations(), cvViewSelectionManager::getHighlighter(), cvSelectionHighlighter::getLabelProperties(), SelectionLabelProperties::lineWidth, cvSelectionLabelPropertiesDialog::LabelProperties::lineWidth, SelectionLabelProperties::opacity, cvSelectionLabelPropertiesDialog::LabelProperties::opacity, SelectionLabelProperties::pointLabelColor, cvSelectionLabelPropertiesDialog::LabelProperties::pointLabelColor, SelectionLabelProperties::pointLabelFontFamily, cvSelectionLabelPropertiesDialog::LabelProperties::pointLabelFontFamily, SelectionLabelProperties::pointLabelFontSize, cvSelectionLabelPropertiesDialog::LabelProperties::pointLabelFontSize, SelectionLabelProperties::pointSize, cvSelectionLabelPropertiesDialog::LabelProperties::pointSize, cvSelectionAnnotationManager::setDefaultLabelProperties(), and setHighlighter().
Referenced by cvFindDataDockWidget::configure().
| void cvSelectionPropertiesWidget::syncUIWithHighlighter | ( | ) |
Definition at line 563 of file cvSelectionPropertiesWidget.cpp.
References cvSelectionHighlighter::BOUNDARY, cvSelectionHighlighter::getHighlightOpacity(), cvSelectionHighlighter::getHighlightQColor(), cvSelectionHighlighter::HOVER, cvSelectionHighlighter::PRESELECTED, CVLog::PrintVerbose(), and cvSelectionHighlighter::SELECTED.
Referenced by setHighlighter().
| bool cvSelectionPropertiesWidget::updateSelection | ( | const cvSelectionData & | selectionData, |
| vtkPolyData * | polyData = nullptr |
||
| ) |
Definition at line 1541 of file cvSelectionPropertiesWidget.cpp.
References cvSelectionData::CELLS, clearSelection(), cvSelectionData::fieldAssociation(), ccObject::getName(), cvViewSelectionManager::getPolyData(), cvSelectionBase::getPolyDataForSelection(), cvViewSelectionManager::getSourceObject(), cvSelectionData::ids(), cvViewSelectionManager::instance(), cvSelectionData::isEmpty(), cvSelectionData::POINTS, CVLog::PrintVerbose(), selectionData(), setDataProducerName(), and CVLog::Warning().
Referenced by cvFindDataDockWidget::updateSelection().