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