vtkCinemaDatabaseReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCinemaDatabaseReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
25 #ifndef vtkCinemaDatabaseReader_h
26 #define vtkCinemaDatabaseReader_h
27 
28 #include "vtkNew.h" // for vtkNew
29 #include "vtkPolyDataAlgorithm.h"
30 #include "vtkRemotingCinemaModule.h" // for export macros
31 
32 #include <map> // needed for ivars
33 #include <set> // needed for ivars
34 #include <string> // needed for ivars
35 
36 class vtkCinemaDatabase;
37 class VTKREMOTINGCINEMA_EXPORT vtkCinemaDatabaseReader : public vtkPolyDataAlgorithm
38 {
39 public:
40  static vtkCinemaDatabaseReader* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
54 
58  vtkSetStringMacro(PipelineObject);
59  vtkGetStringMacro(PipelineObject);
61 
63 
67  void ClearControlParameter(const char* pname);
68  void EnableControlParameterValue(const char* pname, const char* value);
69  void EnableControlParameterValue(const char* pname, double value);
71 
72 protected:
74  ~vtkCinemaDatabaseReader() override;
75 
78  int RequestData(
80 
84  std::string GetQueryString(double time) const;
85 
86  char* FileName;
87  std::string OldFileName;
89 
90  typedef std::set<std::string> SetOfStrings;
91  typedef std::map<std::string, SetOfStrings> MapOfVectorOfString;
92 
94 
95 private:
97  void operator=(const vtkCinemaDatabaseReader&) = delete;
98 
100 
101  typedef std::map<double, std::string> TimeStepsMapType;
102  TimeStepsMapType TimeStepsMap;
103 };
104 
105 #endif
std::set< std::string > SetOfStrings
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
std::map< std::string, SetOfStrings > MapOfVectorOfString
class that provides access to cinema_python.database.file_store API.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
MapOfVectorOfString EnabledControlParameterValues
static vtkPolyDataAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
reader for a Cinema database.
void operator=(const vtkObjectBase &)