Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
MMLComponentExtension Class Reference

This MML ComponentPlugin allows you to manipulate MML document. More...

#include <MMLComponentExtension.h>

Public Member Functions

virtual QString getDescription () const override
 get the plugin description (can be html)
 
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
 
virtual QString getName () const override
 get the plugin name
 
 MMLComponentExtension ()
 the constructor (do nothing really)
 
virtual camitk::Componentopen (const QString &) override
 get a new instance from data stored in a file (this is the most important method to redefine in your subclass).
 
virtual bool save (camitk::Component *component) const override
 save (only work with mml component)
 
- Public Member Functions inherited from camitk::ComponentExtension
 ~ComponentExtension () override=default
 protected destructor,
 
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)
 
QString getLocation () const
 get the file path (location of the .dll/.so/.dylib) of this plugin
 
void setLocation (const QString loc)
 set the file path (once loaded as a dynamic library)
 
void initResources ()
 Load, for the selected langage (asked to the Application), the associated .qm file.
 

Protected Member Functions

virtual ~MMLComponentExtension ()=default
 the destructor
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor,
 

Detailed Description

This MML ComponentPlugin allows you to manipulate MML document.

see http://www-timc.imag.fr/Aurelien.Deram/ for more information on this type of documents.

Constructor & Destructor Documentation

◆ MMLComponentExtension()

MMLComponentExtension::MMLComponentExtension ( )
inline

the constructor (do nothing really)

◆ ~MMLComponentExtension()

virtual MMLComponentExtension::~MMLComponentExtension ( )
protectedvirtualdefault

the destructor

Member Function Documentation

◆ getDescription()

QString MMLComponentExtension::getDescription ( ) const
overridevirtual

get the plugin description (can be html)

Implements camitk::ComponentExtension.

◆ getFileExtensions()

QStringList MMLComponentExtension::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 MMLComponentExtension::getName ( ) const
overridevirtual

get the plugin name

Implements camitk::ComponentExtension.

◆ open()

camitk::Component * MMLComponentExtension::open ( const QString &  fileName)
overridevirtual

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

This method may throw an AbortException if a problem occurs.

Implements camitk::ComponentExtension.

◆ save()

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

save (only work with mml component)

Reimplemented from camitk::ComponentExtension.

References camitk::ComponentExtension::save(), and MMLComponent::saveMML().


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