Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
ItkImageComponentExtension Class Reference

This ItkImages Component allows you to manipulate several file provided by ITK. More...

#include <ItkImageComponentExtension.h>

Inherits camitk::ImageComponentExtension.

Public Member Functions

virtual QString getDescription () const
 get the plugin description (can be html) More...
 
virtual QStringList getFileExtensions () const
 get the list of managed extensions (each file with an extension in the list can be loaded by this Extension More...
 
virtual QString getName () const
 get the plugin name More...
 
 ItkImageComponentExtension ()
 the constructor (do nothing really) More...
 
virtual camitk::Componentopen (const QString &)
 get a new instance from data stored in a file. More...
 
virtual bool save (camitk::Component *) const
 save a given Component (does not have to be top-level) into one of the currently managed format. More...
 
- Public Member Functions inherited from camitk::ComponentExtension
 ~ComponentExtension () override=default
 protected destructor, 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...
 

Protected Member Functions

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

Static Protected Member Functions

template<class ImageType >
static bool saveImage (camitk::ImageComponent *)
 

Detailed Description

This ItkImages Component allows you to manipulate several file provided by ITK.

Note
This ComponentExtension requires the ITK library in order to work correctly.

Constructor & Destructor Documentation

◆ ItkImageComponentExtension()

ItkImageComponentExtension::ItkImageComponentExtension ( )
inline

the constructor (do nothing really)

References getDescription(), getFileExtensions(), getName(), open(), save(), saveImage(), and ~ItkImageComponentExtension().

◆ ~ItkImageComponentExtension()

virtual ItkImageComponentExtension::~ItkImageComponentExtension ( )
protectedvirtualdefault

the destructor

Referenced by ItkImageComponentExtension().

Member Function Documentation

◆ getDescription()

QString ItkImageComponentExtension::getDescription ( ) const
virtual

get the plugin description (can be html)

Reimplemented from camitk::ImageComponentExtension.

Referenced by ItkImageComponentExtension().

◆ getFileExtensions()

QStringList ItkImageComponentExtension::getFileExtensions ( ) const
virtual

get the list of managed extensions (each file with an extension in the list can be loaded by this Extension

Implements camitk::ComponentExtension.

Referenced by ItkImageComponentExtension().

◆ getName()

QString ItkImageComponentExtension::getName ( ) const
virtual

get the plugin name

Reimplemented from camitk::ImageComponentExtension.

Referenced by ItkImageComponentExtension().

◆ open()

Component * ItkImageComponentExtension::open ( const QString &  fileName)
virtual

get a new instance from data stored in a file.

This method may throw an AbortException if a problem occurs.

Implements camitk::ImageComponentExtension.

References CAMITK_ERROR, and camitk::AbortException::what().

Referenced by ItkImageComponentExtension().

◆ save()

bool ItkImageComponentExtension::save ( camitk::Component c) const
virtual

save a given Component (does not have to be top-level) into one of the currently managed format.

Returns
false if the operation was not performed properly or not performed at all.

Reimplemented from camitk::ComponentExtension.

References camitk::ImageComponent::getImageData().

Referenced by ItkImageComponentExtension().

◆ saveImage()

template<class ImageType >
bool ItkImageComponentExtension::saveImage ( camitk::ImageComponent img)
staticprotected

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