![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Python/PythonPlugin.h>
Enables Python bindings for the ImFusionLib. More...
Inheritance diagram for PythonPlugin:Enables Python bindings for the ImFusionLib.
Starts an embedded Python interpreter when loaded and imports the 'imfusion' module. The Python version of the interpreter depends on the activeEnvironment configured in PythonPluginSettings.
Public Member Functions | |
| const AlgorithmFactory * | getAlgorithmFactory () override |
| Get algorithm factory for algorithms hosted by plugin. | |
| const AlgorithmControllerFactory * | getAlgorithmControllerFactory () override |
| Get algorithm controller factory for algorithms hosted by plugin. | |
| std::string | pluginName () const override |
| Return the name of the plugin. | |
| void | setApplicationController (ApplicationController &app) override |
| Gives the plugin access to the application controller. | |
| bool | isInterpreterRunning () const |
| Returns if an interpreter was started successfully and Python is available. | |
| PythonInterpreterInterface * | interpreter () const |
| Returns the embedded interpreter or nullptr. | |
Public Member Functions inherited from ImFusionPlugin | |
| virtual const DataAnnotationFactory * | getDataAnnotationFactory () |
| Get data GL annotation factory for annotations hosted by plugin. | |
| virtual std::vector< WorkspaceConversionFunction > | getWorkspaceConversionFunctions () |
| Return a list of workspace conversion functions and the corresponding workspace versions they apply to. | |
| virtual ImFusionPlugin::VersionInfo | version () const |
| Return version. | |
|
overridevirtual |
Get algorithm factory for algorithms hosted by plugin.
Implements ImFusionPlugin.
|
overridevirtual |
Get algorithm controller factory for algorithms hosted by plugin.
Implements ImFusionPlugin.
|
inlineoverridevirtual |
Return the name of the plugin.
Reimplemented from ImFusionPlugin.
|
overridevirtual |
Gives the plugin access to the application controller.
Plugins should not rely on this method being called in all setups.
Reimplemented from ImFusionPlugin.
| PythonInterpreterInterface * interpreter | ( | ) | const |
Returns the embedded interpreter or nullptr.
The interpreter is owned by the plugin and is deleted when the plugin is unloaded.