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=========================================================================*/
29
30#ifndef vtkVRMLExporter_h
31#define vtkVRMLExporter_h
32
33#include "vtkExporter.h"
34#include "vtkIOExportModule.h" // For export macro
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) override;
50
52
58
60
63 vtkSetMacro(Speed, double);
64 vtkGetMacro(Speed, double);
66
71 void SetFilePointer(FILE*);
72
73protected:
75 ~vtkVRMLExporter() override;
76
77 void WriteData() override;
78 void WriteALight(vtkLight* aLight, FILE* fp);
79 void WriteAnActor(vtkActor* anActor, FILE* fp);
80 void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
81 vtkUnsignedCharArray* colors, FILE* fp);
82 void WriteShapeBegin(vtkActor* actor, FILE* fileP, vtkPolyData* polyData, vtkPointData* pntData,
84 void WriteShapeEnd(FILE* fileP);
85 char* FileName;
87 double Speed;
88
89private:
90 vtkVRMLExporter(const vtkVRMLExporter&) = delete;
91 void operator=(const vtkVRMLExporter&) = delete;
92};
93
94#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:52
a simple class to control print indentation
Definition vtkIndent.h:40
a virtual light for 3D rendering
Definition vtkLight.h:60
represent and manipulate point attribute data
represent and manipulate 3D points
Definition vtkPoints.h:40
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:91
dynamic, self-adjusting array of unsigned char
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
#define vtkDataArray