Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

vtkVRMLImporter Class Reference

imports VRML 2.0 files. More...

#include <vtkVRMLImporter.h>

Inheritance diagram for vtkVRMLImporter:

Inheritance graph
[legend]
Collaboration diagram for vtkVRMLImporter:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkObjectGetVRMLDEFObject (const char *name)
void enterNode (const char *)
void exitNode ()
void enterField (const char *)
void exitField ()
void useNode (const char *)

Static Public Methods

vtkVRMLImporter * New ()
int IsTypeOf (const char *type)
vtkVRMLImporter * SafeDownCast (vtkObject *o)

Protected Methods

 vtkVRMLImporter ()
 ~vtkVRMLImporter ()
 vtkVRMLImporter (const vtkVRMLImporter &)
void operator= (const vtkVRMLImporter &)
int ImportBegin ()
void ImportActors (vtkRenderer *)
void ImportCameras (vtkRenderer *)
void ImportLights (vtkRenderer *)
void ImportProperties (vtkRenderer *)

Detailed Description

imports VRML 2.0 files.

Date:
2000/12/10 20:08:27
Revision:
1.6
Thanks:
Tom Citriniti who implemented and contributed this class
vtkVRMLImporter imports VRML 2.0 files into vtk.

Warning:
These nodes are currently supported: Appearance IndexedFaceSet Box IndexedLineSet Color Material Cone Shape Coordinate Sphere Cylinder Transform DirectionalLight
Warning:
As you can see this implementation focuses on getting the geometry translated. The routes and scripting nodes are ignored since they deal with directly accessing a nodes internal structure based on the VRML spec. Since this is a translation the internal data structures differ greatly from the VRML spec and the External Authoring Interface (see the VRML spec). The DEF/USE mechanism does allow the Vtk user to extract objects from the scene and directly manipulate them using the native language (Tcl, Python, Java, or whatever language Vtk is wrapped in). This, in a way, removes the need for the route and script mechanism (not completely though).
See also:
vtkImporter
Examples:
vtkVRMLImporter (examples)

Definition at line 92 of file vtkVRMLImporter.h.


Constructor & Destructor Documentation

vtkVRMLImporter::vtkVRMLImporter   [protected]
 

vtkVRMLImporter::~vtkVRMLImporter   [protected]
 

vtkVRMLImporter::vtkVRMLImporter const vtkVRMLImporter &    [inline, protected]
 

Definition at line 117 of file vtkVRMLImporter.h.


Member Function Documentation

vtkVRMLImporter* vtkVRMLImporter::New   [inline, static]
 

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

Definition at line 95 of file vtkVRMLImporter.h.

virtual const char* vtkVRMLImporter::GetClassName   [virtual]
 

Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImporter.

int vtkVRMLImporter::IsTypeOf const char *    type [static]
 

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImporter.

virtual int vtkVRMLImporter::IsA const char *    type [virtual]
 

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImporter.

vtkVRMLImporter* vtkVRMLImporter::SafeDownCast vtkObject   o [static]
 

Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkImporter.

void vtkVRMLImporter::PrintSelf ostream &    os,
vtkIndent    indent
[virtual]
 

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkImporter.

vtkObject* vtkVRMLImporter::GetVRMLDEFObject const char *    name
 

In the VRML spec you can DEF and USE nodes (name them), This routine will return the associated VTK object which was created as a result of the DEF mechanism Send in the name from the VRML file, get the VTK object. You will have to check and correctly cast the object since this only returns vtkObjects.

void vtkVRMLImporter::enterNode const char *   
 

Needed by the yacc/lex grammar used

void vtkVRMLImporter::exitNode  
 

void vtkVRMLImporter::enterField const char *   
 

void vtkVRMLImporter::exitField  
 

void vtkVRMLImporter::useNode const char *   
 

void vtkVRMLImporter::operator= const vtkVRMLImporter &    [inline, protected]
 

Definition at line 118 of file vtkVRMLImporter.h.

int vtkVRMLImporter::ImportBegin   [protected, virtual]
 

Reimplemented from vtkImporter.

void vtkVRMLImporter::ImportActors vtkRenderer   [inline, protected]
 

Definition at line 121 of file vtkVRMLImporter.h.

void vtkVRMLImporter::ImportCameras vtkRenderer   [inline, protected]
 

Definition at line 122 of file vtkVRMLImporter.h.

void vtkVRMLImporter::ImportLights vtkRenderer   [inline, protected]
 

Definition at line 123 of file vtkVRMLImporter.h.

void vtkVRMLImporter::ImportProperties vtkRenderer   [inline, protected]
 

Definition at line 124 of file vtkVRMLImporter.h.


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 13:02:42 2001 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001