vtkInSituInitializationHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkInSituInitializationHelper.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 =========================================================================*/
43 #ifndef vtkInSituInitializationHelper_h
44 #define vtkInSituInitializationHelper_h
45 
46 #include "vtkObject.h"
47 #include "vtkPVInSituModule.h" // For windows import/export of shared libraries
48 
49 class vtkCPCxxHelper;
50 class vtkInSituPipeline;
51 class vtkSMSourceProxy;
52 
53 #include <string> // for std::string
54 
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
74  static void Initialize(vtkTypeUInt64 comm);
75 
80  static void Finalize();
81 
88  static void AddPipeline(const std::string& path);
89 
93  static void AddPipeline(vtkInSituPipeline* pipeline);
94 
102  static void SetProducer(const std::string& channelName, vtkSMSourceProxy* producer);
103 
107  static vtkSMSourceProxy* GetProducer(const std::string& channelName);
108 
112  static void UpdateAllProducers(double time);
113 
115 
119  static void MarkProducerModified(const std::string& channelName);
120  static void MarkProducerModified(vtkSMSourceProxy* producer);
122 
126  static bool ExecutePipelines(int timestep, double time);
127 
129 
133  static int GetTimeStep();
134  static double GetTime();
136 
141  static bool IsInitialized() { return vtkInSituInitializationHelper::Internals != nullptr; }
142 
146  static bool IsPythonSupported();
147 
148 protected:
151 
152 private:
154  void operator=(const vtkInSituInitializationHelper&) = delete;
155 
156  static int WasInitializedOnce;
157  static int WasFinalizedOnce;
158 
159  class vtkInternals;
160  static vtkInternals* Internals;
161 };
162 
163 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static bool IsInitialized()
Returns true if vtkInSituInitializationHelper has been initialized; which means that ParaView is oper...
Singleton class for initializing without python.
proxy for a VTK source on a server
#define VTKPVINSITU_EXPORT
initialization helper for in situ environments.
abstract base class for all in situ pipelines.
void operator=(const vtkObjectBase &)