ParaView
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 "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
28 #include "vtkTableAlgorithm.h"
29 class vtkTable;
30 
31 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkSpyPlotHistoryReader : public vtkTableAlgorithm
32 {
33 public:
34  static vtkSpyPlotHistoryReader* New();
35  vtkTypeMacro(vtkSpyPlotHistoryReader, vtkTableAlgorithm);
36  void PrintSelf(ostream& os, vtkIndent indent);
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:
66 
67  // Read the case file and the first binary file do get meta
68  // informations (number of files, number of fields, number of timestep).
69  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector);
71 
72  // Read the data: get the number of pieces (=processors) and get
73  // my piece id (=my processor id).
74  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector);
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 
101  vtkSpyPlotHistoryReader(const vtkSpyPlotHistoryReader&) VTK_DELETE_FUNCTION;
102  void operator=(const vtkSpyPlotHistoryReader&) VTK_DELETE_FUNCTION;
103 };
104 
105 #endif
Read SPCTH Spy Plot history file format.