VTK  9.2.6
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=========================================================================*/
39#ifndef vtkVRMLExporter_h
40#define vtkVRMLExporter_h
41
42#include "vtkExporter.h"
43#include "vtkIOExportModule.h" // For export macro
44
45class vtkLight;
46class vtkActor;
47class vtkPoints;
48class vtkDataArray;
50class vtkPolyData;
51class vtkPointData;
52
53class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
54{
55public:
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
67
69
72 vtkSetMacro(Speed, double);
73 vtkGetMacro(Speed, double);
75
80 void SetFilePointer(FILE*);
81
82protected:
84 ~vtkVRMLExporter() override;
85
86 void WriteData() override;
87 void WriteALight(vtkLight* aLight, FILE* fp);
88 void WriteAnActor(vtkActor* anActor, FILE* fp);
89 void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
90 vtkUnsignedCharArray* colors, FILE* fp);
91 void WriteShapeBegin(vtkActor* actor, FILE* fileP, vtkPolyData* polyData, vtkPointData* pntData,
93 void WriteShapeEnd(FILE* fileP);
94 char* FileName;
96 double Speed;
97
98private:
99 vtkVRMLExporter(const vtkVRMLExporter&) = delete;
100 void operator=(const vtkVRMLExporter&) = delete;
101};
102
103#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:61
abstract superclass for arrays of numeric data
abstract class to write a scene to a file
Definition vtkExporter.h:48
a simple class to control print indentation
Definition vtkIndent.h:49
a virtual light for 3D rendering
Definition vtkLight.h:69
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:49
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of unsigned char
export a scene into VRML 2.0 format.
vtkGetFilePathMacro(FileName)
Specify the name of the VRML file to write.
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) override
Methods invoked by print to print information about the object including superclasses.
~vtkVRMLExporter() override
void WriteALight(vtkLight *aLight, FILE *fp)
vtkSetFilePathMacro(FileName)
Specify the name of the VRML file to write.
void WriteShapeEnd(FILE *fileP)
void WriteData() override