ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qPCL Class Reference

PCL bridge plugin. More...

#include <qPCLBase.h>

Inheritance diagram for qPCL:
[legend]
Collaboration diagram for qPCL:
[legend]

Public Slots

void handleNewEntity (ccHObject *)
 Handles new entity. More...
 
void handleEntityChange (ccHObject *)
 Handles entity (visual) modification. More...
 
void handleErrorMessage (QString)
 Handles new error message. More...
 

Public Member Functions

 qPCL (QObject *parent=nullptr)
 Default constructor. More...
 
virtual ~qPCL () override=default
 Destructor. More...
 
virtual void onNewSelection (const ccHObject::Container &selectedEntities) override
 
virtual QVector< QList< QAction * > > getActions () override
 Get a list of actions for this plugin. More...
 
virtual QVector< QString > getModuleNames () override
 
virtual void stop () override
 Stops the plugin. More...
 
- Public Member Functions inherited from ccPclPluginInterface
 ccPclPluginInterface (const QString &resourcePath=QString())
 Default constructor. More...
 
virtual ~ccPclPluginInterface ()=default
 Destructor. More...
 
virtual CC_PLUGIN_TYPE getType () const override
 Returns plugin type (standard or OpenGL filter) More...
 
virtual void setMainAppInterface (ecvMainAppInterface *app)
 Sets application entry point. More...
 
virtual ecvMainAppInterface * getMainAppInterface ()
 A callback pointer to the main app interface for use by plugins. More...
 
virtual void dispToConsole (QString message, ecvMainAppInterface::ConsoleMessageLevel level=ecvMainAppInterface::STD_CONSOLE_MESSAGE)
 Shortcut to ecvMainAppInterface::dispToConsole. More...
 
- Public Member Functions inherited from ccDefaultPluginInterface
virtual ~ccDefaultPluginInterface ()
 
virtual bool isCore () const override
 Is this plugin a core plugin? More...
 
virtual QString getName () const override
 Returns (short) name (for menu entry, etc.) More...
 
virtual QString getDescription () const override
 Returns long name/description (for tooltip, etc.) More...
 
virtual QIcon getIcon () const override
 Returns icon. More...
 
virtual ReferenceList getReferences () const override
 
virtual ContactList getAuthors () const override
 
virtual ContactList getMaintainers () const override
 
- Public Member Functions inherited from ccPluginInterface
virtual ~ccPluginInterface ()=default
 Virtual destructor. More...
 
virtual bool start ()
 Starts the plugin. More...
 
virtual ccExternalFactory * getCustomObjectsFactory () const
 Returns the plugin's custom object factory (if any) More...
 
virtual void registerCommands (ccCommandLineInterface *cmd)
 Optional: registers commands (for the command line mode) More...
 

Protected Member Functions

int addPclModule (BasePclModule *module, QList< QAction * > &actions)
 Adds a pcl module. More...
 
- Protected Member Functions inherited from ccDefaultPluginInterface
 ccDefaultPluginInterface (const QString &resourcePath=QString())
 

Protected Attributes

std::vector< BasePclModule * > m_modules
 Loaded modules. More...
 
QVector< QString > m_moduleNames
 
- Protected Attributes inherited from ccPclPluginInterface
ecvMainAppInterface * m_app
 Main application interface. More...
 

Additional Inherited Members

- Public Types inherited from ccPluginInterface
typedef QList< Contact > ContactList
 
using ReferenceList = QList< Reference >
 

Detailed Description

PCL bridge plugin.

Constructor & Destructor Documentation

◆ qPCL()

qPCL::qPCL ( QObject *  parent = nullptr)

Default constructor.

◆ ~qPCL()

virtual qPCL::~qPCL ( )
overridevirtualdefault

Destructor.

Member Function Documentation

◆ addPclModule()

int qPCL::addPclModule ( BasePclModule *  module,
QList< QAction * > &  actions 
)
protected

◆ getActions()

QVector< QList< QAction * > > qPCL::getActions ( )
overridevirtual

Get a list of actions for this plugin.

Implements ccPclPluginInterface.

References addPclModule(), m_moduleNames, and m_modules.

◆ getModuleNames()

QVector< QString > qPCL::getModuleNames ( )
overridevirtual

Implements ccPclPluginInterface.

References m_moduleNames.

◆ handleEntityChange

void qPCL::handleEntityChange ( ccHObject *  entity)
slot

Handles entity (visual) modification.

References ccPclPluginInterface::m_app, ecvMainAppInterface::refreshSelected(), and ecvMainAppInterface::updateUI().

Referenced by addPclModule().

◆ handleErrorMessage

void qPCL::handleErrorMessage ( QString  message)
slot

◆ handleNewEntity

void qPCL::handleNewEntity ( ccHObject *  entity)
slot

◆ onNewSelection()

void qPCL::onNewSelection ( const ccHObject::Container &  selectedEntities)
overridevirtual

This method is called by the main application whenever the entity selection changes Does nothing by default. Should be re-implemented by the plugin if necessary.

Parameters
selectedEntitiescurrently selected entities

Reimplemented from ccPclPluginInterface.

References m_modules.

◆ stop()

void qPCL::stop ( )
overridevirtual

Stops the plugin.

Should be reimplemented if necessary. Used to stop a plugin previously started (see ccPluginInterface::start).

Reimplemented from ccPluginInterface.

References m_modules.

Member Data Documentation

◆ m_moduleNames

QVector<QString> qPCL::m_moduleNames
protected

Referenced by getActions(), and getModuleNames().

◆ m_modules

std::vector<BasePclModule*> qPCL::m_modules
protected

Loaded modules.

Referenced by addPclModule(), getActions(), onNewSelection(), and stop().


The documentation for this class was generated from the following files: