![]() |
Computer Assited Medical Intervention Tool Kit
version 3.4
|
This class describes what is a generic Image Acquisition Component extension. More...
#include <ImageAcquisitionComponentExtension.h>
Inheritance diagram for camitk::ImageAcquisitionComponentExtension:Public Member Functions | |
| virtual ImageAcquisitionComponent * | getInstance (Component *parent, QString name)=0 |
| method to redefine in children classes to create an concrete instance of an ImageAcquisitionComponent More... | |
| ImageAcquisitionComponentExtension () | |
| constructor More... | |
Public Member Functions inherited from camitk::ComponentExtension | |
| virtual | ~ComponentExtension () |
| protected destructor, More... | |
| virtual QString | getName () const =0 |
| virtual QString | getDescription () const =0 |
| get the plugin description More... | |
| virtual QStringList | getFileExtensions () const =0 |
| get the list of managed extensions (each file with an extension in the list can be loaded by this Component) More... | |
| virtual Component * | open (const QString &)=0 throw (AbortException) |
| get a new instance from data stored in a file (this is the most important method to redefine in your subclass) More... | |
| virtual bool | save (Component *component) const |
| save a given Component (does not have to be top-level) into one of the currently managed format (check the component QFileInfo(component->getFileName()).completeSuffix(). More... | |
| virtual bool | hasDataDirectory () const |
| return true if this component manages directory instead of individual files (e.g. Dicom series are stored in directories, not files) More... | |
| QString | getLocation () const |
| get the file path (location of the .dll/.so/.dylib) of this plugin More... | |
| void | setLocation (const QString loc) |
| set the file path (once loaded as a dynamic library) More... | |
| void | initResources () |
| Load, for the selected langage (asked to the Application), the associated .qm file. More... | |
Static Public Member Functions | |
| static QStringList | getImagerList () |
| static method to retrieve all classes that inherit from an ImageAcquisitionComponent More... | |
| static ImageAcquisitionComponent * | getInstance (QString imagerName, Component *parent, QString name) |
| static method to create a generic instance of ImageAcquisitionComponent (such as a factory method) More... | |
Protected Member Functions | |
| virtual | ~ImageAcquisitionComponentExtension () |
| destructor More... | |
Protected Member Functions inherited from camitk::ComponentExtension | |
| ComponentExtension () | |
| protected constructor, More... | |
This class describes what is a generic Image Acquisition Component extension.
To add a ImageAcquisitionComponentExtension write a new class that inherits from this class. Don't forget to add the dependency to the library in your CmakeLists (imageacquisitioninterface)
This class derives from ComponentExtension and that's why children class of ImageAcquisitionComponentExtension have to describe methods from Component Extension and this one.
The following methods HAVE to be redefined in your subclass:
The following methods can be redefined (inherited from Component Extension):
| camitk::ImageAcquisitionComponentExtension::ImageAcquisitionComponentExtension | ( | ) |
constructor
|
inlineprotectedvirtual |
destructor
|
static |
static method to retrieve all classes that inherit from an ImageAcquisitionComponent
References camitk::ComponentExtension::getName().
|
static |
static method to create a generic instance of ImageAcquisitionComponent (such as a factory method)
References getInstance().
Referenced by getInstance().
|
pure virtual |
method to redefine in children classes to create an concrete instance of an ImageAcquisitionComponent
1.8.8