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 "vtkWriter.h"
36 
37 class vtkPolyData;
38 
40 {
41 public:
42  static vtkBYUWriter *New();
43 
44  vtkTypeMacro(vtkBYUWriter,vtkWriter);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
49  vtkSetStringMacro(GeometryFileName);
50  vtkGetStringMacro(GeometryFileName);
52 
54 
55  vtkSetStringMacro(DisplacementFileName);
56  vtkGetStringMacro(DisplacementFileName);
58 
60 
61  vtkSetStringMacro(ScalarFileName);
62  vtkGetStringMacro(ScalarFileName);
64 
66 
67  vtkSetStringMacro(TextureFileName);
68  vtkGetStringMacro(TextureFileName);
70 
72 
73  vtkSetMacro(WriteDisplacement,int);
74  vtkGetMacro(WriteDisplacement,int);
75  vtkBooleanMacro(WriteDisplacement,int);
77 
79 
80  vtkSetMacro(WriteScalar,int);
81  vtkGetMacro(WriteScalar,int);
82  vtkBooleanMacro(WriteScalar,int);
84 
86 
87  vtkSetMacro(WriteTexture,int);
88  vtkGetMacro(WriteTexture,int);
89  vtkBooleanMacro(WriteTexture,int);
91 
93 
97 
98 protected:
99  vtkBYUWriter();
100  ~vtkBYUWriter();
101 
102  void WriteData();
103 
111 
112  void WriteGeometryFile(FILE *fp, int numPts);
113  void WriteDisplacementFile(int numPts);
114  void WriteScalarFile(int numPts);
115  void WriteTextureFile(int numPts);
116 
118 
119 private:
120  vtkBYUWriter(const vtkBYUWriter&); // Not implemented.
121  void operator=(const vtkBYUWriter&); // Not implemented.
122 };
123 
124 #endif
125 
int WriteDisplacement
Definition: vtkBYUWriter.h:108
char * TextureFileName
Definition: vtkBYUWriter.h:107
Store vtkAlgorithm input/output information.
char * ScalarFileName
Definition: vtkBYUWriter.h:106
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
write MOVIE.BYU files
Definition: vtkBYUWriter.h:39
#define VTKIOGEOMETRY_EXPORT
abstract class to write data to file(s)
Definition: vtkWriter.h:44
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkDataObject * GetInput()
char * GeometryFileName
Definition: vtkBYUWriter.h:104
char * DisplacementFileName
Definition: vtkBYUWriter.h:105
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkAlgorithm * New()
virtual void WriteData()=0
void PrintSelf(ostream &os, vtkIndent indent)