ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvOrderChoiceDlg.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 // Qt
11 #include <QDialog>
12 
13 class ccHObject;
15 class Ui_RoleChoiceDialog;
16 
18 class ccOrderChoiceDlg : public QDialog {
19  Q_OBJECT
20 
21 public:
23  ccOrderChoiceDlg(ccHObject* firstEntity,
24  QString firstRole,
25  ccHObject* secondEntity,
26  QString secondRole,
27  ecvMainAppInterface* app = 0);
28 
30  virtual ~ccOrderChoiceDlg();
31 
36 
37 protected slots:
38 
40  void swap();
41 
42 protected:
44  void setColorsAndLabels();
45 
46  Ui_RoleChoiceDialog* m_gui;
51 };
#define slots
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Dialog to assign roles to two entities (e.g. compared/reference)
ccHObject * getSecondEntity()
Returns the second entity (new order)
ccHObject * m_firstEnt
ecvMainAppInterface * m_app
ccOrderChoiceDlg(ccHObject *firstEntity, QString firstRole, ccHObject *secondEntity, QString secondRole, ecvMainAppInterface *app=0)
Default constructor.
void swap()
Swaps the entities.
ccHObject * getFirstEntity()
Returns the first entity (new order)
void setColorsAndLabels()
Sets the right colors to the entities and updates the dialog.
ccHObject * m_secondEnt
Ui_RoleChoiceDialog * m_gui
virtual ~ccOrderChoiceDlg()
Destructor.
Main application interface (for plugins)