VTK  9.3.1
vtkTRUCHASReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkTRUCHASReader_h
15 #define vtkTRUCHASReader_h
16 
17 #include "vtkIOTRUCHASModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
22 
23 class VTKIOTRUCHAS_EXPORT vtkTRUCHASReader : public vtkMultiBlockDataSetAlgorithm
24 {
25 public:
26  static vtkTRUCHASReader* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  vtkSetFilePathMacro(FileName);
35  vtkGetFilePathMacro(FileName);
37 
41  static int CanReadFile(VTK_FILEPATH const char* filename);
42 
44 
49  int GetNumberOfBlockArrays();
50  const char* GetBlockArrayName(int index);
51  void SetBlockArrayStatus(const char* gridname, int status);
52  int GetBlockArrayStatus(const char* gridname);
54 
60  int GetNumberOfPointArrays();
61 
66  const char* GetPointArrayName(int index);
67 
69 
72  int GetPointArrayStatus(const char* name);
73  void SetPointArrayStatus(const char* name, int status);
75 
81  int GetNumberOfCellArrays();
82 
87  const char* GetCellArrayName(int index);
88 
90 
93  int GetCellArrayStatus(const char* name);
94  void SetCellArrayStatus(const char* name, int status);
96 
97 protected:
99  ~vtkTRUCHASReader() override;
100 
109 
110  char* FileName;
111 
112  class Internal;
113  Internal* Internals;
114  friend class Internal;
115 
119 
120 private:
121  vtkTRUCHASReader(const vtkTRUCHASReader&) = delete;
122  void operator=(const vtkTRUCHASReader&) = delete;
123 };
124 
125 VTK_ABI_NAMESPACE_END
126 #endif
read GE TRUCHAS format HDF5 files
vtkDataArraySelection * PointArrayChoices
vtkDataArraySelection * BlockChoices
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static vtkMultiBlockDataSetAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:28
Store on/off settings for data arrays, etc.
vtkDataArraySelection * CellArrayChoices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_FILEPATH
Store zero or more vtkInformation instances.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.