27#ifndef COMPONENT_EXTENSION_H
28#define COMPONENT_EXTENSION_H
112 virtual bool save(
Component* component)
const;
121 return dynamicLibraryFileName;
126 dynamicLibraryFileName = loc;
130 void initResources();
#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:120
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:115
~ComponentExtension() override=default
protected destructor,
virtual QString getDescription() const =0
get the plugin description
bool autoload
the autoload state
Definition: ComponentExtension.h:140
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 ...
void setLocation(const QString loc)
set the file path (once loaded as a dynamic library)
Definition: ComponentExtension.h:125
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...
QString dynamicLibraryFileName
the shared lib (.so, .dll or .dylib) used to instantiate the ComponentExtension subclass instance
Definition: ComponentExtension.h:137
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition: sdk/libraries/core/component/Component.h:302
Definition: Action.cpp:35