![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
"Entry point" of the plugin More...
#include <PythonPlugin.h>


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 | |
| PythonPlugin & | operator= (const PythonPlugin &)=delete |
| PythonPlugin & | operator= (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 ecvMainAppInterface * | getMainAppInterface () |
| 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 ccExternalFactory * | getCustomObjectsFactory () const |
| Returns the plugin's custom object factory (if any) More... | |
Additional Inherited Members | |
Public Types inherited from ccPluginInterface | |
| typedef QList< Contact > | ContactList |
| using | ReferenceList = QList< Reference > |
Protected Member Functions inherited from ccDefaultPluginInterface | |
| ccDefaultPluginInterface (const QString &resourcePath=QString()) | |
Protected Attributes inherited from ccStdPluginInterface | |
| ecvMainAppInterface * | m_app |
| Main application interface. More... | |
"Entry point" of the plugin
Definition at line 28 of file PythonPlugin.h.
|
explicit |
Definition at line 36 of file PythonPlugin.cpp.
References PythonInterpreter::executionFinished(), PythonInterpreter::executionStarted(), PythonConfig::fromContainingEnvironment(), PythonConfig::initBundled(), PythonInterpreter::initialize(), PythonRuntimeSettings::isDefaultPythonEnv(), PythonConfig::IsInsideEnvironment(), PYPLUGIN_ICON_PATH, PythonRuntimeSettings::pythonEnvConfig(), PythonConfig::type(), and PythonConfig::validateAndDisplayErrors().
|
delete |
|
delete |
|
overridenoexcept |
Definition at line 427 of file PythonPlugin.cpp.
References Runtime::unsetCmdLineInterfaceInstance(), and Runtime::unsetMainAppInterfaceInstance().
|
overridevirtual |
Get a list of actions for this plugin.
Implements ccStdPluginInterface.
Definition at line 136 of file PythonPlugin.cpp.
References ABOUT_ICON_PATH, ACTION_LAUNCHER_ICON_PATH, ADD_PYSCRIPT_ICON_PATH, DOCUMENTATION_ICON_PATH, EDITOR_ICON_PATH, PythonInterpreter::IsInitialized(), LoadSettings(), PACKAGE_MANAGER_ICON_PATH, cloudViewer::t::geometry::path, PYSCRIPTS_REGISTER_ICON_PATH, REMOVE_PYSCRIPT_ICON_PATH, REPL_ICON_PATH, RUNNER_ICON_PATH, and SETTINGS_ICON_PATH.
|
delete |
|
delete |
|
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().
|
overridevirtual |
Sets application entry point.
Called just after plugin creation by qCC
Reimplemented from ccStdPluginInterface.
Definition at line 509 of file PythonPlugin.cpp.
References ecvMainAppInterface::getMainWindow(), PythonPluginManager::loadPluginsFrom(), PythonPluginManager::loadPluginsFromEntryPoints(), LogPythonHome(), LogPythonPath(), ccStdPluginInterface::m_app, PythonRuntimeSettings::pluginsPaths(), ccStdPluginInterface::setMainAppInterface(), Runtime::setMainAppInterfaceInstance(), and CVLog::Warning().
|
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().