ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonPlugin Class Referencefinal

"Entry point" of the plugin More...

#include <PythonPlugin.h>

Inheritance diagram for PythonPlugin:
Collaboration diagram for PythonPlugin:

Public Member Functions

 PythonPlugin (QObject *parent=nullptr)
 
QList< QAction * > getActions () override
 Get a list of actions for this plugin. More...
 
void registerCommands (ccCommandLineInterface *cmd) override
 
void setMainAppInterface (ecvMainAppInterface *app) override
 Sets application entry point. More...
 
void stop () override
 Stops the plugin. More...
 
 PythonPlugin (const PythonPlugin &)=delete
 
 PythonPlugin (PythonPlugin &&)=delete
 
PythonPluginoperator= (const PythonPlugin &)=delete
 
PythonPluginoperator= (PythonPlugin &&)=delete
 
 ~PythonPlugin () noexcept override
 
- Public Member Functions inherited from ccStdPluginInterface
 ccStdPluginInterface (const QString &resourcePath=QString())
 Default constructor. More...
 
virtual ~ccStdPluginInterface () override=default
 Destructor. More...
 
virtual CC_PLUGIN_TYPE getType () const override
 Returns plugin type (standard or OpenGL filter) More...
 
virtual ecvMainAppInterfacegetMainAppInterface ()
 A callback pointer to the main app interface for use by plugins. More...
 
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 ccExternalFactorygetCustomObjectsFactory () const
 Returns the plugin's custom object factory (if any) 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())
 
- Protected Attributes inherited from ccStdPluginInterface
ecvMainAppInterfacem_app
 Main application interface. More...
 

Detailed Description

"Entry point" of the plugin

Definition at line 28 of file PythonPlugin.h.

Constructor & Destructor Documentation

◆ PythonPlugin() [1/3]

◆ PythonPlugin() [2/3]

PythonPlugin::PythonPlugin ( const PythonPlugin )
delete

◆ PythonPlugin() [3/3]

PythonPlugin::PythonPlugin ( PythonPlugin &&  )
delete

◆ ~PythonPlugin()

PythonPlugin::~PythonPlugin ( )
overridenoexcept

Member Function Documentation

◆ getActions()

◆ operator=() [1/2]

PythonPlugin& PythonPlugin::operator= ( const PythonPlugin )
delete

◆ operator=() [2/2]

PythonPlugin& PythonPlugin::operator= ( PythonPlugin &&  )
delete

◆ registerCommands()

void PythonPlugin::registerCommands ( ccCommandLineInterface cmd)
overridevirtual

Registers the -PYTHON_SCRIPT command to run Python scripts in ACloudViewer's commandline mode

Reimplemented from ccPluginInterface.

Definition at line 500 of file PythonPlugin.cpp.

References ccCommandLineInterface::registerCommand(), and Runtime::setCmdLineInterfaceInstance().

◆ setMainAppInterface()

◆ stop()

void PythonPlugin::stop ( )
overridevirtual

Stops the plugin.

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

Reimplemented from ccPluginInterface.

Definition at line 128 of file PythonPlugin.cpp.

References LoadSettings().


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