Computer Assited Medical Intervention Tool Kit  version 4.0
Public Member Functions | Protected Member Functions | List of all members
VRMLComponentExtension Class Reference

This VRML Component allows you to manipulate VRML files (unstructured grid and polydata files). More...

#include <VRMLComponentExtension.h>

Inherits camitk::MeshComponentExtension.

Public Member Functions

virtual QString getDescription () const
 get the plugin description (can be html) 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
 get the plugin name More...
 
virtual camitk::Componentopen (const QString &) throw (camitk::AbortException)
 get a new instance from data stored in a file (this is the most important method to redefine in your subclass) More...
 
virtual bool save (camitk::Component *) const
 save the given MeshComponent to VRML (does not have to be top-level). More...
 
 VRMLComponentExtension ()
 the constructor (do nothing really) More...
 
- Public Member Functions inherited from camitk::ComponentExtension
virtual ~ComponentExtension ()
 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 ~VRMLComponentExtension ()
 the destructor More...
 
- Protected Member Functions inherited from camitk::MeshComponentExtension
 MeshComponentExtension ()
 Constructor protected because the class is virtual. More...
 
virtual ~MeshComponentExtension ()
 the destructor More...
 
- Protected Member Functions inherited from camitk::ComponentExtension
 ComponentExtension ()
 protected constructor, More...
 

Detailed Description

This VRML Component allows you to manipulate VRML files (unstructured grid and polydata files).

This component shows:

Constructor & Destructor Documentation

◆ VRMLComponentExtension()

VRMLComponentExtension::VRMLComponentExtension ( )
inline

the constructor (do nothing really)

References getDescription(), getFileExtensions(), getName(), open(), and save().

◆ ~VRMLComponentExtension()

virtual VRMLComponentExtension::~VRMLComponentExtension ( )
inlineprotectedvirtual

the destructor

Member Function Documentation

◆ getDescription()

QString VRMLComponentExtension::getDescription ( ) const
virtual

get the plugin description (can be html)

Reimplemented from camitk::MeshComponentExtension.

Referenced by VRMLComponentExtension().

◆ getFileExtensions()

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

Referenced by VRMLComponentExtension().

◆ getName()

QString VRMLComponentExtension::getName ( ) const
virtual

get the plugin name

Reimplemented from camitk::MeshComponentExtension.

Referenced by VRMLComponentExtension().

◆ open()

Component * VRMLComponentExtension::open ( const QString &  fileName)
throw (camitk::AbortException
)
virtual

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

Implements camitk::MeshComponentExtension.

Referenced by VRMLComponentExtension().

◆ save()

bool VRMLComponentExtension::save ( camitk::Component component) const
virtual

save the given MeshComponent to VRML (does not have to be top-level).

Returns
false if the operation was not performed properly or not performed at all.

Reimplemented from camitk::ComponentExtension.

References camitk::InteractiveViewer::get3DViewer(), camitk::Component::getFileName(), and camitk::InterfaceGeometry::getPointSet().

Referenced by VRMLComponentExtension().


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