VTK: IO/VeraOut/vtkVeraOutReader.h Source File

| VTK 9.3.1

vtkVeraOutReader.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
3 // .NAME vtkVeraOutReader - File reader for VERA OUT HDF5 format.
4
5 #ifndef vtkVeraOutReader_h
6 #define vtkVeraOutReader_h
7
8 #include "vtkIOVeraOutModule.h" // For VTKIOVERAOUT_EXPORT macro
9 #include <vector> // For STL vector
10
11 // vtkCommonExecutionModel
12 #include "vtkRectilinearGridAlgorithm.h"
13
14 VTK_ABI_NAMESPACE_BEGIN
15 class vtkDataArraySelection;
16
17 class VTKIOVERAOUT_EXPORT vtkVeraOutReader : public vtkRectilinearGridAlgorithm
18 {
19 public:
20 static vtkVeraOutReader* New();
21 vtkTypeMacro(vtkVeraOutReader, vtkRectilinearGridAlgorithm);
22 void PrintSelf(ostream& os, vtkIndent indent) override;
23
24 vtkSetFilePathMacro(FileName);
25 vtkGetFilePathMacro(FileName);
26
30 vtkDataArraySelection* GetCellDataArraySelection() const;
34 vtkDataArraySelection* GetFieldDataArraySelection() const;
35
39 vtkMTimeType GetMTime() override;
40
41 protected:
42 vtkVeraOutReader();
43 ~vtkVeraOutReader() override;
44
45 int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
46
47 // Trigger the real data access
48 int RequestData(
49 vtkInformation*, vtkInformationVector**, vtkInformationVector* outVector) override;
50
51 char* FileName;
52 int NumberOfTimeSteps;
53 std::vector<double> TimeSteps;
54
55 private:
56 vtkVeraOutReader(const vtkVeraOutReader&) = delete;
57 void operator=(const vtkVeraOutReader&) = delete;
58
59 class Internals;
60 Internals* Internal;
61 };
62
63 VTK_ABI_NAMESPACE_END
64 #endif
vtkDataArraySelection
Store on/off settings for data arrays, etc.
Definition: vtkDataArraySelection.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkRectilinearGridAlgorithm
Superclass for algorithms that produce only rectilinear grid as output.
Definition: vtkRectilinearGridAlgorithm.h:33
vtkVeraOutReader
Definition: vtkVeraOutReader.h:18
vtkVeraOutReader::NumberOfTimeSteps
int NumberOfTimeSteps
Definition: vtkVeraOutReader.h:52
vtkVeraOutReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkVeraOutReader::vtkVeraOutReader
vtkVeraOutReader()
vtkVeraOutReader::GetFieldDataArraySelection
vtkDataArraySelection * GetFieldDataArraySelection() const
Get vtkDataArraySelection instance to select field arrays to read.
vtkVeraOutReader::New
static vtkVeraOutReader * New()
vtkVeraOutReader::FileName
char * FileName
Definition: vtkVeraOutReader.h:51
vtkVeraOutReader::vtkSetFilePathMacro
vtkSetFilePathMacro(FileName)
vtkVeraOutReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkVeraOutReader::~vtkVeraOutReader
~vtkVeraOutReader() override
vtkVeraOutReader::GetCellDataArraySelection
vtkDataArraySelection * GetCellDataArraySelection() const
Get vtkDataArraySelection instance to select cell arrays to read.
vtkVeraOutReader::vtkGetFilePathMacro
vtkGetFilePathMacro(FileName)
vtkVeraOutReader::TimeSteps
std::vector< double > TimeSteps
Definition: vtkVeraOutReader.h:53
vtkVeraOutReader::GetMTime
vtkMTimeType GetMTime() override
Override GetMTime because of array selector.
vtkVeraOutReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outVector) override
This is called by the superclass.
vtkRectilinearGridAlgorithm.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270