ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qMPlane.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 // std
11 #include <memory>
12 
13 // ACloudViewer
14 #include <ecvPickingListener.h>
15 #include <ecvPointCloud.h>
16 #include <ecvStdPluginInterface.h>
17 
18 // qMPlane
20 
21 #ifdef USE_VLD
22 // VLD
23 #include <vld.h>
24 #endif
25 
26 class qMPlane : public QObject, public ccStdPluginInterface {
27  Q_OBJECT
29  Q_PLUGIN_METADATA(IID "ecvcorp.cloudviewer.plugin.MPlane" FILE "info.json")
30 
31 public:
32  explicit qMPlane(QObject *parent = nullptr);
33  ~qMPlane() override = default;
34 
35  void onNewSelection(const ccHObject::Container &selectedEntities) override;
36  QList<QAction *> getActions() override;
37 
38 protected slots:
39  void doAction();
40 
41 private:
42  QAction *m_action = nullptr;
43  ccPointCloud *m_selectedCloud = nullptr;
44  std::unique_ptr<ccMPlaneDlgController> m_controller;
45 };
ccDefaultPluginInterface::getDescription
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
Definition: ecvDefaultPluginInterface.cpp:104
qMPlane::qMPlane
qMPlane(QObject *parent=nullptr)
Definition: qMPlane.cpp:21
ccObject::isKindOf
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
qMPlane::onNewSelection
void onNewSelection(const ccHObject::Container &selectedEntities) override
Definition: qMPlane.cpp:37
ccDefaultPluginInterface::getName
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
Definition: ecvDefaultPluginInterface.cpp:100
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
ccMPlaneDlgController.h
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
qMPlane::~qMPlane
~qMPlane() override=default
ecvPlane.h
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
slots
#define slots
Definition: PythonPlugin.cpp:25
qMPlane::getActions
QList< QAction * > getActions() override
Get a list of actions for this plugin.
Definition: qMPlane.cpp:26
ccStdPluginInterface::m_app
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
ecvStdPluginInterface.h
qMPlane
Definition: qMPlane.h:26
ecvScalarField.h
ecvPickingHub.h
ecvPickingListener.h
ccDefaultPluginInterface::getIcon
virtual QIcon getIcon() const override
Returns icon.
Definition: ecvDefaultPluginInterface.cpp:108
ccPluginInterface
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
qMPlane.h
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
ccStdPluginInterface
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
DistanceComputationTools.h
ecvHObject.h
qMPlane::doAction
void doAction()
Definition: qMPlane.cpp:53
ecvPointCloud.h