VTK
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 =========================================================================*/
27 #ifndef vtkVRMLExporter_h
28 #define vtkVRMLExporter_h
29 
30 #include "vtkIOExportModule.h" // For export macro
31 #include "vtkExporter.h"
32 
33 class vtkLight;
34 class vtkActor;
35 class vtkPoints;
36 class vtkDataArray;
38 class vtkPolyData;
39 class vtkPointData;
40 
41 class VTKIOEXPORT_EXPORT vtkVRMLExporter : public vtkExporter
42 {
43 public:
44  static vtkVRMLExporter *New();
46  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
47 
49 
52  vtkSetStringMacro(FileName);
53  vtkGetStringMacro(FileName);
55 
57 
60  vtkSetMacro(Speed,double);
61  vtkGetMacro(Speed,double);
63 
68  void SetFilePointer(FILE *);
69 
70 protected:
72  ~vtkVRMLExporter() VTK_OVERRIDE;
73 
74  void WriteData() VTK_OVERRIDE;
75  void WriteALight(vtkLight *aLight, FILE *fp);
76  void WriteAnActor(vtkActor *anActor, FILE *fp);
77  void WritePointData(vtkPoints *points, vtkDataArray *normals,
78  vtkDataArray *tcoords, vtkUnsignedCharArray *colors,
79  FILE *fp);
80  void WriteShapeBegin(vtkActor* actor, FILE *fileP,
81  vtkPolyData *polyData,vtkPointData *pntData,
83  void WriteShapeEnd( FILE *fileP );
84  char *FileName;
85  FILE *FilePointer;
86  double Speed;
87 private:
88  vtkVRMLExporter(const vtkVRMLExporter&) VTK_DELETE_FUNCTION;
89  void operator=(const vtkVRMLExporter&) VTK_DELETE_FUNCTION;
90 };
91 
92 #endif
93 
abstract class to write a scene to a file
Definition: vtkExporter.h:46
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
represent and manipulate point attribute data
Definition: vtkPointData.h:31
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual light for 3D rendering
Definition: vtkLight.h:55
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
dynamic, self-adjusting array of unsigned char
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
export a scene into VRML 2.0 format.
represent and manipulate 3D points
Definition: vtkPoints.h:33