ParaView
vtkCaveSynchronizedRenderers.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkCaveSynchronizedRenderers.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 =========================================================================*/
27 #ifndef vtkCaveSynchronizedRenderers_h
28 #define vtkCaveSynchronizedRenderers_h
29 
30 #include "vtkPVClientServerCoreRenderingModule.h" //needed for exports
31 #include "vtkSynchronizedRenderers.h"
32 
33 class vtkCamera;
34 class vtkMatrix4x4;
35 
36 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkCaveSynchronizedRenderers
37  : public vtkSynchronizedRenderers
38 {
39 public:
40  static vtkCaveSynchronizedRenderers* New();
41  vtkTypeMacro(vtkCaveSynchronizedRenderers, vtkSynchronizedRenderers);
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
44 protected:
47 
52  virtual void HandleStartRender();
53 
58  void ProcessCaveConfiguration();
59 
64  void SetNumberOfDisplays(int numberOfDisplays);
65 
69  void SetEyeSeparation(double eyeSeparation);
70 
71  void DefineDisplay(int idx, double origin[3], double x[3], double y[3]);
72 
76  void ComputeCamera(vtkCamera* cam);
77 
78  double EyeSeparation;
80  double** Displays;
81  double DisplayOrigin[3];
82  double DisplayX[3];
83  double DisplayY[3];
84  int once;
85 
86 private:
88  void operator=(const vtkCaveSynchronizedRenderers&) VTK_DELETE_FUNCTION;
89 };
90 
91 #endif
vtkSynchronizedRenderers subclass that handles adjusting of camera for cave configurations.