VTK  9.1.0
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
32
33class H5RageAdaptor;
34
35class VTKIOH5RAGE_EXPORT vtkH5RageReader : public vtkImageAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
49
51
54 vtkSetMacro(CurrentTimeStep, int);
55 vtkGetMacro(CurrentTimeStep, int);
57
59
65
67
73 const char* GetPointArrayName(int index);
74 int GetPointArrayStatus(const char* name);
75 void SetPointArrayStatus(const char* name, int status);
79
80protected:
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
103
104 // Selected field of interest
106
107 // Observer to modify this object when array selections are modified
109
113
114 static void SelectionCallback(
115 vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
116 static void EventCallback(vtkObject* caller, unsigned long eid, void* clientdata, void* calldata);
117
118private:
119 vtkH5RageReader(const vtkH5RageReader&) = delete;
120 void operator=(const vtkH5RageReader&) = delete;
121};
122
123#endif
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
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...
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Multiprocessing communication superclass.
abstract base class for most VTK objects
Definition: vtkObject.h:82