VTK
vtkBYUWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBYUWriter.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 =========================================================================*/
31 #ifndef __vtkBYUWriter_h
32 #define __vtkBYUWriter_h
33 
34 #include "vtkIOGeometryModule.h" // For export macro
35 #include "vtkPolyDataWriter.h"
36 
37 class VTKIOGEOMETRY_EXPORT vtkBYUWriter : public vtkPolyDataWriter
38 {
39 public:
40  static vtkBYUWriter *New();
41 
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetStringMacro(GeometryFileName);
48  vtkGetStringMacro(GeometryFileName);
50 
52 
53  vtkSetStringMacro(DisplacementFileName);
54  vtkGetStringMacro(DisplacementFileName);
56 
58 
59  vtkSetStringMacro(ScalarFileName);
60  vtkGetStringMacro(ScalarFileName);
62 
64 
65  vtkSetStringMacro(TextureFileName);
66  vtkGetStringMacro(TextureFileName);
68 
70 
71  vtkSetMacro(WriteDisplacement,int);
72  vtkGetMacro(WriteDisplacement,int);
73  vtkBooleanMacro(WriteDisplacement,int);
75 
77 
78  vtkSetMacro(WriteScalar,int);
79  vtkGetMacro(WriteScalar,int);
80  vtkBooleanMacro(WriteScalar,int);
82 
84 
85  vtkSetMacro(WriteTexture,int);
86  vtkGetMacro(WriteTexture,int);
87  vtkBooleanMacro(WriteTexture,int);
89 
90 protected:
91  vtkBYUWriter();
92  ~vtkBYUWriter();
93 
94  void WriteData();
95 
103 
104  void WriteGeometryFile(FILE *fp, int numPts);
105  void WriteDisplacementFile(int numPts);
106  void WriteScalarFile(int numPts);
107  void WriteTextureFile(int numPts);
108 private:
109  vtkBYUWriter(const vtkBYUWriter&); // Not implemented.
110  void operator=(const vtkBYUWriter&); // Not implemented.
111 };
112 
113 #endif
114