VTK  9.0.1
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 =========================================================================*/
25 #ifndef vtkOpenVRRenderer_h
26 #define vtkOpenVRRenderer_h
27 
28 #include "vtkOpenGLRenderer.h"
29 #include "vtkRenderingOpenVRModule.h" // For export macro
30 
31 class vtkActor;
32 
33 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRRenderer : public vtkOpenGLRenderer
34 {
35 public:
36  static vtkOpenVRRenderer* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
46  void ResetCamera() override;
47 
57  void ResetCamera(double bounds[6]) override;
58 
62  void ResetCamera(
63  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override;
64 
66 
68 
74  void ResetCameraClippingRange(double bounds[6]) override;
76 
80  vtkCamera* MakeCamera() override;
81 
85  void DeviceRender(void);
86 
90  virtual void SetShowFloor(bool);
91  virtual bool GetShowFloor() { return this->ShowFloor; }
92 
93 protected:
95  ~vtkOpenVRRenderer() override;
96 
98  bool ShowFloor;
99 
100 private:
101  vtkOpenVRRenderer(const vtkOpenVRRenderer&) = delete;
102  void operator=(const vtkOpenVRRenderer&) = delete;
103 };
104 
105 #endif
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
virtual bool GetShowFloor()
virtual void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
OpenVR renderer.
a simple class to control print indentation
Definition: vtkIndent.h:33
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkOpenGLRenderer * New()
void DeviceRender(void) override
Concrete open gl render method.
OpenGL renderer.