VTK  9.2.6
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 =========================================================================*/
29 #ifndef vtkIVExporter_h
30 #define vtkIVExporter_h
31 
32 #include "vtkExporter.h"
33 #include "vtkIOExportModule.h" // For export macro
34 
35 class vtkLight;
36 class vtkActor;
37 class vtkPoints;
38 class vtkDataArray;
40 
41 class VTKIOEXPORT_EXPORT vtkIVExporter : public vtkExporter
42 {
43 public:
44  static vtkIVExporter* New();
45  vtkTypeMacro(vtkIVExporter, vtkExporter);
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetFilePathMacro(FileName);
53  vtkGetFilePathMacro(FileName);
55 
56 protected:
57  vtkIVExporter();
58  ~vtkIVExporter() override;
59 
60  void WriteData() override;
61  void WriteALight(vtkLight* aLight, FILE* fp);
62  void WriteAnActor(vtkActor* anActor, FILE* fp);
63  void WritePointData(vtkPoints* points, vtkDataArray* normals, vtkDataArray* tcoords,
64  vtkUnsignedCharArray* colors, FILE* fp);
65  char* FileName;
66 
67 private:
68  vtkIVExporter(const vtkIVExporter&) = delete;
69  void operator=(const vtkIVExporter&) = delete;
70 };
71 
72 #endif
abstract class to write a scene to a file
Definition: vtkExporter.h:47
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
virtual void WriteData()=0
a simple class to control print indentation
Definition: vtkIndent.h:39
export a scene into OpenInventor 2.0 format.
Definition: vtkIVExporter.h:41
a virtual light for 3D rendering
Definition: vtkLight.h:59
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of unsigned char
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
represent and manipulate 3D points
Definition: vtkPoints.h:39