IO/vtkParticleReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00031 #ifndef __vtkParticleReader_h
00032 #define __vtkParticleReader_h
00033
00034 #include "vtkPolyDataSource.h"
00035
00036 #define VTK_FILE_BYTE_ORDER_BIG_ENDIAN 0
00037 #define VTK_FILE_BYTE_ORDER_LITTLE_ENDIAN 1
00038
00039 class VTK_IO_EXPORT vtkParticleReader : public vtkPolyDataSource
00040 {
00041 public:
00042 static vtkParticleReader *New();
00043 vtkTypeRevisionMacro(vtkParticleReader,vtkPolyDataSource);
00044 void PrintSelf(ostream& os, vtkIndent indent);
00045
00047
00048 vtkSetStringMacro(FileName);
00049 vtkGetStringMacro(FileName);
00051
00053
00063 void SetDataByteOrderToBigEndian();
00064 void SetDataByteOrderToLittleEndian();
00065 int GetDataByteOrder();
00066 void SetDataByteOrder(int);
00067 const char *GetDataByteOrderAsString();
00069
00071
00072 vtkSetMacro(SwapBytes,int);
00073 int GetSwapBytes() {return this->SwapBytes;}
00074 vtkBooleanMacro(SwapBytes,int);
00076
00077 protected:
00078 vtkParticleReader();
00079 ~vtkParticleReader();
00080
00081 void OpenFile();
00082
00083 char *FileName;
00084 ifstream *File;
00085 int SwapBytes;
00086
00087 unsigned long NumberOfPoints;
00088
00089 void ExecuteInformation();
00090 void Execute();
00091 private:
00092 vtkParticleReader(const vtkParticleReader&);
00093 void operator=(const vtkParticleReader&);
00094 };
00095
00096 #endif