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

#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...
 

Detailed Description

The Manager class (#OOP) for the plugins, responsible for loading and storing them

Definition at line 16 of file PythonPluginManager.h.

Constructor & Destructor Documentation

◆ PythonPluginManager()

PythonPluginManager::PythonPluginManager ( )
default

Member Function Documentation

◆ loadPluginsFrom()

void PythonPluginManager::loadPluginsFrom ( const QStringList &  paths)

Loads the plugins from the given path.

A plugin is either a .py file or a directory.

Parameters
pathswhere 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().

◆ loadPluginsFromEntryPoints()

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().

◆ plugins()

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().

◆ unloadPlugins()

void PythonPluginManager::unloadPlugins ( )

This MUST be called before finalizing the interpreter.

Definition at line 187 of file PythonPluginManager.cpp.


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