vtkPVServerInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVServerInformation.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 =========================================================================*/
24 #ifndef vtkPVServerInformation_h
25 #define vtkPVServerInformation_h
26 
27 #include <string>
28 
29 #include "vtkPVInformation.h"
30 #include "vtkRemotingCoreModule.h" //needed for exports
31 
33 
35 {
36 public:
37  static vtkPVServerInformation* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
48  vtkSetMacro(RemoteRendering, int);
49  vtkGetMacro(RemoteRendering, int);
51 
55  vtkGetMacro(IsInTileDisplay, bool);
56 
60  vtkGetMacro(IsInCave, bool);
61 
62  void DeepCopy(vtkPVServerInformation* info);
63 
67  void CopyFromObject(vtkObject*) override;
68 
72  void AddInformation(vtkPVInformation*) override;
73 
75 
78  void CopyToStream(vtkClientServerStream*) override;
79  void CopyFromStream(const vtkClientServerStream*) override;
81 
83 
86  vtkSetMacro(UseIceT, int);
87  vtkGetMacro(UseIceT, int);
89 
91 
94  vtkSetMacro(NVPipeSupport, bool);
96  vtkGetMacro(NVPipeSupport, bool);
97 
99 
102  vtkSetMacro(Timeout, int);
103  vtkGetMacro(Timeout, int);
105 
107 
110  const std::string& GetTimeoutCommand() const { return this->TimeoutCommand; }
112 
116  vtkGetVector2Macro(TileDimensions, int);
117 
119 
122  vtkGetMacro(NumberOfProcesses, int);
124 
128  virtual bool IsMPIInitialized() const;
129 
131 
134  vtkGetMacro(MultiClientsEnable, int);
136 
138 
141  vtkGetMacro(ClientId, int);
143 
145 
148  vtkSetMacro(IdTypeSize, int);
149  vtkGetMacro(IdTypeSize, int);
151 
153 
156  vtkGetMacro(SMPBackendName, std::string);
158 
160 
163  vtkGetMacro(SMPMaxNumberOfThreads, int);
165 
167 
170  vtkGetMacro(AcceleratedFiltersOverrideAvailable, int);
172 
173 protected:
175  ~vtkPVServerInformation() override;
176 
183  int Timeout;
184  std::string TimeoutCommand;
185  int UseIceT;
187  int ClientId;
190  bool IsInCave;
191  int TileDimensions[2];
192  std::string SMPBackendName;
195 
196 private:
198  void operator=(const vtkPVServerInformation&) = delete;
199 };
200 
201 #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.