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