ParaView
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 "vtkPVClientServerCoreCoreModule.h" //needed for exports
30 #include "vtkPVOptions.h"
31 
33 
34 class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPVServerOptions : public vtkPVOptions
35 {
36 public:
37  static vtkPVServerOptions* New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
46  vtkGetStringMacro(ClientHostName);
48 
50 
54  vtkGetMacro(ServerPort, int);
56 
61  virtual int ParseExtraXMLTag(const char* name, const char** atts);
62 
64 
67  double GetEyeSeparation();
68  unsigned int GetNumberOfMachines();
69  const char* GetMachineName(unsigned int idx);
70  const char* GetDisplayName(unsigned int idx);
71  int* GetGeometry(unsigned int idx);
72  bool GetFullScreen(unsigned int idx);
73  bool GetShowBorders(unsigned int idx);
74  double* GetLowerLeft(unsigned int idx);
75  double* GetLowerRight(unsigned int idx);
76  double* GetUpperRight(unsigned int idx);
78 
79  // Returns -1 to indicate not stereo type was specified. 0 indicate no stereo
80  // is to be used.
81  int GetStereoType(unsigned int idx);
82  virtual char* GetStereoType() { return this->Superclass::GetStereoType(); }
83 protected:
87  int AddMachineInformation(const char** atts);
88 
92  int AddEyeSeparationInformation(const char** atts);
93 
98 
102  virtual ~vtkPVServerOptions();
103 
104  virtual void Initialize();
105 
106  vtkSetStringMacro(ClientHostName);
107  char* ClientHostName;
108 
110 
111 private:
112  vtkPVServerOptions(const vtkPVServerOptions&) VTK_DELETE_FUNCTION;
113  void operator=(const vtkPVServerOptions&) VTK_DELETE_FUNCTION;
114 
115  vtkPVServerOptionsInternals* Internals;
116 };
117 
118 #endif // #ifndef vtkPVServerOptions_h
void PrintSelf(ostream &os, vtkIndent indent)
virtual void Initialize()
Initialize arguments.
virtual int ParseExtraXMLTag(const char *, const char **)
Pass in the name and the attributes for all tags that are not Options.
ParaView options for server executables.
virtual char * GetStereoType()
ParaView options storage.
Definition: vtkPVOptions.h:33
static vtkPVOptions * New()
virtual char * GetStereoType()