ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccPclPluginInterface Class Referenceabstract

Pcl ECV plugin interface. More...

#include <ecvPclPluginInterface.h>

Inheritance diagram for ccPclPluginInterface:
Collaboration diagram for ccPclPluginInterface:

Public Member Functions

 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 ecvMainAppInterfacegetMainAppInterface ()
 A callback pointer to the main app interface for use by plugins. More...
 
virtual QVector< QList< QAction * > > getActions ()=0
 Get a list of actions for this plugin. More...
 
virtual QVector< QString > getModuleNames ()=0
 
virtual void onNewSelection (const ccHObject::Container &selectedEntities)
 
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 void stop ()
 Stops the plugin. More...
 
virtual ccExternalFactorygetCustomObjectsFactory () 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 Attributes

ecvMainAppInterfacem_app
 Main application interface. More...
 

Additional Inherited Members

- Public Types inherited from ccPluginInterface
typedef QList< ContactContactList
 
using ReferenceList = QList< Reference >
 
- Protected Member Functions inherited from ccDefaultPluginInterface
 ccDefaultPluginInterface (const QString &resourcePath=QString())
 

Detailed Description

Pcl ECV plugin interface.

Version 1.4 The plugin is now responsible for its own actions (QAction ;) and the associated ecvMainAppInterface member should give it access to everything it needs in the main application.

Definition at line 27 of file ecvPclPluginInterface.h.

Constructor & Destructor Documentation

◆ ccPclPluginInterface()

ccPclPluginInterface::ccPclPluginInterface ( const QString &  resourcePath = QString())
inline

Default constructor.

Definition at line 30 of file ecvPclPluginInterface.h.

◆ ~ccPclPluginInterface()

virtual ccPclPluginInterface::~ccPclPluginInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ dispToConsole()

virtual void ccPclPluginInterface::dispToConsole ( QString  message,
ecvMainAppInterface::ConsoleMessageLevel  level = ecvMainAppInterface::STD_CONSOLE_MESSAGE 
)
inlinevirtual

◆ getActions()

virtual QVector<QList<QAction*> > ccPclPluginInterface::getActions ( )
pure virtual

Get a list of actions for this plugin.

Implemented in qPCL.

◆ getMainAppInterface()

virtual ecvMainAppInterface* ccPclPluginInterface::getMainAppInterface ( )
inlinevirtual

A callback pointer to the main app interface for use by plugins.

Any plugin (and its tools) may need to access methods of this interface

Definition at line 57 of file ecvPclPluginInterface.h.

References m_app.

◆ getModuleNames()

virtual QVector<QString> ccPclPluginInterface::getModuleNames ( )
pure virtual

Implemented in qPCL.

◆ getType()

virtual CC_PLUGIN_TYPE ccPclPluginInterface::getType ( ) const
inlineoverridevirtual

Returns plugin type (standard or OpenGL filter)

Implements ccPluginInterface.

Definition at line 37 of file ecvPclPluginInterface.h.

References ECV_PCL_ALGORITHM_PLUGIN.

◆ onNewSelection()

virtual void ccPclPluginInterface::onNewSelection ( const ccHObject::Container selectedEntities)
inlinevirtual

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 in qPCL.

Definition at line 69 of file ecvPclPluginInterface.h.

Referenced by ccPluginUIManager::handleSelectionChanged().

◆ setMainAppInterface()

virtual void ccPclPluginInterface::setMainAppInterface ( ecvMainAppInterface app)
inlinevirtual

Sets application entry point.

Called just after plugin creation by qCC

Definition at line 44 of file ecvPclPluginInterface.h.

References ecvMainAppInterface::getUniqueIDGenerator(), m_app, and ccObject::SetUniqueIDGenerator().

Referenced by ccPluginUIManager::init().

Member Data Documentation

◆ m_app

ecvMainAppInterface* ccPclPluginInterface::m_app
protected

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