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

DICOM image Component manager. More...

#include <DicomComponentExtension.h>

Inherits camitk::ComponentExtension.

Public Member Functions

 DicomComponentExtension ()
 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 &)
 Open a single .dcm image or a directory containing files to be read This method may throw an AbortException if a problem occurs. 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...
 
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 ~DicomComponentExtension ()=default
 Destructor. More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Private Attributes

DicomDialogdialog
 The dialog that asks the user which dicom image files he wishes to open. More...
 
camitk::ComponentlastOpenedComponent
 Last opened component. More...
 
QList< DicomDialogEntry * > serieDialogEntries
 The series dialog entries representation in the VIEW. More...
 
QList< DicomSerie * > serieParsed
 The different Dicom SERIES parsed. More...
 

Detailed Description

DICOM image Component manager.

Note
This Component requires the GDCM library in order to work correctly.
This class represents the controller (in the MVP design pattern) of the DICOM Component

Constructor & Destructor Documentation

◆ DicomComponentExtension()

DicomComponentExtension::DicomComponentExtension ( )
inline

Constructor.

◆ ~DicomComponentExtension()

virtual DicomComponentExtension::~DicomComponentExtension ( )
protectedvirtualdefault

Destructor.

Member Function Documentation

◆ getDescription()

virtual QString DicomComponentExtension::getDescription ( ) const
inlinevirtual

Method returning the component extension descrption.

Implements camitk::ComponentExtension.

◆ getFileExtensions()

QStringList DicomComponentExtension::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.

◆ getName()

virtual QString DicomComponentExtension::getName ( ) const
inlinevirtual

Method returning the component extension name.

Implements camitk::ComponentExtension.

◆ hasDataDirectory()

bool DicomComponentExtension::hasDataDirectory ( ) const
virtual

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

Reimplemented from camitk::ComponentExtension.

◆ open()

Component * DicomComponentExtension::open ( const QString &  path)
virtual

◆ save()

bool DicomComponentExtension::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.

Member Data Documentation

◆ dialog

DicomDialog* DicomComponentExtension::dialog
private

The dialog that asks the user which dicom image files he wishes to open.

◆ lastOpenedComponent

camitk::Component* DicomComponentExtension::lastOpenedComponent
private

Last opened component.

When opening the directory, create 1 component per files Return at least one for the application to know it manages to open the files

◆ serieDialogEntries

QList<DicomDialogEntry*> DicomComponentExtension::serieDialogEntries
private

The series dialog entries representation in the VIEW.

◆ serieParsed

QList<DicomSerie*> DicomComponentExtension::serieParsed
private

The different Dicom SERIES parsed.


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