VTK: IO/Export/vtkIVExporter.h Source File

| VTK 9.3.1

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