VTK  9.0.3
vtkOpenVRRenderer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 
5 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6 All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
22 #ifndef vtkOpenVRRenderer_h
23 #define vtkOpenVRRenderer_h
24 
25 #include "vtkOpenGLRenderer.h"
26 #include "vtkRenderingOpenVRModule.h" // For export macro
27 
28 class vtkActor;
29 
30 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRRenderer : public vtkOpenGLRenderer
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
43  void ResetCamera() override;
44 
54  void ResetCamera(double bounds[6]) override;
55 
60  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override;
61 
63 
65 
71  void ResetCameraClippingRange(double bounds[6]) override;
73 
77  vtkCamera* MakeCamera() override;
78 
82  void DeviceRender(void);
83 
87  virtual void SetShowFloor(bool);
88  virtual bool GetShowFloor() { return this->ShowFloor; }
89 
90 protected:
92  ~vtkOpenVRRenderer() override;
93 
95  bool ShowFloor;
96 
97 private:
98  vtkOpenVRRenderer(const vtkOpenVRRenderer&) = delete;
99  void operator=(const vtkOpenVRRenderer&) = delete;
100 };
101 
102 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:46
a virtual camera for 3D rendering
Definition: vtkCamera.h:46
a simple class to control print indentation
Definition: vtkIndent.h:34
OpenGL renderer.
OpenVR renderer.
void ResetCameraClippingRange(double bounds[6]) override
Reset the camera clipping range based on a bounding box.
~vtkOpenVRRenderer() override
static vtkOpenVRRenderer * New()
void DeviceRender(void)
Concrete open gl render method.
virtual bool GetShowFloor()
vtkCamera * MakeCamera() override
Create a new Camera suitable for use with this type of Renderer.
void ResetCamera() override
Automatically set up the camera based on the visible actors.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetShowFloor(bool)
SHow the floor of the VR world.
void ResetCamera(double bounds[6]) override
Automatically set up the camera based on a specified bounding box (xmin,xmax, ymin,...
void ResetCamera(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override
Alternative version of ResetCamera(bounds[6]);.
virtual void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.