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