VTK
vtkVRMLExporter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkVRMLExporter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
30#ifndef vtkVRMLExporter_h
31#define vtkVRMLExporter_h
32
33#include "vtkIOExportModule.h" // For export macro
34#include "vtkExporter.h"
35
36class vtkLight;
37class vtkActor;
38class vtkPoints;
39class vtkDataArray;
41class vtkPolyData;
42class vtkPointData;
43
44class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
45{
46public:
49 void PrintSelf(ostream& os, vtkIndent indent);
50
52
55 vtkSetStringMacro(FileName);
58
60
63 vtkSetMacro(Speed,double);
64 vtkGetMacro(Speed,double);
66
71 void SetFilePointer(FILE *);
72
73protected:
76
77 void WriteData();
78 void WriteALight(vtkLight *aLight, FILE *fp);
79 void WriteAnActor(vtkActor *anActor, FILE *fp);
81 vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
82 FILE *fp);
83 void WriteShapeBegin(vtkActor* actor, FILE *fileP,
84 vtkPolyData *polyData,vtkPointData *pntData,
86 void WriteShapeEnd( FILE *fileP );
87 char *FileName;
89 double Speed;
90private:
91 vtkVRMLExporter(const vtkVRMLExporter&) VTK_DELETE_FUNCTION;
92 void operator=(const vtkVRMLExporter&) VTK_DELETE_FUNCTION;
93};
94
95#endif
96
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
abstract class to write a scene to a file
Definition: vtkExporter.h:47
a simple class to control print indentation
Definition: vtkIndent.h:40
a virtual light for 3D rendering
Definition: vtkLight.h:62
represent and manipulate point attribute data
Definition: vtkPointData.h:38
represent and manipulate 3D points
Definition: vtkPoints.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
dynamic, self-adjusting array of unsigned char
export a scene into VRML 2.0 format.
void WriteAnActor(vtkActor *anActor, FILE *fp)
void WriteShapeBegin(vtkActor *actor, FILE *fileP, vtkPolyData *polyData, vtkPointData *pntData, vtkUnsignedCharArray *color)
void SetFilePointer(FILE *)
Set the file pointer to write to.
static vtkVRMLExporter * New()
void WritePointData(vtkPoints *points, vtkDataArray *normals, vtkDataArray *tcoords, vtkUnsignedCharArray *colors, FILE *fp)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void WriteALight(vtkLight *aLight, FILE *fp)
void WriteShapeEnd(FILE *fileP)
@ points
Definition: vtkX3D.h:446
@ color
Definition: vtkX3D.h:221
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.