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