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