vtkBYUReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00043 #ifndef __vtkBYUReader_h
00044 #define __vtkBYUReader_h
00045
00046 #include "vtkPolyDataSource.h"
00047
00048 class VTK_IO_EXPORT vtkBYUReader : public vtkPolyDataSource
00049 {
00050 public:
00051 static vtkBYUReader *New();
00052
00053 vtkTypeRevisionMacro(vtkBYUReader,vtkPolyDataSource);
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055
00057
00058 vtkSetStringMacro(GeometryFileName);
00059 vtkGetStringMacro(GeometryFileName);
00061
00063
00064 virtual void SetFileName(const char* f) { this->SetGeometryFileName(f); }
00065 virtual char* GetFileName() { return this->GetGeometryFileName(); }
00067
00069
00070 vtkSetStringMacro(DisplacementFileName);
00071 vtkGetStringMacro(DisplacementFileName);
00073
00075
00076 vtkSetStringMacro(ScalarFileName);
00077 vtkGetStringMacro(ScalarFileName);
00079
00081
00082 vtkSetStringMacro(TextureFileName);
00083 vtkGetStringMacro(TextureFileName);
00085
00087
00088 vtkSetMacro(ReadDisplacement,int);
00089 vtkGetMacro(ReadDisplacement,int);
00090 vtkBooleanMacro(ReadDisplacement,int);
00092
00094
00095 vtkSetMacro(ReadScalar,int);
00096 vtkGetMacro(ReadScalar,int);
00097 vtkBooleanMacro(ReadScalar,int);
00099
00101
00103 vtkSetMacro(ReadTexture,int);
00104 vtkGetMacro(ReadTexture,int);
00105 vtkBooleanMacro(ReadTexture,int);
00107
00109
00110 vtkSetClampMacro(PartNumber,int,1,VTK_LARGE_INTEGER);
00111 vtkGetMacro(PartNumber,int);
00113
00114 protected:
00115 vtkBYUReader();
00116 ~vtkBYUReader();
00117
00118 void Execute();
00119
00120 int ComputeDivisionExtents(vtkDataObject *output,
00121 int idx, int numDivisions);
00122
00123 char *GeometryFileName;
00124 char *DisplacementFileName;
00125 char *ScalarFileName;
00126 char *TextureFileName;
00127 int ReadDisplacement;
00128 int ReadScalar;
00129 int ReadTexture;
00130 int PartNumber;
00131
00132 void ReadGeometryFile(FILE *fp, int &numPts);
00133 void ReadDisplacementFile(int numPts);
00134 void ReadScalarFile(int numPts);
00135 void ReadTextureFile(int numPts);
00136 private:
00137 vtkBYUReader(const vtkBYUReader&);
00138 void operator=(const vtkBYUReader&);
00139 };
00140
00141 #endif
00142
00143