VTK  9.3.20240423
vtkOOGLExporter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
18#ifndef vtkOOGLExporter_h
19#define vtkOOGLExporter_h
20
21#include "vtkExporter.h"
22#include "vtkIOExportModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class vtkLight;
26class vtkActor;
27
28class VTKIOEXPORT_EXPORT vtkOOGLExporter : public vtkExporter
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
42
43protected:
45 ~vtkOOGLExporter() override;
46
47 void WriteData() override;
48 void WriteALight(vtkLight* aLight, FILE* fp);
49 void WriteAnActor(vtkActor* anActor, FILE* fp, int count);
50 char* FileName;
51
52private:
53 vtkOOGLExporter(const vtkOOGLExporter&) = delete;
54 void operator=(const vtkOOGLExporter&) = delete;
55};
56
57VTK_ABI_NAMESPACE_END
58#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
abstract class to write a scene to a file
Definition vtkExporter.h:37
a simple class to control print indentation
Definition vtkIndent.h:108
a virtual light for 3D rendering
Definition vtkLight.h:159
export a scene into Geomview OOGL format.
~vtkOOGLExporter() override
static vtkOOGLExporter * New()
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)
vtkSetFilePathMacro(FileName)
Specify the name of the Geomview file to write.