VTK  9.2.6
vtkH5RageReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkH5RageReader.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 vtkH5RageReader_h
24 #define vtkH5RageReader_h
25 
26 #include "vtkIOH5RageModule.h" // For export macro
27 #include "vtkImageAlgorithm.h"
28 
29 class vtkCallbackCommand;
32 
33 class H5RageAdaptor;
34 
35 class VTKIOH5RAGE_EXPORT vtkH5RageReader : public vtkImageAlgorithm
36 {
37 public:
38  static vtkH5RageReader* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkSetFilePathMacro(FileName);
47  vtkGetFilePathMacro(FileName);
49 
51 
54  vtkSetMacro(CurrentTimeStep, int);
55  vtkGetMacro(CurrentTimeStep, int);
57 
59 
65 
67 
72  int GetNumberOfPointArrays();
73  const char* GetPointArrayName(int index);
74  int GetPointArrayStatus(const char* name);
75  void SetPointArrayStatus(const char* name, int status);
76  void DisableAllPointArrays();
77  void EnableAllPointArrays();
79 
80 protected:
82  ~vtkH5RageReader() override;
83 
84  char* FileName; // First field part file giving path
85 
86  int Rank; // Number of this processor
87  int TotalRank; // Number of processors
88 
90 
91  int WholeExtent[6]; // Size of image
92  int SubExtent[6]; // Size of image this processor
93  int Dimension[3]; // Dimension of image
94  double Origin[3]; // Physical origin
95  double Spacing[3]; // Physical spacing
96 
98  double* TimeSteps; // Times available for request
99  int CurrentTimeStep; // Time currently displayed
100 
101  // Controls initializing and querying MPI
102  void SetController(vtkMultiProcessController*);
104 
105  // Selected field of interest
107 
108  // Observer to modify this object when array selections are modified
110 
112  int RequestInformation(
114 
115  static void SelectionCallback(
116  vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
117  static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
118 
119 private:
120  vtkH5RageReader(const vtkH5RageReader&) = delete;
121  void operator=(const vtkH5RageReader&) = delete;
122 };
123 
124 #endif
class for reading Rage HDF data files
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
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.