vtkSpyPlotHistoryReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkSpyPlotHistoryReader.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 =========================================================================*/
24 #ifndef vtkSpyPlotHistoryReader_h
25 #define vtkSpyPlotHistoryReader_h
26 
27 #include "vtkPVVTKExtensionsIOSPCTHModule.h" //needed for exports
28 #include "vtkTableAlgorithm.h"
29 class vtkTable;
30 
32 {
33 public:
34  static vtkSpyPlotHistoryReader* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
43  vtkSetStringMacro(FileName);
44  vtkGetStringMacro(FileName);
46 
48 
51  vtkSetStringMacro(CommentCharacter);
52  vtkGetStringMacro(CommentCharacter);
54 
56 
59  vtkSetStringMacro(Delimeter);
60  vtkGetStringMacro(Delimeter);
62 
63 protected:
65  ~vtkSpyPlotHistoryReader() override;
66 
67  // Read the case file and the first binary file do get meta
68  // information (number of files, number of fields, number of timestep).
69  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector) override;
71 
72  // Read the data: get the number of pieces (=processors) and get
73  // my piece id (=my processor id).
74  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector) override;
76 
77  void FillCache();
78  void ConstructTableColumns(vtkTable* table);
79 
80  char* FileName;
82  char* Delimeter;
83 
84 private:
86 
89  class MetaInfo;
90  MetaInfo* Info;
92 
94 
97  class CachedTables;
98  CachedTables* CachedOutput;
100 
102  void operator=(const vtkSpyPlotHistoryReader&) = delete;
103 };
104 
105 #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 &)