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