vtkSpyPlotHistoryReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkSpyPlotHistoryReader_h
14 #define vtkSpyPlotHistoryReader_h
15 
16 #include "vtkPVVTKExtensionsIOSPCTHModule.h" //needed for exports
17 #include "vtkTableAlgorithm.h"
18 class vtkTable;
19 
21 {
22 public:
23  static vtkSpyPlotHistoryReader* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
28 
32  vtkSetStringMacro(FileName);
33  vtkGetStringMacro(FileName);
35 
37 
40  vtkSetStringMacro(CommentCharacter);
41  vtkGetStringMacro(CommentCharacter);
43 
45 
48  vtkSetStringMacro(Delimeter);
49  vtkGetStringMacro(Delimeter);
51 
52 protected:
54  ~vtkSpyPlotHistoryReader() override;
55 
56  // Read the case file and the first binary file do get meta
57  // information (number of files, number of fields, number of timestep).
58  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
59  vtkInformationVector* outputVector) override;
60 
61  // Read the data: get the number of pieces (=processors) and get
62  // my piece id (=my processor id).
63  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector) override;
65 
66  void FillCache();
67  void ConstructTableColumns(vtkTable* table);
68 
69  char* FileName;
71  char* Delimeter;
72 
73 private:
75 
78  class MetaInfo;
79  MetaInfo* Info;
81 
83 
86  class CachedTables;
87  CachedTables* CachedOutput;
89 
91  void operator=(const vtkSpyPlotHistoryReader&) = delete;
92 };
93 
94 #endif
static vtkTableAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Read SPCTH Spy Plot history file format.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKPVVTKEXTENSIONSIOSPCTH_EXPORT
void operator=(const vtkObjectBase &)