Computer Assisted Medical Intervention Tool Kit  version 5.2
camitk::MeshComponentExtension Class Referenceabstract

Abstract class created to support export file formats for MeshComponent Any data component plugin creating a MeshComponent should inherit from this class. More...

#include <MeshComponentExtension.h>

+ Inheritance diagram for camitk::MeshComponentExtension:
+ Collaboration diagram for camitk::MeshComponentExtension:

Public Member Functions

QString getDescription () const override
 get the plugin description (can be html) More...
 
QString getName () const override
 get the plugin name More...
 
Componentopen (const QString &) override=0
 get a new instance from data stored in a file This method may throw an AbortException if a problem occurs. More...
 
- Public Member Functions inherited from camitk::ComponentExtension
 ~ComponentExtension () override=default
 protected destructor, More...
 
virtual QStringList getFileExtensions () const =0
 get the list of managed extensions (each file with an extension in the list can be loaded by this Component) 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...
 
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

 MeshComponentExtension ()
 Constructor protected because the class is virtual. More...
 
 ~MeshComponentExtension ()=default
 the destructor More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Detailed Description

Abstract class created to support export file formats for MeshComponent Any data component plugin creating a MeshComponent should inherit from this class.

Constructor & Destructor Documentation

◆ MeshComponentExtension()

camitk::MeshComponentExtension::MeshComponentExtension ( )
protected

Constructor protected because the class is virtual.

◆ ~MeshComponentExtension()

camitk::MeshComponentExtension::~MeshComponentExtension ( )
protecteddefault

the destructor

Member Function Documentation

◆ getDescription()

QString camitk::MeshComponentExtension::getDescription ( ) const
overridevirtual

◆ getName()

QString camitk::MeshComponentExtension::getName ( ) const
overridevirtual

◆ open()

Component* camitk::MeshComponentExtension::open ( const QString &  )
overridepure virtual

get a new instance from data stored in a file This method may throw an AbortException if a problem occurs.

Implements camitk::ComponentExtension.

Implemented in VtkMeshComponentExtension, VRMLComponentExtension, StlExtension, OffExtension, ObjExtension, MshExtension, and PMLComponentExtension.


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