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 =========================================================================*/
28 #ifndef vtkOpenVRRenderer_h
29 #define vtkOpenVRRenderer_h
30 
31 #include "vtkOpenGLRenderer.h"
32 #include "vtkRenderingOpenVRModule.h" // For export macro
33 
34 class vtkActor;
35 
36 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRRenderer : public vtkOpenGLRenderer
37 {
38 public:
39  static vtkOpenVRRenderer* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
49  void ResetCamera() override;
50 
60  void ResetCamera(double bounds[6]) override;
61 
65  void ResetCamera(
66  double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) override;
67 
69 
71 
77  void ResetCameraClippingRange(double bounds[6]) override;
79 
83  vtkCamera* MakeCamera() override;
84 
88  void DeviceRender(void);
89 
93  virtual void SetShowFloor(bool);
94  virtual bool GetShowFloor() { return this->ShowFloor; }
95 
96 protected:
98  ~vtkOpenVRRenderer() override;
99 
101  bool ShowFloor;
102 
103 private:
104  vtkOpenVRRenderer(const vtkOpenVRRenderer&) = delete;
105  void operator=(const vtkOpenVRRenderer&) = delete;
106 };
107 
108 #endif
vtkRenderer::ResetCamera
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
vtkRenderer::ResetCameraClippingRange
virtual void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
vtkRenderer::MakeCamera
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
vtkOpenVRRenderer
OpenVR renderer.
Definition: vtkOpenVRRenderer.h:36
vtkOpenGLRenderer::New
static vtkOpenGLRenderer * New()
vtkOpenVRRenderer::GetShowFloor
virtual bool GetShowFloor()
Definition: vtkOpenVRRenderer.h:94
vtkOpenVRRenderer::FloorActor
vtkActor * FloorActor
Definition: vtkOpenVRRenderer.h:100
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:45
vtkOpenGLRenderer
OpenGL renderer.
Definition: vtkOpenGLRenderer.h:45
vtkOpenVRRenderer::ShowFloor
bool ShowFloor
Definition: vtkOpenVRRenderer.h:101
vtkOpenGLRenderer::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLRenderer.h
vtkOpenGLRenderer::DeviceRender
void DeviceRender(void) override
Concrete open gl render method.