VTK  9.1.0
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=========================================================================*/
36#ifndef vtkVRMLExporter_h
37#define vtkVRMLExporter_h
38
39#include "vtkExporter.h"
40#include "vtkIOExportModule.h" // For export macro
41
42class vtkLight;
43class vtkActor;
44class vtkPoints;
45class vtkDataArray;
47class vtkPolyData;
48class vtkPointData;
49
50class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
51{
52public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
64
66
69 vtkSetMacro(Speed, double);
70 vtkGetMacro(Speed, double);
72
77 void SetFilePointer(FILE*);
78
79protected:
81 ~vtkVRMLExporter() override;
82
83 void WriteData() override;
84 void WriteALight(vtkLight* aLight, FILE* fp);
85 void WriteAnActor(vtkActor* anActor, FILE* fp);
87 vtkUnsignedCharArray* colors, FILE* fp);
88 void WriteShapeBegin(vtkActor* actor, FILE* fileP, vtkPolyData* polyData, vtkPointData* pntData,
90 void WriteShapeEnd(FILE* fileP);
91 char* FileName;
93 double Speed;
94
95private:
96 vtkVRMLExporter(const vtkVRMLExporter&) = delete;
97 void operator=(const vtkVRMLExporter&) = delete;
98};
99
100#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:55
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:59
abstract class to write a scene to a file
Definition: vtkExporter.h:48
a simple class to control print indentation
Definition: vtkIndent.h:43
a virtual light for 3D rendering
Definition: vtkLight.h:66
represent and manipulate point attribute data
Definition: vtkPointData.h:42
represent and manipulate 3D points
Definition: vtkPoints.h:43
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:95
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
@ points
Definition: vtkX3D.h:452
@ color
Definition: vtkX3D.h:227