Computer Assisted Medical Intervention Tool Kit  version 5.2
VtkImageComponentExtension Class Reference

This vtkImages ComponentExtension allows you to manipulate any files handled by vtk. More...

#include <VtkImageComponentExtension.h>

+ Inheritance diagram for VtkImageComponentExtension:
+ Collaboration diagram for VtkImageComponentExtension:

Public Member Functions

virtual QString getDescription () const override
 get the plugin description (can be html) More...
 
virtual QStringList getFileExtensions () const override
 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 override
 get the plugin name More...
 
virtual camitk::Componentopen (const QString &) override
 get a new instance from data stored in a file. More...
 
virtual bool save (camitk::Component *) const override
 save a given Component (does not have to be top-level) into one of the currently managed format. More...
 
 VtkImageComponentExtension ()
 the constructor (do nothing really) 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 ~VtkImageComponentExtension ()=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...
 

Detailed Description

This vtkImages ComponentExtension allows you to manipulate any files handled by vtk.

Constructor & Destructor Documentation

◆ VtkImageComponentExtension()

VtkImageComponentExtension::VtkImageComponentExtension ( )
inline

the constructor (do nothing really)

◆ ~VtkImageComponentExtension()

virtual VtkImageComponentExtension::~VtkImageComponentExtension ( )
protectedvirtualdefault

the destructor

Member Function Documentation

◆ getDescription()

QString VtkImageComponentExtension::getDescription ( ) const
overridevirtual

get the plugin description (can be html)

Reimplemented from camitk::ImageComponentExtension.

◆ getFileExtensions()

QStringList VtkImageComponentExtension::getFileExtensions ( ) const
overridevirtual

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

Implements camitk::ComponentExtension.

◆ getName()

QString VtkImageComponentExtension::getName ( ) const
overridevirtual

get the plugin name

Reimplemented from camitk::ImageComponentExtension.

◆ open()

Component * VtkImageComponentExtension::open ( const QString &  fileName)
overridevirtual

get a new instance from data stored in a file.

This method may throw an AbortException if a problem occurs.

Implements camitk::ImageComponentExtension.

◆ save()

bool VtkImageComponentExtension::save ( camitk::Component component) const
overridevirtual

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_WARNING, camitk::Component::getFileName(), camitk::ImageComponent::getImageData(), camitk::ImageComponent::getImageDataWithFrameTransform(), camitk::Component::getTransform(), and camitk::Component::getTransformFromWorld().

+ Here is the call graph for this function:

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