ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qCloudLayers.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 // ##########################################################################
11 // # #
12 // # CloudViewer PLUGIN: qCloudLayers #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: WigginsTech 2022 #
24 // # #
25 // ##########################################################################
26 
27 #include "ecvStdPluginInterface.h"
28 
29 class ccCloudLayersDlg;
30 
31 class qCloudLayers : public QObject, public ccStdPluginInterface {
32  Q_OBJECT
34  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.qCloudLayers" FILE
35  "../info.json")
36 
37 public:
38  explicit qCloudLayers(QObject* parent = nullptr);
39  ~qCloudLayers() override = default;
40 
41  // Inherited from ccStdPluginInterface
42  void onNewSelection(const ccHObject::Container& selectedEntities) override;
43  QList<QAction*> getActions() override;
44 
45 protected:
47  void doAction();
48 
49 private:
51  QAction* m_action;
52 
53  ccCloudLayersDlg* m_cloudLayersDlg;
54 };
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Standard ECV plugin interface.
Standard ECV plugin interface.
void doAction()
Slot called when associated action is triggered.