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_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 vtkSetStringMacro(GeometryFileName);
00076 vtkGetStringMacro(GeometryFileName);
00077
00079 vtkSetStringMacro(DisplacementFileName);
00080 vtkGetStringMacro(DisplacementFileName);
00081
00083 vtkSetStringMacro(ScalarFileName);
00084 vtkGetStringMacro(ScalarFileName);
00085
00087 vtkSetStringMacro(TextureFileName);
00088 vtkGetStringMacro(TextureFileName);
00089
00091 vtkSetMacro(WriteDisplacement,int);
00092 vtkGetMacro(WriteDisplacement,int);
00093 vtkBooleanMacro(WriteDisplacement,int);
00094
00096 vtkSetMacro(WriteScalar,int);
00097 vtkGetMacro(WriteScalar,int);
00098 vtkBooleanMacro(WriteScalar,int);
00099
00101 vtkSetMacro(WriteTexture,int);
00102 vtkGetMacro(WriteTexture,int);
00103 vtkBooleanMacro(WriteTexture,int);
00104
00105 protected:
00106 vtkBYUWriter();
00107 ~vtkBYUWriter();
00108 vtkBYUWriter(const vtkBYUWriter&) {};
00109 void operator=(const vtkBYUWriter&) {};
00110
00111 void WriteData();
00112
00113 char *GeometryFileName;
00114 char *DisplacementFileName;
00115 char *ScalarFileName;
00116 char *TextureFileName;
00117 int WriteDisplacement;
00118 int WriteScalar;
00119 int WriteTexture;
00120
00121 void WriteGeometryFile(FILE *fp, int numPts);
00122 void WriteDisplacementFile(int numPts);
00123 void WriteScalarFile(int numPts);
00124 void WriteTextureFile(int numPts);
00125 };
00126
00127 #endif
00128