VTK  9.4.20241218
vtkIVExporter.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
17#ifndef vtkIVExporter_h
18#define vtkIVExporter_h
19
20#include "vtkExporter.h"
21#include "vtkIOExportModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class vtkLight;
25class vtkActor;
26class vtkPoints;
27class vtkDataArray;
29
30class VTKIOEXPORT_EXPORT vtkIVExporter : public vtkExporter
31{
32public:
33 static vtkIVExporter* New();
34 vtkTypeMacro(vtkIVExporter, vtkExporter);
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
44
45protected:
47 ~vtkIVExporter() override;
48
49 void WriteData() override;
50 void WriteALight(vtkLight* aLight, FILE* fp);
51 void WriteAnActor(vtkActor* anActor, FILE* fp);
52 void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
53 vtkUnsignedCharArray* colors, FILE* fp);
54 char* FileName;
55
56private:
57 vtkIVExporter(const vtkIVExporter&) = delete;
58 void operator=(const vtkIVExporter&) = delete;
59};
60
61VTK_ABI_NAMESPACE_END
62#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
abstract superclass for arrays of numeric data
abstract class to write a scene to a file
Definition vtkExporter.h:37
export a scene into OpenInventor 2.0 format.
~vtkIVExporter() override
void WriteData() override
void WritePointData(vtkPoints *points, vtkDataArray *normals, vtkDataArray *tcoords, vtkUnsignedCharArray *colors, FILE *fp)
void WriteAnActor(vtkActor *anActor, FILE *fp)
void WriteALight(vtkLight *aLight, FILE *fp)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetFilePathMacro(FileName)
Specify the name of the OpenInventor file to write.
vtkGetFilePathMacro(FileName)
Specify the name of the OpenInventor file to write.
static vtkIVExporter * New()
a simple class to control print indentation
Definition vtkIndent.h:108
a virtual light for 3D rendering
Definition vtkLight.h:159
represent and manipulate 3D points
Definition vtkPoints.h:139
dynamic, self-adjusting array of unsigned char