VTK  9.4.20241218
vtkVRMLExporter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
37#ifndef vtkVRMLExporter_h
38#define vtkVRMLExporter_h
39
40#include "vtkExporter.h"
41#include "vtkIOExportModule.h" // For export macro
42
43VTK_ABI_NAMESPACE_BEGIN
44class vtkLight;
45class vtkActor;
46class vtkPoints;
47class vtkDataArray;
49class vtkPolyData;
50class vtkPointData;
51
52class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
66
68
71 vtkSetMacro(Speed, double);
72 vtkGetMacro(Speed, double);
74
79 void SetFilePointer(FILE*);
80
81protected:
83 ~vtkVRMLExporter() override;
84
85 void WriteData() override;
86 void WriteALight(vtkLight* aLight, FILE* fp);
87 void WriteAnActor(vtkActor* anActor, FILE* fp);
88 void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
89 vtkUnsignedCharArray* colors, FILE* fp);
90 void WriteShapeBegin(vtkActor* actor, FILE* fileP, vtkPolyData* polyData, vtkPointData* pntData,
92 void WriteShapeEnd(FILE* fileP);
93 char* FileName;
95 double Speed;
96
97private:
98 vtkVRMLExporter(const vtkVRMLExporter&) = delete;
99 void operator=(const vtkVRMLExporter&) = delete;
100};
101
102VTK_ABI_NAMESPACE_END
103#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
abstract superclass for arrays of numeric data
abstract class to write a scene to a file
Definition vtkExporter.h:37
a simple class to control print indentation
Definition vtkIndent.h:108
a virtual light for 3D rendering
Definition vtkLight.h:159
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:139
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