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

dox/IO/vtkParticleReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkParticleReader.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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&); // Not implemented. 00093 void operator=(const vtkParticleReader&); // Not implemented. 00094 }; 00095 00096 #endif