VTK  9.3.0
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
18#ifndef vtkVRMLExporter_h
19#define vtkVRMLExporter_h
20
21#include "vtkExporter.h"
22#include "vtkIOExportModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkLight;
26class vtkActor;
27class vtkPoints;
28class vtkDataArray;
30class vtkPolyData;
31class vtkPointData;
32
33class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
47
49
52 vtkSetMacro(Speed, double);
53 vtkGetMacro(Speed, double);
55
60 void SetFilePointer(FILE*);
61
62protected:
64 ~vtkVRMLExporter() override;
65
66 void WriteData() override;
67 void WriteALight(vtkLight* aLight, FILE* fp);
68 void WriteAnActor(vtkActor* anActor, FILE* fp);
69 void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
70 vtkUnsignedCharArray* colors, FILE* fp);
71 void WriteShapeBegin(vtkActor* actor, FILE* fileP, vtkPolyData* polyData, vtkPointData* pntData,
73 void WriteShapeEnd(FILE* fileP);
74 char* FileName;
76 double Speed;
77
78private:
79 vtkVRMLExporter(const vtkVRMLExporter&) = delete;
80 void operator=(const vtkVRMLExporter&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
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:29
a virtual light for 3D rendering
Definition vtkLight.h:49
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
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