43 #if defined(WITH_PCL_NURBS)
59 assert(entity &&
m_app);
65 assert(entity &&
m_app);
76 QVector<QList<QAction *>> allModuleActions;
81 QList<QAction *> filterActions;
88 allModuleActions.push_back(filterActions);
91 QList<QAction *> featureActions;
95 allModuleActions.push_back(featureActions);
98 QList<QAction *> surfaceActions;
103 #if defined(WITH_PCL_NURBS)
108 allModuleActions.push_back(surfaceActions);
111 QList<QAction *> segmentActions;
118 allModuleActions.push_back(segmentActions);
121 QList<QAction *> recognitionActions;
125 allModuleActions.push_back(recognitionActions);
128 return allModuleActions;
137 QAction *action =
module->getAction();
138 if (!action)
return 0;
145 actions.push_back(action);
159 for (
size_t i = 0; i <
m_modules.size(); ++i)
160 m_modules[i]->updateSelectedEntities(selectedEntities);
162 for (
size_t i = 0; i <
m_modules.size(); ++i)
163 m_modules[i]->updateSelectedEntities(selectedEntities);
Base abstract class for each implemented PCL filter.
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
void newErrorMessage(QString)
Signal emitted when a new error message is produced.
void entityHasChanged(ccHObject *)
Signal emitted when an entity is (visually) modified.
Convex Concave Hull Reconstruction.
SIFT keypoints extraction.
SIFT keypoints extraction.
Region Growing Segmentation.
Region Growing Segmentation.
SIFT keypoints extraction.
Hierarchical CLOUDVIEWER Object.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Pcl ECV plugin interface.
ecvMainAppInterface * m_app
Main application interface.
virtual void updateUI()=0
virtual void refreshSelected(bool only2D=false, bool forceRedraw=true)=0
virtual void zoomOnEntities(ccHObject *obj)=0
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
virtual void stop() override
Stops the plugin.
void handleEntityChange(ccHObject *)
Handles entity (visual) modification.
virtual void onNewSelection(const ccHObject::Container &selectedEntities) override
std::vector< BasePclModule * > m_modules
Loaded modules.
void handleNewEntity(ccHObject *)
Handles new entity.
virtual QVector< QList< QAction * > > getActions() override
Get a list of actions for this plugin.
void handleErrorMessage(QString)
Handles new error message.
qPCL(QObject *parent=nullptr)
Default constructor.
int addPclModule(BasePclModule *module, QList< QAction * > &actions)
Adds a pcl module.
QVector< QString > m_moduleNames
virtual QVector< QString > getModuleNames() override
static double module(T *vector)