vtkPVServerInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkPVServerInformation_h
13 #define vtkPVServerInformation_h
14 
15 #include <string>
16 
17 #include "vtkPVInformation.h"
18 #include "vtkRemotingCoreModule.h" //needed for exports
19 
21 
23 {
24 public:
25  static vtkPVServerInformation* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
36  vtkSetMacro(RemoteRendering, int);
37  vtkGetMacro(RemoteRendering, int);
39 
43  vtkGetMacro(IsInTileDisplay, bool);
44 
48  vtkGetMacro(IsInCave, bool);
49 
50  void DeepCopy(vtkPVServerInformation* info);
51 
55  void CopyFromObject(vtkObject*) override;
56 
60  void AddInformation(vtkPVInformation*) override;
61 
63 
66  void CopyToStream(vtkClientServerStream*) override;
67  void CopyFromStream(const vtkClientServerStream*) override;
69 
71 
74  vtkSetMacro(UseIceT, int);
75  vtkGetMacro(UseIceT, int);
77 
79 
82  vtkSetMacro(NVPipeSupport, bool);
84  vtkGetMacro(NVPipeSupport, bool);
85 
87 
90  vtkSetMacro(Timeout, int);
91  vtkGetMacro(Timeout, int);
93 
95 
98  const std::string& GetTimeoutCommand() const { return this->TimeoutCommand; }
100 
102 
106  vtkGetMacro(TimeoutCommandInterval, int);
108 
112  vtkGetVector2Macro(TileDimensions, int);
113 
115 
118  vtkGetMacro(NumberOfProcesses, int);
120 
124  virtual bool IsMPIInitialized() const;
125 
127 
130  vtkGetMacro(MultiClientsEnable, int);
132 
134 
137  vtkGetMacro(ClientId, int);
139 
141 
144  vtkSetMacro(IdTypeSize, int);
145  vtkGetMacro(IdTypeSize, int);
147 
149 
152  vtkGetMacro(SMPBackendName, std::string);
154 
156 
159  vtkGetMacro(SMPMaxNumberOfThreads, int);
161 
163 
166  vtkGetMacro(AcceleratedFiltersOverrideAvailable, int);
168 
169 protected:
171  ~vtkPVServerInformation() override;
172 
175  int OGVSupport = 1;
176  int AVISupport = 0;
177  bool NVPipeSupport = false;
178  int RemoteRendering = 1;
179  int Timeout = 0;
180  std::string TimeoutCommand;
181  int TimeoutCommandInterval = 60;
182  int UseIceT;
183  int MultiClientsEnable = 0;
184  int ClientId = 0;
185  int IdTypeSize = 0;
186  bool IsInTileDisplay = false;
187  bool IsInCave = false;
188  int TileDimensions[2] = { 0, 0 };
189  std::string SMPBackendName;
192 
193 private:
195  void operator=(const vtkPVServerInformation&) = delete;
196 };
197 
198 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
void PrintSelf(ostream &os, vtkIndent indent) override
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
Gets features of the server.
Store messages for the interpreter.
const std::string & GetTimeoutCommand() const
Get the timeout command used by the server to retrieve remaining time.
void operator=(const vtkPVInformation &)=delete
#define VTKREMOTINGCORE_EXPORT
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
static vtkObject * New()
Superclass for information objects.