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 
27 #ifndef vtkOOGLExporter_h
28 #define vtkOOGLExporter_h
29 
30 #include "vtkIOExportModule.h" // For export macro
31 #include "vtkExporter.h"
32 
33 class vtkLight;
34 class vtkActor;
35 
36 class VTKIOEXPORT_EXPORT vtkOOGLExporter : public vtkExporter
37 {
38 public:
39  static vtkOOGLExporter *New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetStringMacro(FileName);
48  vtkGetStringMacro(FileName);
50 
51 protected:
53  ~vtkOOGLExporter() override;
54 
55  void WriteData() override;
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&) = delete;
62  void operator=(const vtkOOGLExporter&) = delete;
63 };
64 
65 #endif
66 
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
virtual void WriteData()=0
export a scene into Geomview OOGL format.
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual light for 3D rendering
Definition: vtkLight.h:56
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...