Debian Codegraph @

plugins/core/Standard/qHoughNormals/include/qHoughNormals.h

raw
1 //##########################################################################
2 //# #
3 //# CLOUDCOMPARE PLUGIN: qHoughNormals #
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: Daniel Girardeau-Montaut #
15 //# #
16 //##########################################################################
17
18 #ifndef QHOUGH_NORMALS_PLUGIN_HEADER
19 #define QHOUGH_NORMALS_PLUGIN_HEADER
20
21 #include "ccStdPluginInterface.h"
22
23 //! Wrapper to the 'normals_Hough' library (https://github.com/aboulch/normals_Hough)
24 /** "Deep Learning for Robust Normal Estimation in Unstructured Point Clouds"
25 by Alexandre Boulch and Renaud Marlet, Symposium of Geometry Processing 2016, Computer Graphics Forum
26 **/
27 class qHoughNormals : public QObject, public ccStdPluginInterface
28 {
29 Q_OBJECT
30 Q_INTERFACES( ccPluginInterface ccStdPluginInterface )
31
32 Q_PLUGIN_METADATA( IID "cccorp.cloudcompare.plugin.qHoughNormals" FILE "../info.json" )
33
34 public:
35
36 //! Default constructor
37 explicit qHoughNormals(QObject* parent = nullptr);
38
39 virtual ~qHoughNormals() = default;
40
41 //inherited from ccStdPluginInterface
42 virtual void onNewSelection(const ccHObject::Container& selectedEntities) override;
43 virtual QList<QAction *> getActions() override;
44
45 protected:
46
47 //! Slot called when associated ation is triggered
48 void doAction();
49
50 protected:
51
52 //! Associated action
53 QAction* m_action;
54 };
55
56 #endif //QHOUGH_NORMALS_PLUGIN_HEADER