Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/IO/vtkBYUReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkBYUReader.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00034 #ifndef __vtkBYUReader_h 00035 #define __vtkBYUReader_h 00036 00037 #include "vtkPolyDataSource.h" 00038 00039 class VTK_IO_EXPORT vtkBYUReader : public vtkPolyDataSource 00040 { 00041 public: 00042 static vtkBYUReader *New(); 00043 00044 vtkTypeRevisionMacro(vtkBYUReader,vtkPolyDataSource); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00049 vtkSetStringMacro(GeometryFileName); 00050 vtkGetStringMacro(GeometryFileName); 00052 00054 00055 virtual void SetFileName(const char* f) { this->SetGeometryFileName(f); } 00056 virtual char* GetFileName() { return this->GetGeometryFileName(); } 00058 00060 00061 vtkSetStringMacro(DisplacementFileName); 00062 vtkGetStringMacro(DisplacementFileName); 00064 00066 00067 vtkSetStringMacro(ScalarFileName); 00068 vtkGetStringMacro(ScalarFileName); 00070 00072 00073 vtkSetStringMacro(TextureFileName); 00074 vtkGetStringMacro(TextureFileName); 00076 00078 00079 vtkSetMacro(ReadDisplacement,int); 00080 vtkGetMacro(ReadDisplacement,int); 00081 vtkBooleanMacro(ReadDisplacement,int); 00083 00085 00086 vtkSetMacro(ReadScalar,int); 00087 vtkGetMacro(ReadScalar,int); 00088 vtkBooleanMacro(ReadScalar,int); 00090 00092 00094 vtkSetMacro(ReadTexture,int); 00095 vtkGetMacro(ReadTexture,int); 00096 vtkBooleanMacro(ReadTexture,int); 00098 00100 00101 vtkSetClampMacro(PartNumber,int,1,VTK_LARGE_INTEGER); 00102 vtkGetMacro(PartNumber,int); 00104 00105 protected: 00106 vtkBYUReader(); 00107 ~vtkBYUReader(); 00108 00109 void Execute(); 00110 // This source does not know how to generate pieces yet. 00111 int ComputeDivisionExtents(vtkDataObject *output, 00112 int idx, int numDivisions); 00113 00114 char *GeometryFileName; 00115 char *DisplacementFileName; 00116 char *ScalarFileName; 00117 char *TextureFileName; 00118 int ReadDisplacement; 00119 int ReadScalar; 00120 int ReadTexture; 00121 int PartNumber; 00122 00123 void ReadGeometryFile(FILE *fp, int &numPts); 00124 void ReadDisplacementFile(int numPts); 00125 void ReadScalarFile(int numPts); 00126 void ReadTextureFile(int numPts); 00127 private: 00128 vtkBYUReader(const vtkBYUReader&); // Not implemented. 00129 void operator=(const vtkBYUReader&); // Not implemented. 00130 }; 00131 00132 #endif 00133 00134