VTK  9.1.0
vtkIVExporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIVExporter.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 =========================================================================*/
26 #ifndef vtkIVExporter_h
27 #define vtkIVExporter_h
28 
29 #include "vtkExporter.h"
30 #include "vtkIOExportModule.h" // For export macro
31 
32 class vtkLight;
33 class vtkActor;
34 class vtkPoints;
35 class vtkDataArray;
37 
38 class VTKIOEXPORT_EXPORT vtkIVExporter : public vtkExporter
39 {
40 public:
41  static vtkIVExporter* New();
42  vtkTypeMacro(vtkIVExporter, vtkExporter);
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
52 
53 protected:
55  ~vtkIVExporter() override;
56 
57  void WriteData() override;
58  void WriteALight(vtkLight* aLight, FILE* fp);
59  void WriteAnActor(vtkActor* anActor, FILE* fp);
61  vtkUnsignedCharArray* colors, FILE* fp);
62  char* FileName;
63 
64 private:
65  vtkIVExporter(const vtkIVExporter&) = delete;
66  void operator=(const vtkIVExporter&) = delete;
67 };
68 
69 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
abstract class to write a scene to a file
Definition: vtkExporter.h:48
export a scene into OpenInventor 2.0 format.
Definition: vtkIVExporter.h:39
static vtkIVExporter * New()
~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.
a simple class to control print indentation
Definition: vtkIndent.h:34
a virtual light for 3D rendering
Definition: vtkLight.h:57
represent and manipulate 3D points
Definition: vtkPoints.h:34
dynamic, self-adjusting array of unsigned char
@ points
Definition: vtkX3D.h:452