ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qAutoSeg.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: qAutoSeg #
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 // # Cyberbuild,2020 #
24 // # v1.2 # # #
25 // ##########################################################################
26 
27 #include "ecvStdPluginInterface.h"
28 
29 class ccAutoSeg : public QObject, public ccStdPluginInterface {
30  Q_OBJECT
32 
33  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.qAutoSeg" FILE
34  "info.json")
35 
36 public:
37  explicit ccAutoSeg(QObject *parent = nullptr);
38  //~ccAutoSeg() override = default;
39  virtual ~ccAutoSeg() = default;
40 
41  // inherited from ccStdPluginInterface
42  void onNewSelection(const ccHObject::Container &selectedEntities) override;
43  QList<QAction *> getActions() override;
44 
45 private:
46  void doAction();
47 
48  QAction *m_action;
49 };
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Standard ECV plugin interface.
Standard ECV plugin interface.