16 #include "qtablewidget.h"
28 m_action =
new QAction(
getName(),
this);
38 if (m_action ==
nullptr) {
42 m_action->setEnabled(
false);
43 if (selectedEntities.size() == 1) {
44 ccHObject *
object = selectedEntities.at(0);
47 m_action->setEnabled(
true);
54 if (
m_app ==
nullptr) {
60 m_controller = std::make_unique<ccMPlaneDlgController>(
m_app);
62 m_controller->openDialog(m_selectedCloud);
virtual QString getName() const override
Returns (short) name (for menu entry, etc.)
virtual QString getDescription() const override
Returns long name/description (for tooltip, etc.)
virtual QIcon getIcon() const override
Returns icon.
Hierarchical CLOUDVIEWER Object.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
bool isKindOf(CV_CLASS_ENUM type) const
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Standard ECV plugin interface.
ecvMainAppInterface * m_app
Main application interface.
void onNewSelection(const ccHObject::Container &selectedEntities) override
qMPlane(QObject *parent=nullptr)
QList< QAction * > getActions() override
Get a list of actions for this plugin.