• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/IO/vtkSESAMEReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkSESAMEReader.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 =========================================================================*/
00027 #ifndef __vtkSESAMEReader_h
00028 #define __vtkSESAMEReader_h
00029 
00030 #include <vtkRectilinearGridSource.h>
00031 
00032 class vtkIntArray;
00033 
00034 class VTK_IO_EXPORT vtkSESAMEReader : public vtkRectilinearGridSource
00035 {
00036 public:
00037   static vtkSESAMEReader *New();
00038   vtkTypeRevisionMacro(vtkSESAMEReader, vtkRectilinearGridSource);
00039   
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   void SetFileName(const char* file);
00045   // Description:
00046   // Get the filename to read
00047   const char* GetFileName();
00049   
00051   int IsValidFile();
00052   
00054   int GetNumberOfTableIds();
00055 
00057   int* GetTableIds();
00058 
00060   vtkIntArray* GetTableIdsAsArray();
00061 
00063 
00064   void SetTable(int tableId);
00065   // Description:
00066   // Get the table to read in
00067   int GetTable();
00069 
00071   int GetNumberOfTableArrayNames();
00072 
00074 
00075   int GetNumberOfTableArrays()
00076     { return this->GetNumberOfTableArrayNames(); }
00077   // Description:
00078   // Get the names of arrays for the table to read
00079   const char* GetTableArrayName(int index);
00081 
00083 
00084   void SetTableArrayStatus(const char* name, int flag);
00085   int GetTableArrayStatus(const char* name);
00087 
00088 protected:
00089   
00090   vtkSESAMEReader();
00091   virtual ~vtkSESAMEReader();
00092  
00093   //BTX 
00094   class MyInternal;
00095   MyInternal* Internal;
00096   //ETX 
00097 
00098   int OpenFile();
00099   void CloseFile();
00100   void Execute();
00101   void ExecuteInformation();
00102   
00103   int ReadTableValueLine ( float *v1, float *v2, float *v3,
00104       float *v4, float *v5);
00105   int JumpToTable( int tableID );
00106 
00107   void ReadTable(); 
00108 
00109 private:
00110   vtkSESAMEReader(const vtkSESAMEReader&);  // Not implemented.
00111   void operator=(const vtkSESAMEReader&);  // Not implemented.
00112 
00113 };
00114 
00115 #endif

Generated by  doxygen 1.7.1