VTK  9.0.1
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 =========================================================================*/
23 #ifndef vtkTRUCHASReader_h
24 #define vtkTRUCHASReader_h
25 
26 #include "vtkIOTRUCHASModule.h" // For export macro
28 
30 
31 class VTKIOTRUCHAS_EXPORT vtkTRUCHASReader : public vtkMultiBlockDataSetAlgorithm
32 {
33 public:
34  static vtkTRUCHASReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetStringMacro(FileName);
43  vtkGetStringMacro(FileName);
45 
49  static int CanReadFile(const char* filename);
50 
52 
57  int GetNumberOfBlockArrays();
58  const char* GetBlockArrayName(int index);
59  void SetBlockArrayStatus(const char* gridname, int status);
60  int GetBlockArrayStatus(const char* gridname);
62 
68  int GetNumberOfPointArrays();
69 
74  const char* GetPointArrayName(int index);
75 
77 
80  int GetPointArrayStatus(const char* name);
81  void SetPointArrayStatus(const char* name, int status);
83 
89  int GetNumberOfCellArrays();
90 
95  const char* GetCellArrayName(int index);
96 
98 
101  int GetCellArrayStatus(const char* name);
102  void SetCellArrayStatus(const char* name, int status);
104 
105 protected:
107  ~vtkTRUCHASReader() override;
108 
117 
118  char* FileName;
119 
120  class Internal;
121  Internal* Internals;
122  friend class Internal;
123 
127 
128 private:
129  vtkTRUCHASReader(const vtkTRUCHASReader&) = delete;
130  void operator=(const vtkTRUCHASReader&) = delete;
131 };
132 
133 #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:33
Store on/off settings for data arrays for a vtkSource.
vtkDataArraySelection * CellArrayChoices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.