![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/ImFusionPlugin.h>
Base class for plugins that can be loaded by the ImFusion SDK. More...
Base class for plugins that can be loaded by the ImFusion SDK.
This base class defines the interface so that the ImFusionLib and the plugin can interact with each other (e.g. add algorithm factories). If you need to do any initialization work (e.g. populate additional factories) you should do this in the constructor.
ImFusion::ImFusionPlugin* createPlugin()
C function that instantiates your derived class. This can be easily done with the IMFUSION_REGISTER_PLUGIN() macro.MyExamplePlugin.h
MyExamplePlugin.cpp
Classes | |
struct | VersionInfo |
Public Member Functions | |
virtual const AlgorithmFactory * | getAlgorithmFactory ()=0 |
Get algorithm factory for algorithms hosted by plugin. | |
virtual const AlgorithmControllerFactory * | getAlgorithmControllerFactory ()=0 |
Get algorithm controller factory for algorithms hosted by plugin. | |
virtual const DataAnnotationFactory * | getDataAnnotationFactory () |
Get data GL annotation factory for annotations hosted by plugin. | |
virtual std::string | pluginName () const |
Return the name of the plugin. | |
virtual std::vector< WorkspaceConversionFunction > | getWorkspaceConversionFunctions () |
Return a list of workspace conversion functions and the corresponding workspace versions they apply to. | |
virtual void | setApplicationController (ApplicationController &) |
Gives the plugin access to the application controller. | |
virtual ImFusionPlugin::VersionInfo | version () const |
Return version. | |
|
pure virtual |
Get algorithm factory for algorithms hosted by plugin.
Implemented in CTPlugin, DicomGuiPlugin, DicomPlugin, GraphPlugin, ImageMathPlugin, MLPlugin, NavigationPlugin, PythonPlugin, RegPlugin, RoboticsPlugin, SegPlugin, SpinePlugin, StreamPlugin, LiveUSPlugin, USPlugin, and VisionPlugin.
|
pure virtual |
Get algorithm controller factory for algorithms hosted by plugin.
Implemented in CTPlugin, DicomGuiPlugin, DicomPlugin, GraphPlugin, ImageMathPlugin, MLPlugin, NavigationPlugin, PythonPlugin, RegPlugin, RoboticsPlugin, SegPlugin, SpinePlugin, StreamPlugin, LiveUSPlugin, USPlugin, and VisionPlugin.
|
inlinevirtual |
Get data GL annotation factory for annotations hosted by plugin.
Reimplemented in CTPlugin, DicomPlugin, GraphPlugin, MLPlugin, SpinePlugin, StreamPlugin, and VisionPlugin.
|
inlinevirtual |
Return the name of the plugin.
Reimplemented in CTPlugin, DicomGuiPlugin, DicomPlugin, GraphPlugin, ImageMathPlugin, MLPlugin, NavigationPlugin, PythonPlugin, RegPlugin, RoboticsPlugin, SegPlugin, SpinePlugin, StreamPlugin, LiveUSPlugin, USPlugin, and VisionPlugin.
|
inlinevirtual |
Gives the plugin access to the application controller.
Plugins should not rely on this method being called in all setups.
Reimplemented in PythonPlugin.