VTK
|
create an x3d file More...
#include <vtkX3DExporter.h>
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.
Definition at line 44 of file vtkX3DExporter.h.
Reimplemented from vtkExporter.
Definition at line 48 of file vtkX3DExporter.h.
vtkX3DExporter::vtkX3DExporter | ( | ) | [protected] |
vtkX3DExporter::~vtkX3DExporter | ( | ) | [protected] |
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.
static vtkX3DExporter* vtkX3DExporter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkExporter.
virtual vtkObjectBase* vtkX3DExporter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkExporter.
vtkX3DExporter* vtkX3DExporter::NewInstance | ( | ) | const |
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.
virtual int vtkX3DExporter::GetWriteToOutputString | ( | ) | [virtual] |
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.
virtual int vtkX3DExporter::GetOutputStringLength | ( | ) | [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 ...
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] |
int vtkX3DExporter::HasHeadLight | ( | vtkRenderer * | ren | ) | [protected] |
int vtkX3DExporter::WriteToOutputString [protected] |
Definition at line 106 of file vtkX3DExporter.h.
char* vtkX3DExporter::OutputString [protected] |
Definition at line 107 of file vtkX3DExporter.h.
int vtkX3DExporter::OutputStringLength [protected] |
Definition at line 108 of file vtkX3DExporter.h.
char* vtkX3DExporter::FileName [protected] |
Definition at line 124 of file vtkX3DExporter.h.
double vtkX3DExporter::Speed [protected] |
Definition at line 125 of file vtkX3DExporter.h.
int vtkX3DExporter::Binary [protected] |
Definition at line 126 of file vtkX3DExporter.h.
int vtkX3DExporter::Fastest [protected] |
Definition at line 127 of file vtkX3DExporter.h.