This VRML Component allows you to manipulate VRML files (unstructured grid and polydata files).
More...
#include <VRMLComponentExtension.h>
|
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::Component * | open (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...
|
|
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...
|
|
This VRML Component allows you to manipulate VRML files (unstructured grid and polydata files).
This component shows:
- how to build subcomponents
- how to extend a MeshComponent
- add an save to facility,
- See also
- save()
Thanks to this extension, any mesh component of CamiTK can now be exported to VRML (Although this is not really a good example as VTK does not know how to export a single component to VRML but can only export the whole scene, see save() comment).
VRMLComponentExtension::VRMLComponentExtension |
( |
| ) |
|
|
inline |
the constructor (do nothing really)
virtual VRMLComponentExtension::~VRMLComponentExtension |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual QString VRMLComponentExtension::getDescription |
( |
| ) |
const |
|
virtual |
virtual 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.
virtual QString VRMLComponentExtension::getName |
( |
| ) |
const |
|
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.
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.
The documentation for this class was generated from the following file: