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=========================================================================*/
25
26#ifndef vtkTRUCHASReader_h
27#define vtkTRUCHASReader_h
28
29#include "vtkIOTRUCHASModule.h" // For export macro
31
33
34class VTKIOTRUCHAS_EXPORT vtkTRUCHASReader : public vtkMultiBlockDataSetAlgorithm
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
48
52 static int CanReadFile(VTK_FILEPATH const char* filename);
53
55
61 const char* GetBlockArrayName(int index);
62 void SetBlockArrayStatus(const char* gridname, int status);
63 int GetBlockArrayStatus(const char* gridname);
65
72
77 const char* GetPointArrayName(int index);
78
80
83 int GetPointArrayStatus(const char* name);
84 void SetPointArrayStatus(const char* name, int status);
86
93
98 const char* GetCellArrayName(int index);
99
101
104 int GetCellArrayStatus(const char* name);
105 void SetCellArrayStatus(const char* name, int status);
107
108protected:
111
120
121 char* FileName;
122
123 class Internal;
125 friend class Internal;
126
130
131private:
132 vtkTRUCHASReader(const vtkTRUCHASReader&) = delete;
133 void operator=(const vtkTRUCHASReader&) = delete;
134};
135
136#endif
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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.
friend class Internal
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.
#define VTK_FILEPATH