VTK  9.4.20241121
vtkH5RageReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
11#ifndef vtkH5RageReader_h
12#define vtkH5RageReader_h
13
14#include "vtkIOH5RageModule.h" // For export macro
15#include "vtkImageAlgorithm.h"
16
17VTK_ABI_NAMESPACE_BEGIN
21
22class H5RageAdaptor;
23
24class VTKIOH5RAGE_EXPORT vtkH5RageReader : public vtkImageAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
38
40
43 vtkSetMacro(CurrentTimeStep, int);
44 vtkGetMacro(CurrentTimeStep, int);
46
48
54
56
62 const char* GetPointArrayName(int index);
63 int GetPointArrayStatus(const char* name);
64 void SetPointArrayStatus(const char* name, int status);
68
69protected:
71 ~vtkH5RageReader() override;
72
73 char* FileName; // First field part file giving path
74
75 int Rank; // Number of this processor
76 int TotalRank; // Number of processors
77
79
80 int WholeExtent[6]; // Size of image
81 int SubExtent[6]; // Size of image this processor
82 int Dimension[3]; // Dimension of image
83 double Origin[3]; // Physical origin
84 double Spacing[3]; // Physical spacing
85
87 double* TimeSteps; // Times available for request
88 int CurrentTimeStep; // Time currently displayed
89
90 // Controls initializing and querying MPI
93
94 // Selected field of interest
96
97 // Observer to modify this object when array selections are modified
99
103
104 static void SelectionCallback(
105 vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
106 static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
107
108private:
109 vtkH5RageReader(const vtkH5RageReader&) = delete;
110 void operator=(const vtkH5RageReader&) = delete;
111};
112
113VTK_ABI_NAMESPACE_END
114#endif
supports function callbacks
Store on/off settings for data arrays, etc.
class for reading Rage HDF data files
vtkImageData * GetOutput(int index)
Get the reader's output.
static void EventCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
vtkSetFilePathMacro(FileName)
Specify file name of H5Rage data file to read.
~vtkH5RageReader() override
static vtkH5RageReader * New()
vtkGetFilePathMacro(FileName)
Specify file name of H5Rage data file to read.
static void SelectionCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
void DisableAllPointArrays()
The following methods allow selective reading of solutions fields.
int GetNumberOfPointArrays()
The following methods allow selective reading of solutions fields.
int GetPointArrayStatus(const char *name)
The following methods allow selective reading of solutions fields.
vtkMultiProcessController * Controller
vtkImageData * GetOutput()
Get the reader's output.
vtkCallbackCommand * SelectionObserver
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called in response to a REQUEST_DATA request from the executive.
vtkDataArraySelection * PointDataArraySelection
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetPointArrayName(int index)
The following methods allow selective reading of solutions fields.
void SetPointArrayStatus(const char *name, int status)
The following methods allow selective reading of solutions fields.
void EnableAllPointArrays()
The following methods allow selective reading of solutions fields.
H5RageAdaptor * H5rageAdaptor
int RequestInformation(vtkInformation *, vtkInformationVector **inVector, vtkInformationVector *) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
void SetController(vtkMultiProcessController *)
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
abstract base class for most VTK objects
Definition vtkObject.h:162