Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | List of all members
camitk::ImageComponentExtension Class Reference

Abstract class created to support export file formats for ImageComponent Any data component plugin creating an ImageComponent should inherit from this class. More...

#include <ImageComponentExtension.h>

+ Inheritance diagram for camitk::ImageComponentExtension:

Public Member Functions

virtual QString getDescription () const
 get the plugin description (can be html)
virtual QString getName () const
 get the plugin name
virtual Componentopen (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)
- Public Member Functions inherited from camitk::ComponentExtension
virtual ~ComponentExtension ()
 protected destructor,
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)
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().
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)
QString getLocation () const
 get the file path (location of the .dll/.so/.dylib) of this plugin
void setLocation (const QString loc)
 set the file path (once loaded as a dynamic library)

Protected Member Functions

 ImageComponentExtension ()
 Constructor protected because the class is virtual.
virtual ~ImageComponentExtension ()
 the destructor
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor,

Detailed Description

Abstract class created to support export file formats for ImageComponent Any data component plugin creating an ImageComponent should inherit from this class.

Constructor & Destructor Documentation

camitk::ImageComponentExtension::ImageComponentExtension ( )
protected

Constructor protected because the class is virtual.

virtual camitk::ImageComponentExtension::~ImageComponentExtension ( )
inlineprotectedvirtual

the destructor

Member Function Documentation

QString camitk::ImageComponentExtension::getDescription ( ) const
virtual
QString camitk::ImageComponentExtension::getName ( ) const
virtual
virtual Component* camitk::ImageComponentExtension::open ( const QString &  ) throw (AbortException)
pure virtual

get a new instance from data stored in a file (this is the most important method to redefine in your subclass)

Implements camitk::ComponentExtension.

Implemented in DicomComponentExtension, ItkImageComponentExtension, NiftiImageComponentExtension, and VtkImageComponentExtension.


The documentation for this class was generated from the following files: