VTK  9.1.0
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
46#ifndef vtkOOGLExporter_h
47#define vtkOOGLExporter_h
48
49#include "vtkExporter.h"
50#include "vtkIOExportModule.h" // For export macro
51
52class vtkLight;
53class vtkActor;
54
55class VTKIOEXPORT_EXPORT vtkOOGLExporter : public vtkExporter
56{
57public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
63
69
70protected:
72 ~vtkOOGLExporter() override;
73
74 void WriteData() override;
75 void WriteALight(vtkLight* aLight, FILE* fp);
76 void WriteAnActor(vtkActor* anActor, FILE* fp, int count);
77 char* FileName;
78
79private:
80 vtkOOGLExporter(const vtkOOGLExporter&) = delete;
81 void operator=(const vtkOOGLExporter&) = delete;
82};
83
84#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
abstract class to write a scene to a file
Definition: vtkExporter.h:48
a simple class to control print indentation
Definition: vtkIndent.h:113
a virtual light for 3D rendering
Definition: vtkLight.h:166
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.