ssRawDataReader.h

Go to the documentation of this file.
00001 /* $Id: ssRawDataReader.h,v 1.12 2005/12/29 10:16:50 pfb Exp $ */
00002 
00003 #ifndef _ssRawDataReader_h
00004 #define _ssRawDataReader_h
00005 
00010 #include "../../../../Common/Utility/Misc/GoNogo.h"
00011 #include <vtkDataReader.h>
00012 #include <vtkPolyData.h>
00013 
00019 class vtkDataReader;
00020 
00021 class VTK_EXPORT ssRawDataReader : public GoNogo, public vtkDataReader
00022   {
00023   //****************************************************************************
00024                              public:
00030   static ssRawDataReader *New();
00031 
00035   vtkTypeMacro(ssRawDataReader, vtkDataReader);
00036 
00042   void PrintSelf(ostream& os, vtkIndent indent); 
00043 
00049   virtual int OpenRawFile();
00050 
00054   void TruncateFile();
00055 
00056 #if 0
00057 
00061   vtkPolyData *GetInput(); 
00062 #endif
00063 
00071   virtual bool eof() const;
00072 
00073   //****************************************************************************
00074                              protected:
00078   ssRawDataReader();
00079 
00083   virtual ~ssRawDataReader();
00084 
00092   bool RecordReaderReadCellData(vtkDataSet *ds, int numCells);
00093 
00101   bool RecordReaderReadPointData(vtkDataSet *ds, int numPts);
00102 
00107   bool RecordReaderReadHeader();
00108 
00109   bool _eof;
00110 
00111   //****************************************************************************
00112                              private:
00113   
00117   ssRawDataReader(const ssRawDataReader&);
00118   ssRawDataReader& operator=(const ssRawDataReader&);
00119     
00120   };
00121 
00122 /*
00123  * $Log: ssRawDataReader.h,v $
00124  * Revision 1.12  2005/12/29 10:16:50  pfb
00125  * Changes made in upgrade to ParaView 2.2.1, VTK 4.5.0
00126  *
00127  * Revision 1.11  2005/09/30 05:04:29  pfb
00128  * Update from VTK 4.4 to VTK 4.5
00129  *
00130  * Revision 1.10  2005/05/11 11:40:11  pfb
00131  * Added module info.
00132  *
00133  * Revision 1.9  2003/07/09 17:16:01  pfb
00134  * This class now inherits from GoNogo.
00135  *
00136  * Revision 1.8  2003/04/29 06:24:01  pfb
00137  * Added RecordReaderReadCellData(), RecordReaderReadPointData() and
00138  * RecordReaderReadHeader().
00139  *
00140  * Revision 1.7  2003/04/25 11:45:47  pfb
00141  * Updated comment.
00142  *
00143  * Revision 1.6  2003/04/11 11:54:06  pfb
00144  * Addd no copy descls.
00145  *
00146  * Revision 1.5  2003/03/20 00:57:07  pfb
00147  * Corrected header comment.
00148  *
00149  * Revision 1.4  2002/03/09 11:22:44  pfb
00150  * Added eof().
00151  *
00152  * Revision 1.3  2002/03/05 09:58:21  pfb
00153  * Changed from OpenVTKFile() to OpenRawFile().
00154  *
00155  * Revision 1.2  2002/02/27 03:24:36  pfb
00156  * Work in progress.
00157  *
00158  * Revision 1.1  2001/12/11 12:52:00  pfb
00159  * Initial rev.
00160  *
00161  *
00162  *
00163  */
00164 
00168 #endif