VTK
vtkSESAMEReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSESAMEReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
27 #ifndef __vtkSESAMEReader_h
28 #define __vtkSESAMEReader_h
29 
31 
32 class vtkIntArray;
33 
35 {
36 public:
37  static vtkSESAMEReader *New();
39 
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  void SetFileName(const char* file);
45  // Description:
46  // Get the filename to read
47  const char* GetFileName();
49 
51  int IsValidFile();
52 
54  int GetNumberOfTableIds();
55 
57  int* GetTableIds();
58 
60  vtkIntArray* GetTableIdsAsArray();
61 
63 
64  void SetTable(int tableId);
65  // Description:
66  // Get the table to read in
67  int GetTable();
69 
71  int GetNumberOfTableArrayNames();
72 
74 
75  int GetNumberOfTableArrays()
76  { return this->GetNumberOfTableArrayNames(); }
77  // Description:
78  // Get the names of arrays for the table to read
79  const char* GetTableArrayName(int index);
81 
83 
84  void SetTableArrayStatus(const char* name, int flag);
85  int GetTableArrayStatus(const char* name);
87 
88 protected:
89 
91  virtual ~vtkSESAMEReader();
92 
93  //BTX
94  class MyInternal;
95  MyInternal* Internal;
96  //ETX
97 
98  int OpenFile();
99  void CloseFile();
100  void Execute();
101  void ExecuteInformation();
102 
103  int ReadTableValueLine ( float *v1, float *v2, float *v3,
104  float *v4, float *v5);
105  int JumpToTable( int tableID );
106 
107  void ReadTable();
108 
109 private:
110  vtkSESAMEReader(const vtkSESAMEReader&); // Not implemented.
111  void operator=(const vtkSESAMEReader&); // Not implemented.
112 
113 };
114 
115 #endif