ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qAnimation.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 // Qt
14 #include <QObject>
15 
16 // Animation plugin
17 class qAnimation : public QObject, public ccStdPluginInterface {
18  Q_OBJECT
20 
21  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.qAnimation" FILE
22  "../info.json")
23 
24 public:
26  qAnimation(QObject* parent = nullptr);
27 
28  virtual ~qAnimation() = default;
29 
30  // inherited from ccStdPluginInterface
31  void onNewSelection(const ccHObject::Container& selectedEntities) override;
32  virtual QList<QAction*> getActions() override;
33 
34 private:
35  void doAction();
36 
37  QAction* m_action;
38 };
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Standard ECV plugin interface.
Standard ECV plugin interface.