VTK
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
33 {
34 public:
35  static vtkTRUCHASReader *New();
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
40 
43  vtkSetStringMacro(FileName);
44  vtkGetStringMacro(FileName);
46 
50  static int CanReadFile(const char *filename);
51 
53 
58  int GetNumberOfBlockArrays();
59  const char* GetBlockArrayName(int index);
60  void SetBlockArrayStatus(const char* gridname, int status);
61  int GetBlockArrayStatus(const char* gridname);
63 
69  int GetNumberOfPointArrays();
70 
75  const char* GetPointArrayName(int index);
76 
78 
81  int GetPointArrayStatus(const char* name);
82  void SetPointArrayStatus(const char* name, int status);
84 
90  int GetNumberOfCellArrays();
91 
96  const char* GetCellArrayName(int index);
97 
99 
102  int GetCellArrayStatus(const char* name);
103  void SetCellArrayStatus(const char* name, int status);
105 
106 protected:
108  ~vtkTRUCHASReader();
109 
114  vtkInformationVector *) VTK_OVERRIDE;
118  virtual int RequestData(vtkInformation *, vtkInformationVector **,
119  vtkInformationVector *) VTK_OVERRIDE;
120 
121  char *FileName;
122 
123  class Internal;
124  Internal * Internals;
125  friend class Internal;
126 
127  vtkDataArraySelection* BlockChoices;
128  vtkDataArraySelection* PointArrayChoices;
129  vtkDataArraySelection* CellArrayChoices;
130 
131 private:
132  vtkTRUCHASReader(const vtkTRUCHASReader&) VTK_DELETE_FUNCTION;
133  void operator=(const vtkTRUCHASReader&) VTK_DELETE_FUNCTION;
134 
135 };
136 
137 #endif
read GE TRUCHAS format HDF5 files
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
static vtkMultiBlockDataSetAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:33
Store on/off settings for data arrays for a vtkSource.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
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.