qCanupo.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE PLUGIN: qCANUPO #
  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: UEB (UNIVERSITE EUROPEENNE DE BRETAGNE) / CNRS #
  15. //# #
  16. //##########################################################################
  17. #ifndef Q_CANUPO_PLUGIN_HEADER
  18. #define Q_CANUPO_PLUGIN_HEADER
  19. //qCC
  20. #include <ccStdPluginInterface.h>
  21. //qCC_db
  22. #include <ccHObject.h>
  23. //! CANUPO plugin
  24. /** See "3D Terrestrial lidar data classification of complex natural scenes using a multi-scale dimensionality criterion:
  25. applications in geomorphology", N. Brodu, D. Lague, 2012, Computer Vision and Pattern Recognition
  26. **/
  27. class qCanupoPlugin : public QObject, public ccStdPluginInterface
  28. {
  29. Q_OBJECT
  30. Q_INTERFACES( ccPluginInterface ccStdPluginInterface )
  31. Q_PLUGIN_METADATA( IID "cccorp.cloudcompare.plugin.qCanupo" FILE "../info.json" )
  32. public:
  33. //! Default constructor
  34. qCanupoPlugin(QObject* parent = nullptr);
  35. //inherited from ccStdPluginInterface
  36. void onNewSelection(const ccHObject::Container& selectedEntities) override;
  37. virtual QList<QAction*> getActions() override;
  38. virtual void registerCommands(ccCommandLineInterface* cmd) override;
  39. protected:
  40. void doClassifyAction();
  41. void doTrainAction();
  42. protected:
  43. //! Calssift action
  44. QAction* m_classifyAction;
  45. //! Train action
  46. QAction* m_trainAction;
  47. //! Currently selected entities
  48. ccHObject::Container m_selectedEntities;
  49. };
  50. #endif //Q_CANUPO_HEADER