VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkX3DExporter Class Reference

create an x3d file More...

#include <vtkX3DExporter.h>

Inheritance diagram for vtkX3DExporter:
Inheritance graph
[legend]
Collaboration diagram for vtkX3DExporter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkExporter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkX3DExporterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
char * RegisterAndGetOutputString ()
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetSpeed (double)
virtual double GetSpeed ()
virtual void SetBinary (int)
virtual void BinaryOn ()
virtual void BinaryOff ()
virtual int GetBinary ()
virtual void SetFastest (int)
virtual void FastestOn ()
virtual void FastestOff ()
virtual int GetFastest ()
virtual void SetWriteToOutputString (int)
virtual int GetWriteToOutputString ()
virtual void WriteToOutputStringOn ()
virtual void WriteToOutputStringOff ()
virtual int GetOutputStringLength ()
virtual char * GetOutputString ()
unsigned char * GetBinaryOutputString ()

Static Public Member Functions

static vtkX3DExporterNew ()
static int IsTypeOf (const char *type)
static vtkX3DExporterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkX3DExporter ()
 ~vtkX3DExporter ()
void WriteData ()
void WriteALight (vtkLight *aLight, vtkX3DExporterWriter *writer)
void WriteAnActor (vtkActor *anActor, vtkX3DExporterWriter *writer, int index)
void WritePointData (vtkPoints *points, vtkDataArray *normals, vtkDataArray *tcoords, vtkUnsignedCharArray *colors, vtkX3DExporterWriter *writer, int index)
void WriteATextActor2D (vtkActor2D *anTextActor2D, vtkX3DExporterWriter *writer)
void WriteATexture (vtkActor *anActor, vtkX3DExporterWriter *writer)
void WriteAnAppearance (vtkActor *anActor, bool writeEmissiveColor, vtkX3DExporterWriter *writer)
int HasHeadLight (vtkRenderer *ren)

Protected Attributes

int WriteToOutputString
char * OutputString
int OutputStringLength
char * FileName
double Speed
int Binary
int Fastest

Detailed Description

create an x3d file

vtkX3DExporter is a render window exporter which writes out the renderered scene into an X3D file. X3D is an XML-based format for representation 3D scenes (similar to VRML). Check out http://www.web3d.org/x3d/ for more details.

Thanks:
X3DExporter is contributed by Christophe Mouton at EDF.
Tests:
vtkX3DExporter (Tests)

Definition at line 44 of file vtkX3DExporter.h.


Member Typedef Documentation

Reimplemented from vtkExporter.

Definition at line 48 of file vtkX3DExporter.h.


Constructor & Destructor Documentation


Member Function Documentation

static vtkX3DExporter* vtkX3DExporter::New ( ) [static]

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

Reimplemented from vtkObject.

static int vtkX3DExporter::IsTypeOf ( const char *  name) [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 vtkExporter.

virtual int vtkX3DExporter::IsA ( const char *  name) [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 vtkExporter.

Reimplemented from vtkExporter.

virtual vtkObjectBase* vtkX3DExporter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkExporter.

Reimplemented from vtkExporter.

void vtkX3DExporter::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 vtkExporter.

virtual void vtkX3DExporter::SetFileName ( const char *  ) [virtual]

Set/Get the output file name.

virtual char* vtkX3DExporter::GetFileName ( ) [virtual]

Set/Get the output file name.

virtual void vtkX3DExporter::SetSpeed ( double  ) [virtual]

Specify the Speed of navigation. Default is 4.

virtual double vtkX3DExporter::GetSpeed ( ) [virtual]

Specify the Speed of navigation. Default is 4.

virtual void vtkX3DExporter::SetBinary ( int  ) [virtual]

Turn on binary mode

virtual void vtkX3DExporter::BinaryOn ( ) [virtual]

Turn on binary mode

virtual void vtkX3DExporter::BinaryOff ( ) [virtual]

Turn on binary mode

virtual int vtkX3DExporter::GetBinary ( ) [virtual]

Turn on binary mode

virtual void vtkX3DExporter::SetFastest ( int  ) [virtual]

In binary mode use fastest instead of best compression

virtual void vtkX3DExporter::FastestOn ( ) [virtual]

In binary mode use fastest instead of best compression

virtual void vtkX3DExporter::FastestOff ( ) [virtual]

In binary mode use fastest instead of best compression

virtual int vtkX3DExporter::GetFastest ( ) [virtual]

In binary mode use fastest instead of best compression

virtual void vtkX3DExporter::SetWriteToOutputString ( int  ) [virtual]

Enable writing to an OutputString instead of the default, a file.

Enable writing to an OutputString instead of the default, a file.

virtual void vtkX3DExporter::WriteToOutputStringOn ( ) [virtual]

Enable writing to an OutputString instead of the default, a file.

virtual void vtkX3DExporter::WriteToOutputStringOff ( ) [virtual]

Enable writing to an OutputString instead of the default, a file.

When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...

virtual char* vtkX3DExporter::GetOutputString ( ) [virtual]

When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...

unsigned char* vtkX3DExporter::GetBinaryOutputString ( ) [inline]

When WriteToOutputString in on, then a string is allocated, written to, and can be retrieved with these methods. The string is deleted during the next call to write ...

Definition at line 90 of file vtkX3DExporter.h.

This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible for deleting the string. I am not sure what the name should be, so it may change in the future.

void vtkX3DExporter::WriteData ( ) [protected, virtual]

Write data to output.

Implements vtkExporter.

void vtkX3DExporter::WriteALight ( vtkLight aLight,
vtkX3DExporterWriter writer 
) [protected]
void vtkX3DExporter::WriteAnActor ( vtkActor anActor,
vtkX3DExporterWriter writer,
int  index 
) [protected]
void vtkX3DExporter::WritePointData ( vtkPoints points,
vtkDataArray normals,
vtkDataArray tcoords,
vtkUnsignedCharArray colors,
vtkX3DExporterWriter writer,
int  index 
) [protected]
void vtkX3DExporter::WriteATextActor2D ( vtkActor2D anTextActor2D,
vtkX3DExporterWriter writer 
) [protected]
void vtkX3DExporter::WriteATexture ( vtkActor anActor,
vtkX3DExporterWriter writer 
) [protected]
void vtkX3DExporter::WriteAnAppearance ( vtkActor anActor,
bool  writeEmissiveColor,
vtkX3DExporterWriter writer 
) [protected]

Member Data Documentation

Definition at line 106 of file vtkX3DExporter.h.

char* vtkX3DExporter::OutputString [protected]

Definition at line 107 of file vtkX3DExporter.h.

Definition at line 108 of file vtkX3DExporter.h.

char* vtkX3DExporter::FileName [protected]

Definition at line 124 of file vtkX3DExporter.h.

Definition at line 125 of file vtkX3DExporter.h.

Definition at line 126 of file vtkX3DExporter.h.

Definition at line 127 of file vtkX3DExporter.h.


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