ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ScalarDialog.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 // ##########################################################################
11 // # #
12 // # CLOUDVIEWER PLUGIN: ColorimetricSegmenter #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: Tri-Thien TRUONG, Ronan COLLIER, Mathieu LETRONE #
24 // # #
25 // ##########################################################################
26 
27 #include <ecvPickingListener.h>
28 #include <ui_ScalarDialog.h>
29 
30 // Qt
31 #include <QDialog>
32 
33 class ccPickingHub;
34 
35 /*
36  Get the values of the RGB interface, and interactions
37 */
38 class ScalarDialog : public QDialog,
39  public ccPickingListener,
40  public Ui::ScalarDialog {
41  Q_OBJECT
42 public:
43  explicit ScalarDialog(ccPickingHub* pickingHub, QWidget* parent = nullptr);
44 
46  virtual void onItemPicked(const PickedItem& pi);
47 
48 public slots:
49  void pickPoint_first(bool);
50  void pickPoint_second(bool);
51 
52 protected: // members
54  QWidget* m_pickingWin;
55 
58 };
#define slots
virtual void onItemPicked(const PickedItem &pi)
Inherited from ccPickingListener.
ScalarDialog(ccPickingHub *pickingHub, QWidget *parent=nullptr)
ccPickingHub * m_pickingHub
Picking hub.
Definition: ScalarDialog.h:57
void pickPoint_first(bool)
QWidget * m_pickingWin
Picking window (if any)
Definition: ScalarDialog.h:54
void pickPoint_second(bool)
Point/triangle picking hub.
Definition: ecvPickingHub.h:29
Point/triangle picking listener interface.