VTK  9.1.0
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
31class VTKIOTRUCHAS_EXPORT vtkTRUCHASReader : public vtkMultiBlockDataSetAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
45
49 static int CanReadFile(VTK_FILEPATH const char* filename);
50
52
58 const char* GetBlockArrayName(int index);
59 void SetBlockArrayStatus(const char* gridname, int status);
60 int GetBlockArrayStatus(const char* gridname);
62
69
74 const char* GetPointArrayName(int index);
75
77
80 int GetPointArrayStatus(const char* name);
81 void SetPointArrayStatus(const char* name, int status);
83
90
95 const char* GetCellArrayName(int index);
96
98
101 int GetCellArrayStatus(const char* name);
102 void SetCellArrayStatus(const char* name, int status);
104
105protected:
108
117
118 char* FileName;
119
120 class Internal;
121 Internal* Internals;
122 friend class Internal;
123
127
128private:
129 vtkTRUCHASReader(const vtkTRUCHASReader&) = delete;
130 void operator=(const vtkTRUCHASReader&) = delete;
131};
132
133#endif
Store on/off settings for data arrays for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
read GE TRUCHAS format HDF5 files
int GetNumberOfCellArrays()
Get information about cell-based arrays.
void SetBlockArrayStatus(const char *gridname, int status)
Get/Set information about blocks.
vtkGetFilePathMacro(FileName)
Specify file name of vtk data file to read.
vtkDataArraySelection * CellArrayChoices
void SetPointArrayStatus(const char *name, int status)
Get/Set the point array status.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to announce timesteps we can produce.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to read the file and parse into an output.
~vtkTRUCHASReader() override
int GetNumberOfPointArrays()
Get information about point-based arrays.
const char * GetPointArrayName(int index)
Returns the name of point array at the give index.
int GetCellArrayStatus(const char *name)
Get/Set the cell array status.
vtkDataArraySelection * PointArrayChoices
vtkSetFilePathMacro(FileName)
Specify file name of vtk data file to read.
static int CanReadFile(VTK_FILEPATH const char *filename)
A simple, non-exhaustive check to see if a file is a valid truchas file.
int GetBlockArrayStatus(const char *gridname)
Get/Set information about blocks.
static vtkTRUCHASReader * New()
int GetNumberOfBlockArrays()
Get/Set information about blocks.
vtkDataArraySelection * BlockChoices
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetPointArrayStatus(const char *name)
Get/Set the point array status.
const char * GetCellArrayName(int index)
Returns the name of cell array at the give index.
void SetCellArrayStatus(const char *name, int status)
Get/Set the cell array status.
const char * GetBlockArrayName(int index)
Get/Set information about blocks.
@ name
Definition: vtkX3D.h:225
@ index
Definition: vtkX3D.h:252
#define VTK_FILEPATH