ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvPlaneEditDlg.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 // Local
11 #include <ui_planeEditDlg.h>
12 
13 #include "ecvPickingListener.h"
14 
15 // cloudViewer
16 #include <CVGeom.h>
17 
18 // Qt
19 #include <QDialog>
20 
21 class ccPlane;
22 class ccHObject;
23 class ccPickingHub;
24 
26 class ccPlaneEditDlg : public QDialog,
27  public ccPickingListener,
28  public Ui::PlaneEditDlg {
29  Q_OBJECT
30 
31 public:
33  explicit ccPlaneEditDlg(ccPickingHub* pickingHub, QWidget* parent);
34 
36  virtual ~ccPlaneEditDlg();
37 
39  void initWithPlane(ccPlane* plane);
40 
42  void updatePlane(ccPlane* plane);
43 
45  virtual void onItemPicked(const PickedItem& pi);
46 
47 public slots:
48 
49  void pickPointAsCenter(bool);
50  void onDipDirChanged(double);
51  void onDipDirModified(bool);
52  void onNormalChanged(double);
53 
54 protected slots:
55 
56  void saveParamsAndAccept();
57 
58 protected: // members
61 
64 };
#define slots
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Point/triangle picking hub.
Definition: ecvPickingHub.h:29
Point/triangle picking listener interface.
Dialog to create (or edit the parameters) of a plane.
virtual void onItemPicked(const PickedItem &pi)
Inherited from ccPickingListener.
ccPickingHub * m_pickingHub
Picking hub.
void initWithPlane(ccPlane *plane)
Links this dialog with an existing plane.
virtual ~ccPlaneEditDlg()
Destructor.
void saveParamsAndAccept()
void pickPointAsCenter(bool)
void updatePlane(ccPlane *plane)
Updates a plane with the current parameters.
ccPlane * m_associatedPlane
Associated plane (if any)
void onDipDirModified(bool)
void onNormalChanged(double)
void onDipDirChanged(double)
ccPlaneEditDlg(ccPickingHub *pickingHub, QWidget *parent)
Default constructor.
Plane (primitive)
Definition: ecvPlane.h:18