VTK  9.2.6
vtkTRUCHASReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTRUCHASReader.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 =========================================================================*/
26 #ifndef vtkTRUCHASReader_h
27 #define vtkTRUCHASReader_h
28 
29 #include "vtkIOTRUCHASModule.h" // For export macro
31 
33 
34 class VTKIOTRUCHAS_EXPORT vtkTRUCHASReader : public vtkMultiBlockDataSetAlgorithm
35 {
36 public:
37  static vtkTRUCHASReader* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  vtkSetFilePathMacro(FileName);
46  vtkGetFilePathMacro(FileName);
48 
52  static int CanReadFile(VTK_FILEPATH const char* filename);
53 
55 
60  int GetNumberOfBlockArrays();
61  const char* GetBlockArrayName(int index);
62  void SetBlockArrayStatus(const char* gridname, int status);
63  int GetBlockArrayStatus(const char* gridname);
65 
71  int GetNumberOfPointArrays();
72 
77  const char* GetPointArrayName(int index);
78 
80 
83  int GetPointArrayStatus(const char* name);
84  void SetPointArrayStatus(const char* name, int status);
86 
92  int GetNumberOfCellArrays();
93 
98  const char* GetCellArrayName(int index);
99 
101 
104  int GetCellArrayStatus(const char* name);
105  void SetCellArrayStatus(const char* name, int status);
107 
108 protected:
110  ~vtkTRUCHASReader() override;
111 
120 
121  char* FileName;
122 
123  class Internal;
124  Internal* Internals;
125  friend class Internal;
126 
130 
131 private:
132  vtkTRUCHASReader(const vtkTRUCHASReader&) = delete;
133  void operator=(const vtkTRUCHASReader&) = delete;
134 };
135 
136 #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:39
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.