ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qM3C2.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // qCC
11 #include "ecvStdPluginInterface.h"
12 
13 // CV_DB_LIB
14 #include <ecvHObject.h>
15 
17 
21 class qM3C2Plugin : public QObject, public ccStdPluginInterface {
22  Q_OBJECT
24  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.qM3C2" FILE
25  "../info.json")
26 
27 public:
29  qM3C2Plugin(QObject* parent = nullptr);
30 
31  virtual ~qM3C2Plugin() = default;
32 
33  // inherited from ccStdPluginInterface
34  virtual void onNewSelection(
35  const ccHObject::Container& selectedEntities) override;
36  virtual QList<QAction*> getActions() override;
37  virtual void registerCommands(ccCommandLineInterface* cmd) override;
38 
39 private:
40  void doAction();
41 
43  QAction* m_action;
44 
46  ccHObject::Container m_selectedEntities;
47 };
Command line interface.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Standard ECV plugin interface.
Standard ECV plugin interface.
M3C2 plugin.
Definition: qM3C2.h:21