VTK  9.2.6
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 "vtkDataObjectAlgorithm.h"
37 #include "vtkIOXdmf3Module.h" // For export macro
38 
40 class vtkGraph;
41 
42 class VTKIOXDMF3_EXPORT vtkXdmf3Reader : public vtkDataObjectAlgorithm
43 {
44 public:
45  static vtkXdmf3Reader* New();
47  void PrintSelf(ostream& os, vtkIndent indent) override;
48 
52  void SetFileName(VTK_FILEPATH const char* filename);
53 
55 
60  virtual void AddFileName(VTK_FILEPATH const char* filename);
61  virtual void RemoveAllFileNames();
63 
65 
70  vtkSetMacro(FileSeriesAsTime, bool);
71  vtkGetMacro(FileSeriesAsTime, bool);
73 
77  virtual int CanReadFile(VTK_FILEPATH const char* filename);
78 
85 
90  const char* GetPointArrayName(int index);
91 
93 
96  int GetPointArrayStatus(const char* name);
97  void SetPointArrayStatus(const char* name, int status);
99 
101 
107  const char* GetCellArrayName(int index);
108  void SetCellArrayStatus(const char* name, int status);
109  int GetCellArrayStatus(const char* name);
111 
113 
119  const char* GetFieldArrayName(int index);
120  void SetFieldArrayStatus(const char* name, int status);
121  int GetFieldArrayStatus(const char* name);
123 
125 
131  const char* GetGridName(int index);
132  void SetGridStatus(const char* gridname, int status);
133  int GetGridStatus(const char* gridname);
135 
137 
144  const char* GetSetName(int index);
145  void SetSetStatus(const char* gridname, int status);
146  int GetSetStatus(const char* gridname);
148 
152  int GetNumberOfSetArrays() { return this->GetNumberOfSets(); }
153  const char* GetSetArrayName(int index) { return this->GetSetName(index); }
154  int GetSetArrayStatus(const char* name) { return this->GetSetStatus(name); }
155 
160  virtual vtkGraph* GetSIL();
161 
166 
167 protected:
169  ~vtkXdmf3Reader() override;
170 
171  const char* FileNameInternal;
172  vtkSetFilePathMacro(FileNameInternal);
173 
174  // Overridden to announce that we make general DataObjects.
176 
177  // Overridden to handle RDO requests the way we need to
180 
181  // Overridden to create the correct vtkDataObject subclass for the file.
183 
184  // Overridden to announce temporal information and to participate in
185  // structured extent splitting.
187 
188  // Read the XDMF and HDF input files and fill in vtk data objects.
190 
201 
202 private:
203  vtkXdmf3Reader(const vtkXdmf3Reader&) = delete;
204  void operator=(const vtkXdmf3Reader&) = delete;
205 
206  bool FileSeriesAsTime;
207 
208  class Internals;
209  Internals* Internal;
210 };
211 
212 #endif
Superclass for algorithms that produce only data object as output.
Base class for graph data types.
Definition: vtkGraph.h:345
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
helper to identify requested arrays with
Reads eXtensible Data Model and Format files.
int GetCellArrayStatus(const char *name)
Get information about cell-based arrays.
int GetNumberOfSets()
Get/Set information about sets.
int GetGridStatus(const char *gridname)
Get/Set information about grids.
virtual int CanReadFile(VTK_FILEPATH const char *filename)
Determine if the file can be read with this reader.
int GetPointArrayStatus(const char *name)
Get/Set the point array status.
vtkXdmf3ArraySelection * FieldArraysCache
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
virtual int RequestDataObjectInternal(vtkInformationVector *)
const char * GetCellArrayName(int index)
Get information about cell-based arrays.
vtkXdmf3ArraySelection * CellArraysCache
vtkXdmf3ArraySelection * SetsCache
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
const char * GetSetArrayName(int index)
void SetGridStatus(const char *gridname, int status)
Get/Set information about grids.
int GetSetStatus(const char *gridname)
Get/Set information about sets.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * FileNameInternal
virtual void RemoveAllFileNames()
Add and remove give the reader a list of top level xml files to read.
vtkXdmf3ArraySelection * GetSetsSelection()
int GetFieldArrayStatus(const char *name)
Get information about unaligned arrays.
vtkXdmf3ArraySelection * GetCellArraySelection()
void SetSetStatus(const char *gridname, int status)
Get/Set information about sets.
virtual void AddFileName(VTK_FILEPATH const char *filename)
Add and remove give the reader a list of top level xml files to read.
int GetSetArrayStatus(const char *name)
vtkXdmf3ArraySelection * PointArraysCache
vtkXdmf3ArraySelection * GridsCache
int GetSILUpdateStamp()
Every time the SIL is updated a this will return a different value.
vtkXdmf3ArraySelection * GetGridsSelection()
void SetFileName(VTK_FILEPATH const char *filename)
Set tells the reader the name of a single top level xml file to read.
void SetCellArrayStatus(const char *name, int status)
Get information about cell-based arrays.
int GetNumberOfSetArrays()
These methods are provided to make it easier to use the Sets in ParaView.
const char * GetFieldArrayName(int index)
Get information about unaligned arrays.
int GetNumberOfFieldArrays()
Get information about unaligned arrays.
static vtkXdmf3Reader * New()
const char * GetPointArrayName(int index)
Returns the name of point array at the give index.
vtkXdmf3ArraySelection * GetFieldArraySelection()
int GetNumberOfCellArrays()
Get information about cell-based arrays.
virtual vtkGraph * GetSIL()
SIL describes organization of/relationships between classifications eg.
vtkSetFilePathMacro(FileNameInternal)
vtkXdmf3ArraySelection * GetPointArraySelection()
int GetNumberOfGrids()
Get/Set information about grids.
const char * GetGridName(int index)
Get/Set information about grids.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetFieldArrayStatus(const char *name, int status)
Get information about unaligned arrays.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
const char * GetSetName(int index)
Get/Set information about sets.
int GetNumberOfPointArrays()
Get information about point-based arrays.
~vtkXdmf3Reader() override
void SetPointArrayStatus(const char *name, int status)
Get/Set the point array status.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225
@ index
Definition: vtkX3D.h:252
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_FILEPATH