Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
IO/vtkMCubesReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00072 #ifndef __vtkMCubesReader_h
00073 #define __vtkMCubesReader_h
00074
00075 #include "vtkPolyDataSource.h"
00076
00077 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
00078 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
00079
00080 class vtkPointLocator;
00081
00082 class VTK_IO_EXPORT vtkMCubesReader : public vtkPolyDataSource
00083 {
00084 public:
00085 vtkTypeRevisionMacro(vtkMCubesReader,vtkPolyDataSource);
00086 void PrintSelf(ostream& os, vtkIndent indent);
00087
00089 static vtkMCubesReader *New();
00090
00092
00093 vtkSetStringMacro(FileName);
00094 vtkGetStringMacro(FileName);
00096
00098
00099 vtkSetStringMacro(LimitsFileName);
00100 vtkGetStringMacro(LimitsFileName);
00102
00104
00106 vtkSetClampMacro(HeaderSize,int,0,VTK_LARGE_INTEGER);
00107 vtkGetMacro(HeaderSize,int);
00109
00111
00115 vtkSetMacro(FlipNormals,int);
00116 vtkGetMacro(FlipNormals,int);
00117 vtkBooleanMacro(FlipNormals,int);
00119
00121
00122 vtkSetMacro(Normals,int);
00123 vtkGetMacro(Normals,int);
00124 vtkBooleanMacro(Normals,int);
00126
00128
00138 void SetDataByteOrderToBigEndian();
00139 void SetDataByteOrderToLittleEndian();
00140 int GetDataByteOrder();
00141 void SetDataByteOrder(int);
00142 const char *GetDataByteOrderAsString();
00144
00146
00147 vtkSetMacro(SwapBytes,int);
00148 vtkGetMacro(SwapBytes,int);
00149 vtkBooleanMacro(SwapBytes,int);
00151
00153
00155 void SetLocator(vtkPointLocator *locator);
00156 vtkGetObjectMacro(Locator,vtkPointLocator);
00158
00160 void CreateDefaultLocator();
00161
00163 unsigned long GetMTime();
00164
00165 protected:
00166 vtkMCubesReader();
00167 ~vtkMCubesReader();
00168
00169 void Execute();
00170
00171 char *FileName;
00172 char *LimitsFileName;
00173 vtkPointLocator *Locator;
00174 int SwapBytes;
00175 int HeaderSize;
00176 int FlipNormals;
00177 int Normals;
00178
00179 private:
00180 vtkMCubesReader(const vtkMCubesReader&);
00181 void operator=(const vtkMCubesReader&);
00182 };
00183
00184 #endif
00185
00186