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

Manager for handling DICOM directories which store DICOM images. More...

#include <DicomTreeComponentExtension.h>

Inherits camitk::ComponentExtension.

Public Member Functions

 DicomTreeComponentExtension ()
 Constructor. More...
 
virtual QString getDescription () const
 Method returning the component extension descrption. 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
 Method returning the component extension name. More...
 
virtual bool hasDataDirectory () const
 this method returns true as this component loads images from a directory (not a single file) More...
 
virtual camitk::Componentopen (const QString &) throw (camitk::AbortException)
 Open a single .dcm image or a directory containing files to be read. 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
virtual ~ComponentExtension ()
 protected destructor, 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 ~DicomTreeComponentExtension ()
 Destructor. More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Private Member Functions

 Q_INTERFACES (camitk::ComponentExtension)
 

Detailed Description

Manager for handling DICOM directories which store DICOM images.

Note
This Component requires the GDCM library in order to work correctly.

Constructor & Destructor Documentation

◆ DicomTreeComponentExtension()

DicomTreeComponentExtension::DicomTreeComponentExtension ( )
inline

Constructor.

◆ ~DicomTreeComponentExtension()

virtual DicomTreeComponentExtension::~DicomTreeComponentExtension ( )
inlineprotectedvirtual

Destructor.

Member Function Documentation

◆ getDescription()

virtual QString DicomTreeComponentExtension::getDescription ( ) const
inlinevirtual

Method returning the component extension descrption.

Implements camitk::ComponentExtension.

References getFileExtensions(), hasDataDirectory(), open(), and save().

◆ getFileExtensions()

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

◆ getName()

virtual QString DicomTreeComponentExtension::getName ( ) const
inlinevirtual

Method returning the component extension name.

Implements camitk::ComponentExtension.

◆ hasDataDirectory()

bool DicomTreeComponentExtension::hasDataDirectory ( ) const
virtual

this method returns true as this component loads images from a directory (not a single file)

Reimplemented from camitk::ComponentExtension.

Referenced by getDescription().

◆ open()

Component * DicomTreeComponentExtension::open ( const QString &  path)
throw (camitk::AbortException
)
virtual

Open a single .dcm image or a directory containing files to be read.

Implements camitk::ComponentExtension.

Referenced by getDescription().

◆ Q_INTERFACES()

DicomTreeComponentExtension::Q_INTERFACES ( camitk::ComponentExtension  )
private

◆ save()

bool DicomTreeComponentExtension::save ( camitk::Component component) 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.

Referenced by getDescription().


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