VTK  9.3.1
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 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkCallbackCommand;
21 
22 class H5RageAdaptor;
23 
24 class VTKIOH5RAGE_EXPORT vtkH5RageReader : public vtkImageAlgorithm
25 {
26 public:
27  static vtkH5RageReader* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
32 
35  vtkSetFilePathMacro(FileName);
36  vtkGetFilePathMacro(FileName);
38 
40 
43  vtkSetMacro(CurrentTimeStep, int);
44  vtkGetMacro(CurrentTimeStep, int);
46 
48 
54 
56 
61  int GetNumberOfPointArrays();
62  const char* GetPointArrayName(int index);
63  int GetPointArrayStatus(const char* name);
64  void SetPointArrayStatus(const char* name, int status);
65  void DisableAllPointArrays();
66  void EnableAllPointArrays();
68 
69 protected:
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
91  void SetController(vtkMultiProcessController*);
93 
94  // Selected field of interest
96 
97  // Observer to modify this object when array selections are modified
99 
101  int RequestInformation(
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 
108 private:
109  vtkH5RageReader(const vtkH5RageReader&) = delete;
110  void operator=(const vtkH5RageReader&) = delete;
111 };
112 
113 VTK_ABI_NAMESPACE_END
114 #endif
class for reading Rage HDF data files
abstract base class for most VTK objects
Definition: vtkObject.h:51
Store vtkAlgorithm input/output information.
H5RageAdaptor * H5rageAdaptor
vtkImageData * GetOutput()
Get the output data object for a port on this algorithm.
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
Store on/off settings for data arrays, etc.
vtkDataArraySelection * PointDataArraySelection
vtkMultiProcessController * Controller
Generic algorithm superclass for image algs.
vtkCallbackCommand * SelectionObserver
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
Multiprocessing communication superclass.