![]() |
ImFusion C++ SDK 4.4.0
|
#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.
MyExamplePlugin.h
MyExamplePlugin.cpp
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. | |
| Public Member Functions inherited from ImFusion::ImFusionLibPlugin | |
| virtual void | setApplicationController (ApplicationController &) |
| Gives the plugin access to the application controller. | |
| Public Member Functions inherited from ImFusion::PluginBase | |
| std::string | pluginId () const |
| Convenience function to query the plugin ID of a concrete instance at runtime. | |
| PluginManager::PluginStatus | pluginStatus () const |
| Convenience function to query the plugin status of a concrete instance at runtime. | |
| virtual std::string | author () const =0 |
| Name of the author of the plugin for informative purposes. | |
| virtual std::string | description () const =0 |
| Description of the plugin purpose/functionality for informative purposes. | |
| Utils::Version | version () const |
| Convenience function to query the version number of the plugin for informative purposes. | |
| virtual std::vector< std::string > | dependencies () const |
| Optional list of plugin IDs on which this plugin depends. | |
Additional Inherited Members | |
| Public Types inherited from ImFusion::PluginBase | |
| enum class | Status { Success = 0 , LicenseCheckFailed , Unsupported , UnknownError } |
| Enumeration of status codes for plugin initialization. More... | |
| Protected Member Functions inherited from ImFusion::ImFusionLibPlugin | |
| bool | isLicensed (const std::string &entitlementName) const |
| Helper function to check whether entitlementName is included in the currently activated license. | |
| void | registerFactories (std::unique_ptr< AlgorithmFactory > algorithmFactory, std::unique_ptr< AlgorithmControllerFactory > controllerFactory, std::unique_ptr< DataAnnotationFactory > annotationFactory) |
| Helper function to register the given factories with the FactoryRegistry. | |
| Protected Member Functions inherited from ImFusion::PluginBase | |
| virtual Status | init ()=0 |
| Perform plugin initialization, for instance by populating factories and registering custom types with the host application. | |
|
pure virtual |
Get algorithm factory for algorithms hosted by plugin.
Implemented in ImFusion::Robotics::RoboticsPlugin.
|
pure virtual |
Get algorithm controller factory for algorithms hosted by plugin.
Implemented in ImFusion::Robotics::RoboticsPlugin.
|
inlinevirtual |
Return the name of the plugin.
Reimplemented in ImFusion::Robotics::RoboticsPlugin.