ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cvFindDataDockWidget.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QDockWidget>
11 #include <QPointer>
12 #include <QScrollArea>
13 
14 #include "qPCL.h"
15 
16 // Forward declarations
20 class cvSelectionData;
22 class ccHObject;
23 
36 class QPCL_ENGINE_LIB_API cvFindDataDockWidget : public QDockWidget {
37  Q_OBJECT
38 
39 public:
40  explicit cvFindDataDockWidget(QWidget* parent = nullptr);
41  ~cvFindDataDockWidget() override;
42 
47  return m_selectionWidget;
48  }
49 
56  void configure(cvSelectionHighlighter* highlighter,
57  cvViewSelectionManager* manager,
58  ecvGenericVisualizer3D* visualizer);
59 
64  void updateSelection(const cvSelectionData& selectionData);
65 
69  void clearSelection();
70 
75  void refreshDataProducers();
76 
77 signals:
83 
87  void visibilityChanged(bool visible);
88 
89 protected:
90  void showEvent(QShowEvent* event) override;
91  void hideEvent(QHideEvent* event) override;
92 
93 private:
94  void setupUi();
95 
96 private:
97  QScrollArea* m_scrollArea;
98  cvSelectionPropertiesWidget* m_selectionWidget;
99 };
MouseEvent event
#define signals
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Dock widget for Find Data / Selection Properties panel.
void visibilityChanged(bool visible)
Emitted when the dock visibility changes.
cvSelectionPropertiesWidget * selectionPropertiesWidget() const
Get the selection properties widget contained in this dock.
void extractedObjectReady(ccHObject *obj)
Emitted when an extracted object is ready to be added to the scene.
Encapsulates selection data without exposing VTK types.
Helper class for highlighting selected elements in the visualizer.
Comprehensive selection properties and management widget.
Central manager for all selection operations in the view.
Generic visualizer 3D interface.
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15