vtkPVCinemaDatabaseInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCinemaDatabaseInformation.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 =========================================================================*/
29 #ifndef vtkPVCinemaDatabaseInformation_h
30 #define vtkPVCinemaDatabaseInformation_h
31 
32 #include "vtkPVInformation.h"
33 #include "vtkRemotingCinemaModule.h" // for export macros
34 #include <map> // needed for map
35 #include <string> // needed for string
36 #include <vector> // needed for vector
37 
38 class VTKREMOTINGCINEMA_EXPORT vtkPVCinemaDatabaseInformation : public vtkPVInformation
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45  void CopyFromObject(vtkObject*) override;
46  void AddInformation(vtkPVInformation*) override;
47  void CopyToStream(vtkClientServerStream*) override;
48  void CopyFromStream(const vtkClientServerStream*) override;
49 
50  typedef std::vector<std::string> VectorOfStrings;
52  typedef std::map<std::string, VectorOfStrings> ControlParametersType;
53  typedef std::map<std::string, VectorOfStrings> PipelineObjectParentsType;
54  typedef std::map<std::string, bool> PipelineObjectVisibilitiesType;
55 
59  const PipelineObjectsType& GetPipelineObjects() const { return this->PipelineObjects; }
60 
64  const ControlParametersType& GetControlParameters() const { return this->ControlParameters; }
65 
69  const VectorOfStrings& GetControlParameters(const std::string& parameter) const;
70 
74  const VectorOfStrings& GetControlParameterValues(const std::string& parameter) const;
75 
79  bool GetPipelineObjectVisibility(const std::string& object) const;
80 
89  {
90  return this->PipelineObjectParents;
91  }
92 
96  const VectorOfStrings& GetPipelineObjectParents(const std::string& object) const;
97 
98 protected:
100  ~vtkPVCinemaDatabaseInformation() override;
101 
102  void Reset();
103 
109 
110 private:
112  void operator=(const vtkPVCinemaDatabaseInformation&) = delete;
113 };
114 
115 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
PipelineObjectVisibilitiesType PipelineObjectVisibilities
void PrintSelf(ostream &os, vtkIndent indent) override
std::map< std::string, VectorOfStrings > PipelineObjectParentsType
const PipelineObjectParentsType & GetPipelineObjectParents() const
Returns a map with information about parents for each pipeline object.
Store messages for the interpreter.
const ControlParametersType & GetControlParameters() const
Returns a map of control parameters.
const PipelineObjectsType & GetPipelineObjects() const
Returns a list of the pipeline objects in the cinema database.
void operator=(const vtkPVInformation &)=delete
provides information about a CinemaDatabase.
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
std::map< std::string, bool > PipelineObjectVisibilitiesType
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
static vtkObject * New()
std::map< std::string, VectorOfStrings > ControlParametersType
Superclass for information objects.