Computer Assisted Medical Intervention Tool Kit  version 5.2
StlExtension Class Reference

Manage the STL extension. More...

#include <StlExtension.h>

+ Inheritance diagram for StlExtension:
+ Collaboration diagram for StlExtension:

Public Member Functions

virtual QString getDescription () const override
 Method returning the component extension description. More...
 
virtual QStringList getFileExtensions () const override
 Get the list of managed extensions. More...
 
virtual QString getName () const override
 Method returning the component extension name. More...
 
camitk::Componentopen (const QString &) override
 Get a new instance from data stored in a file. More...
 
bool save (camitk::Component *component) const override
 Save a given Component (does not have to be top-level) into one of the currently managed format. More...
 
 StlExtension ()
 Constructor. More...
 
- Public Member Functions inherited from camitk::ComponentExtension
 ~ComponentExtension () override=default
 protected destructor, 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

virtual ~StlExtension ()=default
 Destructor. More...
 
- Protected Member Functions inherited from camitk::MeshComponentExtension
 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

Manage the STL extension.

Exporting to STL is supported very simply thanks to vtkSTLWriter.

Constructor & Destructor Documentation

◆ StlExtension()

StlExtension::StlExtension ( )
inline

Constructor.

◆ ~StlExtension()

virtual StlExtension::~StlExtension ( )
protectedvirtualdefault

Destructor.

Member Function Documentation

◆ getDescription()

QString StlExtension::getDescription ( ) const
overridevirtual

Method returning the component extension description.

Reimplemented from camitk::MeshComponentExtension.

◆ getFileExtensions()

QStringList StlExtension::getFileExtensions ( ) const
overridevirtual

Get the list of managed extensions.

Implements camitk::ComponentExtension.

◆ getName()

QString StlExtension::getName ( ) const
overridevirtual

Method returning the component extension name.

Reimplemented from camitk::MeshComponentExtension.

◆ open()

Component * StlExtension::open ( const QString &  fileName)
overridevirtual

Get a new instance from data stored in a file.

This method may throw an AbortException if a problem occurs.

Implements camitk::MeshComponentExtension.

◆ save()

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

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.

References camitk::Component::getDataPort, camitk::Component::getFileName(), and camitk::Component::refresh().

+ Here is the call graph for this function:

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