ccOrderChoiceDlg.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE #
  4. //# #
  5. //# This program is free software; you can redistribute it and/or modify #
  6. //# it under the terms of the GNU General Public License as published by #
  7. //# the Free Software Foundation; version 2 or later of the License. #
  8. //# #
  9. //# This program is distributed in the hope that it will be useful, #
  10. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  11. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  12. //# GNU General Public License for more details. #
  13. //# #
  14. //# COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
  15. //# #
  16. //##########################################################################
  17. #ifndef CC_ORDER_CHOICE_DIALOG_HEADER
  18. #define CC_ORDER_CHOICE_DIALOG_HEADER
  19. //Qt
  20. #include <QDialog>
  21. class ccHObject;
  22. class ccMainAppInterface;
  23. class Ui_RoleChoiceDialog;
  24. //! Dialog to assign roles to two entities (e.g. compared/reference)
  25. class ccOrderChoiceDlg: public QDialog
  26. {
  27. Q_OBJECT
  28. public:
  29. //! Default constructor
  30. ccOrderChoiceDlg( ccHObject* firstEntity,
  31. QString firstRole,
  32. ccHObject* secondEntity,
  33. QString secondRole,
  34. ccMainAppInterface* app = 0);
  35. //! Destructor
  36. virtual ~ccOrderChoiceDlg();
  37. //! Returns the first entity (new order)
  38. ccHObject* getFirstEntity();
  39. //! Returns the second entity (new order)
  40. ccHObject* getSecondEntity();
  41. protected:
  42. //! Swaps the entities
  43. void swap();
  44. protected:
  45. //! Sets the right colors to the entities and updates the dialog
  46. void setColorsAndLabels();
  47. Ui_RoleChoiceDialog* m_gui;
  48. ccMainAppInterface* m_app;
  49. ccHObject* m_firstEnt;
  50. ccHObject* m_secondEnt;
  51. bool m_useInputOrder;
  52. };
  53. #endif // CC_ORDER_CHOICE_DIALOG_HEADER