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 =========================================================================*/
45 #ifndef vtkIVExporter_h
46 #define vtkIVExporter_h
47 
48 #include "vtkExporter.h"
49 #include "vtkIOExportModule.h" // For export macro
50 
51 class vtkLight;
52 class vtkActor;
53 class vtkPoints;
54 class vtkDataArray;
56 
57 class VTKIOEXPORT_EXPORT vtkIVExporter : public vtkExporter
58 {
59 public:
60  static vtkIVExporter* New();
61  vtkTypeMacro(vtkIVExporter, vtkExporter);
62  void PrintSelf(ostream& os, vtkIndent indent) override;
63 
65 
71 
72 protected:
74  ~vtkIVExporter() override;
75 
76  void WriteData() override;
77  void WriteALight(vtkLight* aLight, FILE* fp);
78  void WriteAnActor(vtkActor* anActor, FILE* fp);
80  vtkUnsignedCharArray* colors, FILE* fp);
81  char* FileName;
82 
83 private:
84  vtkIVExporter(const vtkIVExporter&) = delete;
85  void operator=(const vtkIVExporter&) = delete;
86 };
87 
88 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:143
vtkLight
a virtual light for 3D rendering
Definition: vtkLight.h:166
vtkUnsignedCharArray
dynamic, self-adjusting array of unsigned char
Definition: vtkUnsignedCharArray.h:145
vtkIVExporter::WriteALight
void WriteALight(vtkLight *aLight, FILE *fp)
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
vtkIVExporter::vtkIVExporter
vtkIVExporter()
vtkIVExporter::WriteAnActor
void WriteAnActor(vtkActor *anActor, FILE *fp)
vtkIVExporter::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
Specify the name of the OpenInventor file to write.
vtkX3D::points
@ points
Definition: vtkX3D.h:452
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkIVExporter::New
static vtkIVExporter * New()
vtkIVExporter::WritePointData
void WritePointData(vtkPoints *points, vtkDataArray *normals, vtkDataArray *tcoords, vtkUnsignedCharArray *colors, FILE *fp)
vtkIVExporter::WriteData
void WriteData() override
vtkExporter
abstract class to write a scene to a file
Definition: vtkExporter.h:48
vtkExporter.h
vtkIVExporter
export a scene into OpenInventor 2.0 format.
Definition: vtkIVExporter.h:58
vtkIVExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIVExporter::~vtkIVExporter
~vtkIVExporter() override
vtkIVExporter::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
Specify the name of the OpenInventor file to write.
vtkIVExporter::FileName
char * FileName
Definition: vtkIVExporter.h:81