Computer Assisted Medical Intervention Tool Kit  version 5.2
ObjExtension Class Reference

This simple OBJ Component allows you to manipulate obj files (alias wavefront). More...

#include <ObjExtension.h>

+ Inheritance diagram for ObjExtension:
+ Collaboration diagram for ObjExtension:

Public Member Functions

virtual QString getDescription () const override
 get the plugin description (can be html) More...
 
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) More...
 
virtual QString getName () const override
 get the plugin name More...
 
 ObjExtension ()
 the constructor (do nothing really) More...
 
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) This method may throw an AbortException if a problem occurs. More...
 
virtual bool save (camitk::Component *component) const override
 save a component as a OBJ file. 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 ~ObjExtension ()=default
 the 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

This simple OBJ Component allows you to manipulate obj files (alias wavefront).

Constructor & Destructor Documentation

◆ ObjExtension()

ObjExtension::ObjExtension ( )
inline

the constructor (do nothing really)

◆ ~ObjExtension()

virtual ObjExtension::~ObjExtension ( )
protectedvirtualdefault

the destructor

Member Function Documentation

◆ getDescription()

QString ObjExtension::getDescription ( ) const
overridevirtual

get the plugin description (can be html)

Reimplemented from camitk::MeshComponentExtension.

◆ getFileExtensions()

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

get the plugin name

Reimplemented from camitk::MeshComponentExtension.

◆ open()

camitk::Component * ObjExtension::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::MeshComponentExtension.

◆ save()

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

save a component as a OBJ file.

Reimplemented from camitk::ComponentExtension.

References CAMITK_ERROR, CAMITK_WARNING, camitk::Component::getFileName(), and camitk::InterfaceGeometry::getPointSet().

+ Here is the call graph for this function:

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