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 "vtkPVInformation.h"
28 #include "vtkRemotingCoreModule.h" //needed for exports
29 
32 
34 {
35 public:
36  static vtkPVServerInformation* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
47  vtkSetMacro(RemoteRendering, int);
48  vtkGetMacro(RemoteRendering, int);
50 
51  void DeepCopy(vtkPVServerInformation* info);
52 
56  void CopyFromObject(vtkObject*) override;
57 
61  void AddInformation(vtkPVInformation*) override;
62 
64 
67  void CopyToStream(vtkClientServerStream*) override;
68  void CopyFromStream(const vtkClientServerStream*) override;
70 
72 
75  vtkSetVector2Macro(TileDimensions, int);
76  vtkGetVector2Macro(TileDimensions, int);
77  vtkSetVector2Macro(TileMullions, int);
78  vtkGetVector2Macro(TileMullions, int);
80 
82 
85  vtkSetMacro(UseIceT, int);
86  vtkGetMacro(UseIceT, int);
88 
90 
94  vtkSetMacro(NVPipeSupport, bool);
95  vtkGetMacro(NVPipeSupport, bool);
96 
98 
101  vtkSetMacro(Timeout, int);
102  vtkGetMacro(Timeout, int);
104 
106 
109  void SetEyeSeparation(double value);
110  double GetEyeSeparation() const;
112 
114 
119  void SetNumberOfMachines(unsigned int num);
120  unsigned int GetNumberOfMachines() const;
122 
124 
127  void SetEnvironment(unsigned int idx, const char* name);
128  const char* GetEnvironment(unsigned int idx) const;
130 
132 
136  void SetGeometry(unsigned int idx, int geo[4]);
137  int* GetGeometry(unsigned int idx) const;
139 
141 
144  void SetFullScreen(unsigned int idx, bool fullscreen);
145  bool GetFullScreen(unsigned int idx) const;
147 
149 
152  void SetShowBorders(unsigned int idx, bool borders);
153  bool GetShowBorders(unsigned int idx) const;
155 
157 
160  int GetStereoType(unsigned int idx) const;
161  void SetStereoType(unsigned int idx, int type);
163 
165 
168  void SetLowerLeft(unsigned int idx, double coord[3]);
169  double* GetLowerLeft(unsigned int idx) const;
171 
173 
176  void SetLowerRight(unsigned int idx, double coord[3]);
177  double* GetLowerRight(unsigned int idx) const;
179 
181 
184  void SetUpperRight(unsigned int idx, double coord[3]);
185  double* GetUpperRight(unsigned int idx) const;
187 
189 
192  vtkGetMacro(NumberOfProcesses, int);
194 
198  virtual bool IsMPIInitialized() const;
199 
201 
204  vtkGetMacro(MultiClientsEnable, int);
206 
208 
211  vtkGetMacro(ClientId, int);
213 
215 
218  vtkSetMacro(IdTypeSize, int);
219  vtkGetMacro(IdTypeSize, int);
221 
222 protected:
224  ~vtkPVServerInformation() override;
225 
232  int TileDimensions[2];
233  int TileMullions[2];
234  int Timeout;
235  int UseIceT;
237  int ClientId;
239 
241 
243  void operator=(const vtkPVServerInformation&) = delete;
244 };
245 
246 #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.
vtkPVServerOptionsInternals * MachinesInternals
Store messages for the interpreter.
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.