27 #ifndef COMPONENT_EXTENSION_H
28 #define COMPONENT_EXTENSION_H
110 virtual bool save(
Component* component)
const;
119 return dynamicLibraryFileName;
124 dynamicLibraryFileName = loc;
128 void initResources();
135 QString dynamicLibraryFileName;
#define CAMITK_API
Definition: CamiTKAPI.h:49
A component is something that composed something and could also be a part of something.
Definition: modeling/libraries/pml/Component.h:48
This class describes what is a generic Component extension.
Definition: ComponentExtension.h:60
QString getLocation() const
get the file path (location of the .dll/.so/.dylib) of this plugin
Definition: ComponentExtension.h:118
virtual QString getName() const =0
virtual bool hasDataDirectory() const
return true if this component manages directory instead of individual files (e.g. Dicom series are st...
Definition: ComponentExtension.h:113
~ComponentExtension() override=default
protected destructor,
virtual QString getDescription() const =0
get the plugin description
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition: ComponentExtension.h:123
virtual Component * open(const QString &)=0
get a new instance from data stored in a file (this is the most important method to redefine in your ...
virtual QStringList getFileExtensions() const =0
get the list of managed extensions (each file with an extension in the list can be loaded by this Com...
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:303
Definition: Action.cpp:36