VTK
vtkXdmf3Reader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXdmf3Reader.h
5  Language: C++
6 
7  Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
33 #ifndef vtkXdmf3Reader_h
34 #define vtkXdmf3Reader_h
35 
36 #include "vtkIOXdmf3Module.h" // For export macro
37 #include "vtkDataReader.h"
38 
40 
41 class VTKIOXDMF3_EXPORT vtkXdmf3Reader : public vtkDataReader
42 {
43 public:
44  static vtkXdmf3Reader* New();
45  vtkTypeMacro(vtkXdmf3Reader, vtkDataReader);
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
51  virtual void SetFileName(const char* filename);
52 
54 
59  virtual void AddFileName(const char* filename);
60  virtual void RemoveAllFileNames();
62 
64 
69  vtkSetMacro(FileSeriesAsTime, bool);
70  vtkGetMacro(FileSeriesAsTime, bool);
72 
76  virtual int CanReadFile(const char* filename);
77 
83  int GetNumberOfPointArrays();
84 
89  const char* GetPointArrayName(int index);
90 
92 
95  int GetPointArrayStatus(const char* name);
96  void SetPointArrayStatus(const char* name, int status);
98 
100 
105  int GetNumberOfCellArrays();
106  const char* GetCellArrayName(int index);
107  void SetCellArrayStatus(const char* name, int status);
108  int GetCellArrayStatus(const char* name);
110 
112 
117  int GetNumberOfFieldArrays();
118  const char* GetFieldArrayName(int index);
119  void SetFieldArrayStatus(const char* name, int status);
120  int GetFieldArrayStatus(const char* name);
122 
124 
129  int GetNumberOfGrids();
130  const char* GetGridName(int index);
131  void SetGridStatus(const char* gridname, int status);
132  int GetGridStatus(const char* gridname);
134 
136 
142  int GetNumberOfSets();
143  const char* GetSetName(int index);
144  void SetSetStatus(const char* gridname, int status);
145  int GetSetStatus(const char* gridname);
147 
151  int GetNumberOfSetArrays() { return this->GetNumberOfSets(); }
152  const char* GetSetArrayName(int index)
153  { return this->GetSetName(index); }
154  int GetSetArrayStatus(const char* name)
155  { return this->GetSetStatus(name); }
156 
161  virtual vtkGraph* GetSIL();
162 
166  int GetSILUpdateStamp();
167 
168 protected:
169  vtkXdmf3Reader();
170  ~vtkXdmf3Reader();
171 
172  //Overridden to announce that we make general DataObjects.
174 
175  //Overridden to handle RDO requests the way we need to
178 
179  //Overridden to create the correct vtkDataObject subclass for the file.
180  virtual int RequestDataObject(
182 
183  //Overridden to announce temporal information and to participate in
184  //structured extent splitting.
187 
188  //Read the XDMF and HDF input files and fill in vtk data objects.
191 
192  vtkXdmf3ArraySelection* GetFieldArraySelection();
193  vtkXdmf3ArraySelection* GetCellArraySelection();
194  vtkXdmf3ArraySelection* GetPointArraySelection();
195  vtkXdmf3ArraySelection* GetGridsSelection();
196  vtkXdmf3ArraySelection* GetSetsSelection();
202 
203 private:
204  vtkXdmf3Reader(const vtkXdmf3Reader&) VTK_DELETE_FUNCTION;
205  void operator=(const vtkXdmf3Reader&) VTK_DELETE_FUNCTION;
206 
207  bool FileSeriesAsTime;
208 
209  class Internals;
210  Internals *Internal;
211 };
212 
213 #endif
const char * GetSetArrayName(int index)
Store vtkAlgorithm input/output information.
vtkXdmf3ArraySelection * CellArraysCache
vtkXdmf3ArraySelection * FieldArraysCache
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkXdmf3ArraySelection * SetsCache
vtkXdmf3ArraySelection * GridsCache
int GetNumberOfSetArrays()
These methods are provided to make it easier to use the Sets in ParaView.
Base class for graph data types.
Definition: vtkGraph.h:287
static vtkDataReader * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
helper superclass for objects that read vtk data files
Definition: vtkDataReader.h:49
vtkXdmf3ArraySelection * PointArraysCache
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
int GetSetArrayStatus(const char *name)
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Store zero or more vtkInformation instances.
Reads eXtensible Data Model and Format files.
virtual void SetFileName(const char *)
Specify file name of vtk data file to read.
helper to identify requested arrays with