vtkPVServerOptions.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVServerOptions.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 =========================================================================*/
26 #ifndef vtkPVServerOptions_h
27 #define vtkPVServerOptions_h
28 
29 #include "vtkPVOptions.h"
30 #include "vtkRemotingCoreModule.h" //needed for exports
31 
33 
35 {
36 public:
37  static vtkPVServerOptions* New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
46  vtkGetStringMacro(ClientHostName);
48 
50 
54  vtkGetMacro(ServerPort, int);
56 
61  int ParseExtraXMLTag(const char* name, const char** atts) override;
62 
64 
67  double GetEyeSeparation() const;
68  unsigned int GetNumberOfMachines() const;
69  const char* GetMachineName(unsigned int idx) const;
70  const char* GetDisplayName(unsigned int idx) const;
71  int* GetGeometry(unsigned int idx) const;
72  bool GetFullScreen(unsigned int idx) const;
73  bool GetShowBorders(unsigned int idx) const;
74  double* GetLowerLeft(unsigned int idx) const;
75  double* GetLowerRight(unsigned int idx) const;
76  double* GetUpperRight(unsigned int idx) const;
77  bool GetCaveBoundsSet(unsigned int idx) const;
79 
80  // Returns -1 to indicate not stereo type was specified. 0 indicate no stereo
81  // is to be used.
82  int GetStereoType(unsigned int idx) const;
83  char* GetStereoType() override { return this->Superclass::GetStereoType(); }
84 
85  bool GetIsInCave() const override;
86 
87 protected:
91  int AddMachineInformation(const char** atts);
92 
96  int AddEyeSeparationInformation(const char** atts);
97 
102 
106  ~vtkPVServerOptions() override;
107 
108  void Initialize() override;
109 
110  vtkSetStringMacro(ClientHostName);
111  char* ClientHostName;
112 
114 
115 private:
116  vtkPVServerOptions(const vtkPVServerOptions&) = delete;
117  void operator=(const vtkPVServerOptions&) = delete;
118 
119  vtkPVServerOptionsInternals* Internals;
120 };
121 
122 #endif // #ifndef vtkPVServerOptions_h
void Initialize() override
Initialize arguments.
virtual int ParseExtraXMLTag(const char *, const char **)
Pass in the name and the attributes for all tags that are not Options.
void PrintSelf(ostream &os, vtkIndent indent) override
ParaView options for server executables.
char * GetStereoType() override
virtual char * GetStereoType()
#define VTKREMOTINGCORE_EXPORT
virtual bool GetIsInCave() const
Returns true of CAVE configuration is requested.
ParaView options storage.
Definition: vtkPVOptions.h:37
static vtkPVOptions * New()