qCloudLayers.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. //##########################################################################
  3. //# #
  4. //# CLOUDCOMPARE PLUGIN: qCloudLayers #
  5. //# #
  6. //# This program is free software; you can redistribute it and/or modify #
  7. //# it under the terms of the GNU General Public License as published by #
  8. //# the Free Software Foundation; version 2 of the License. #
  9. //# #
  10. //# This program is distributed in the hope that it will be useful, #
  11. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  12. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  13. //# GNU General Public License for more details. #
  14. //# #
  15. //# COPYRIGHT: WigginsTech 2022 #
  16. //# #
  17. //##########################################################################
  18. #include <ccStdPluginInterface.h>
  19. class ccCloudLayersDlg;
  20. class qCloudLayers : public QObject, public ccStdPluginInterface
  21. {
  22. Q_OBJECT
  23. Q_INTERFACES( ccPluginInterface ccStdPluginInterface )
  24. Q_PLUGIN_METADATA( IID "cccorp.cloudcompare.plugin.qCloudLayers" FILE "../info.json" )
  25. public:
  26. explicit qCloudLayers( QObject* parent = nullptr );
  27. ~qCloudLayers() override = default;
  28. // Inherited from ccStdPluginInterface
  29. void onNewSelection( const ccHObject::Container& selectedEntities ) override;
  30. QList<QAction*> getActions() override;
  31. protected:
  32. //! Slot called when associated action is triggered
  33. void doAction();
  34. private:
  35. //! Default action
  36. QAction* m_action;
  37. ccCloudLayersDlg* m_cloudLayersDlg;
  38. };