VTK
vtkOOGLExporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOOGLExporter.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 =========================================================================*/
15 
29 #ifndef vtkOOGLExporter_h
30 #define vtkOOGLExporter_h
31 
32 #include "vtkIOExportModule.h" // For export macro
33 #include "vtkExporter.h"
34 
35 class vtkLight;
36 class vtkActor;
37 
39 {
40 public:
41  static vtkOOGLExporter *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetStringMacro(FileName);
48  vtkGetStringMacro(FileName);
50 
51 protected:
53  ~vtkOOGLExporter();
54 
55  void WriteData();
56  void WriteALight(vtkLight *aLight, FILE *fp);
57  void WriteAnActor(vtkActor *anActor, FILE *fp, int count);
58  char *FileName;
59 
60 private:
61  vtkOOGLExporter(const vtkOOGLExporter&); // Not implemented
62  void operator=(const vtkOOGLExporter&); // Not implemented
63 };
64 
65 #endif
66 
abstract class to write a scene to a file
Definition: vtkExporter.h:45
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void WriteData()=0
export a scene into Geomview OOGL format.
#define VTKIOEXPORT_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
a virtual light for 3D rendering
Definition: vtkLight.h:60
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()