Computer Assited Medical Intervention Tool Kit  version 4.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
DicomItkComponentExtension Class Reference

This allows you to manipulate a limited number of dicom images. More...

#include <DicomItkComponentExtension.h>

Inherits camitk::ImageComponentExtension.

Public Member Functions

 DicomItkComponentExtension ()
 the constructor (do nothicamitk::ng really) More...
 
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...
 
virtual bool hasDataDirectory () const
 this method returns true as DICOM do not use file extension but directory More...
 
virtual camitk::Componentopen (const QString &) throw (camitk::AbortException)
 get a new instance from data stored in a file (this is the most important method to redefine in your subclass) More...
 
- Public Member Functions inherited from camitk::ComponentExtension
virtual ~ComponentExtension ()
 protected destructor, 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...
 
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

bool chooseDicomSeriesIds () throw (camitk::AbortException)
 Shows a dialog to the user to choose which volume should be read. More...
 
bool findAllDicomSeries (const QString &)
 Explores the dicom directory to find all dicom volumes and needed info. More...
 
virtual ~DicomItkComponentExtension ()
 the destructor More...
 
- Protected Member Functions inherited from camitk::ImageComponentExtension
 ImageComponentExtension ()
 Constructor protected because the class is virtual. More...
 
virtual ~ImageComponentExtension ()
 the destructor More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Protected Attributes

std::map< SomeDicomInfo *, FileNamesContainerTypetheSeries
 Map storing series For each series, it contains: More...
 

Private Member Functions

 Q_INTERFACES (camitk::ComponentExtension)
 

Detailed Description

This allows you to manipulate a limited number of dicom images.

Constructor & Destructor Documentation

◆ DicomItkComponentExtension()

DicomItkComponentExtension::DicomItkComponentExtension ( )
inline

the constructor (do nothicamitk::ng really)

References getDescription(), getFileExtensions(), getName(), hasDataDirectory(), and open().

◆ ~DicomItkComponentExtension()

virtual DicomItkComponentExtension::~DicomItkComponentExtension ( )
inlineprotectedvirtual

the destructor

References chooseDicomSeriesIds(), and findAllDicomSeries().

Member Function Documentation

◆ chooseDicomSeriesIds()

bool DicomItkComponentExtension::chooseDicomSeriesIds ( )
throw (camitk::AbortException
)
protected

Shows a dialog to the user to choose which volume should be read.

References CAMITK_INFO, and description.

Referenced by ~DicomItkComponentExtension().

◆ findAllDicomSeries()

bool DicomItkComponentExtension::findAllDicomSeries ( const QString &  directoryName)
protected

◆ getDescription()

QString DicomItkComponentExtension::getDescription ( ) const
virtual

get the plugin description (can be html)

Reimplemented from camitk::ImageComponentExtension.

Referenced by DicomItkComponentExtension().

◆ getFileExtensions()

QStringList DicomItkComponentExtension::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 DicomItkComponentExtension().

◆ getName()

QString DicomItkComponentExtension::getName ( ) const
virtual

get the plugin name

Reimplemented from camitk::ImageComponentExtension.

Referenced by DicomItkComponentExtension().

◆ hasDataDirectory()

bool DicomItkComponentExtension::hasDataDirectory ( ) const
virtual

this method returns true as DICOM do not use file extension but directory

Reimplemented from camitk::ComponentExtension.

Referenced by DicomItkComponentExtension().

◆ open()

Component * DicomItkComponentExtension::open ( const QString &  directoryName)
throw (camitk::AbortException
)
virtual

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

Implements camitk::ImageComponentExtension.

References camitk::AbortException::what().

Referenced by DicomItkComponentExtension().

◆ Q_INTERFACES()

DicomItkComponentExtension::Q_INTERFACES ( camitk::ComponentExtension  )
private

Member Data Documentation

◆ theSeries

std::map<SomeDicomInfo *, FileNamesContainerType> DicomItkComponentExtension::theSeries
protected

Map storing series For each series, it contains:

  • Key: some infos read in the dicom headers (SomeDicomInfo)
  • Data: set of filenames needed to build the 3D Volume

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