VTK  9.2.6
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 
49 #ifndef vtkOOGLExporter_h
50 #define vtkOOGLExporter_h
51 
52 #include "vtkExporter.h"
53 #include "vtkIOExportModule.h" // For export macro
54 
55 class vtkLight;
56 class vtkActor;
57 
58 class VTKIOEXPORT_EXPORT vtkOOGLExporter : public vtkExporter
59 {
60 public:
61  static vtkOOGLExporter* New();
62  vtkTypeMacro(vtkOOGLExporter, vtkExporter);
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
72 
73 protected:
75  ~vtkOOGLExporter() override;
76 
77  void WriteData() override;
78  void WriteALight(vtkLight* aLight, FILE* fp);
79  void WriteAnActor(vtkActor* anActor, FILE* fp, int count);
80  char* FileName;
81 
82 private:
83  vtkOOGLExporter(const vtkOOGLExporter&) = delete;
84  void operator=(const vtkOOGLExporter&) = delete;
85 };
86 
87 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
abstract class to write a scene to a file
Definition: vtkExporter.h:48
a simple class to control print indentation
Definition: vtkIndent.h:119
a virtual light for 3D rendering
Definition: vtkLight.h:169
export a scene into Geomview OOGL format.
~vtkOOGLExporter() override
vtkGetFilePathMacro(FileName)
Specify the name of the Geomview file to write.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void WriteData() override
void WriteALight(vtkLight *aLight, FILE *fp)
void WriteAnActor(vtkActor *anActor, FILE *fp, int count)
static vtkOOGLExporter * New()
vtkSetFilePathMacro(FileName)
Specify the name of the Geomview file to write.