ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
PythonPluginManager.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <vector>
11 
12 #include "Runtime/Runtime.h"
13 
17 {
18  public:
19  PythonPluginManager() = default;
20 
22  const std::vector<Runtime::RegisteredPlugin> &plugins() const;
23 
35 
41  void loadPluginsFrom(const QStringList &paths);
42 
44  void unloadPlugins();
45 
46  private:
47  std::vector<Runtime::RegisteredPlugin> m_plugins;
48 };
Runtime.h
PythonPluginManager::loadPluginsFrom
void loadPluginsFrom(const QStringList &paths)
Definition: PythonPluginManager.cpp:117
PythonPluginManager::loadPluginsFromEntryPoints
void loadPluginsFromEntryPoints()
Definition: PythonPluginManager.cpp:21
PythonPluginManager::plugins
const std::vector< Runtime::RegisteredPlugin > & plugins() const
Returns the currently loaded plugins.
Definition: PythonPluginManager.cpp:16
cloudViewer::t::geometry::path
static const std::string path
Definition: PointCloud.cpp:59
e
const double * e
Definition: essential_matrix_poly.h:10
Utilities.h
PythonPluginManager::unloadPlugins
void unloadPlugins()
This MUST be called before finalizing the interpreter.
Definition: PythonPluginManager.cpp:187
PythonPluginManager::PythonPluginManager
PythonPluginManager()=default
plgPrint
PluginLogger< CVLog::LOG_STANDARD > plgPrint
Definition: Utilities.h:100
Runtime::RegisteredPlugin::InstanciatePlugin
static RegisteredPlugin InstanciatePlugin(pybind11::object class_type, const QString &name) noexcept(false)
Instanciate a plugin with a known name.
Definition: Runtime.h:40
plgWarning
PluginLogger< CVLog::LOG_WARNING > plgWarning
Definition: Utilities.h:102
PythonPluginManager
Definition: PythonPluginManager.h:16
Runtime::RegisteredPlugin
Definition: Runtime.h:21
plgVerbose
PluginLogger< CVLog::LOG_VERBOSE > plgVerbose
Definition: Utilities.h:99
PythonPluginManager.h