00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00059 #ifndef __vtkBYUWriter_h
00060 #define __vtkBYUWriter_h
00061
00062 #include <stdio.h>
00063 #include "vtkPolyDataWriter.h"
00064 #include "vtkPolyData.h"
00065
00066 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter
00067 {
00068 public:
00069 static vtkBYUWriter *New();
00070
00071 vtkTypeMacro(vtkBYUWriter,vtkPolyDataWriter);
00072 void PrintSelf(ostream& os, vtkIndent indent);
00073
00075
00076 vtkSetStringMacro(GeometryFileName);
00077 vtkGetStringMacro(GeometryFileName);
00079
00081
00082 vtkSetStringMacro(DisplacementFileName);
00083 vtkGetStringMacro(DisplacementFileName);
00085
00087
00088 vtkSetStringMacro(ScalarFileName);
00089 vtkGetStringMacro(ScalarFileName);
00091
00093
00094 vtkSetStringMacro(TextureFileName);
00095 vtkGetStringMacro(TextureFileName);
00097
00099
00100 vtkSetMacro(WriteDisplacement,int);
00101 vtkGetMacro(WriteDisplacement,int);
00102 vtkBooleanMacro(WriteDisplacement,int);
00104
00106
00107 vtkSetMacro(WriteScalar,int);
00108 vtkGetMacro(WriteScalar,int);
00109 vtkBooleanMacro(WriteScalar,int);
00111
00113
00114 vtkSetMacro(WriteTexture,int);
00115 vtkGetMacro(WriteTexture,int);
00116 vtkBooleanMacro(WriteTexture,int);
00118
00119 protected:
00120 vtkBYUWriter();
00121 ~vtkBYUWriter();
00122
00123 void WriteData();
00124
00125 char *GeometryFileName;
00126 char *DisplacementFileName;
00127 char *ScalarFileName;
00128 char *TextureFileName;
00129 int WriteDisplacement;
00130 int WriteScalar;
00131 int WriteTexture;
00132
00133 void WriteGeometryFile(FILE *fp, int numPts);
00134 void WriteDisplacementFile(int numPts);
00135 void WriteScalarFile(int numPts);
00136 void WriteTextureFile(int numPts);
00137 private:
00138 vtkBYUWriter(const vtkBYUWriter&);
00139 void operator=(const vtkBYUWriter&);
00140 };
00141
00142 #endif
00143