![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <PythonPluginManager.h>
Public Member Functions | |
| PythonPluginManager ()=default | |
| const std::vector< Runtime::RegisteredPlugin > & | plugins () const |
| Returns the currently loaded plugins. More... | |
| void | loadPluginsFromEntryPoints () |
| void | loadPluginsFrom (const QStringList &paths) |
| void | unloadPlugins () |
| This MUST be called before finalizing the interpreter. More... | |
The Manager class (#OOP) for the plugins, responsible for loading and storing them
Definition at line 16 of file PythonPluginManager.h.
|
default |
| void PythonPluginManager::loadPluginsFrom | ( | const QStringList & | paths | ) |
Loads the plugins from the given path.
A plugin is either a .py file or a directory.
| paths | where we will look for plugins to load |
Definition at line 117 of file PythonPluginManager.cpp.
References Runtime::RegisteredPlugin::InstanciatePlugin(), and cloudViewer::t::geometry::path.
Referenced by PythonPlugin::setMainAppInterface().
| void PythonPluginManager::loadPluginsFromEntryPoints | ( | ) |
Autodiscover plugins based on the package metadata. it uses the entry point mechanism described
Definition at line 21 of file PythonPluginManager.cpp.
References Runtime::RegisteredPlugin::InstanciatePlugin().
Referenced by PythonPlugin::setMainAppInterface().
| const std::vector< Runtime::RegisteredPlugin > & PythonPluginManager::plugins | ( | ) | const |
Returns the currently loaded plugins.
Definition at line 16 of file PythonPluginManager.cpp.
Referenced by PythonActionLauncher::populateToolBox().
| void PythonPluginManager::unloadPlugins | ( | ) |
This MUST be called before finalizing the interpreter.
Definition at line 187 of file PythonPluginManager.cpp.