VTK  9.2.6
vtkVRRenderer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkVRRenderer.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
25 #ifndef vtkVRRenderer_h
26 #define vtkVRRenderer_h
27 
28 #include "vtkNew.h" // for ivar
29 #include "vtkOpenGLRenderer.h"
30 #include "vtkRenderingVRModule.h" // For export macro
31 
32 class vtkActor;
33 
34 class VTKRENDERINGVR_EXPORT vtkVRRenderer : public vtkOpenGLRenderer
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
51  void ResetCamera(const double bounds[6]) override;
52 
54 
56 
59  void ResetCameraClippingRange() override;
60  void ResetCameraClippingRange(const double bounds[6]) override;
62 
66  VTK_NEWINSTANCE vtkCamera* MakeCamera() override = 0;
67 
71  virtual void GetFloorTransform(vtkTransform* transform);
72 
76  void DeviceRender() override;
77 
81  virtual void SetShowFloor(bool);
82  virtual bool GetShowFloor() { return this->ShowFloor; }
84 
85 protected:
86  vtkVRRenderer();
87  ~vtkVRRenderer() override = default;
88 
90  bool ShowFloor = false;
91 
92 private:
93  vtkVRRenderer(const vtkVRRenderer&) = delete;
94  void operator=(const vtkVRRenderer&) = delete;
95 };
96 
97 #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:51
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
VR renderer.
Definition: vtkVRRenderer.h:34
vtkNew< vtkActor > FloorActor
Definition: vtkVRRenderer.h:89
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:60
virtual void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool GetShowFloor()
Definition: vtkVRRenderer.h:82
#define VTK_NEWINSTANCE
void DeviceRender(void) override
Concrete open gl render method.
OpenGL renderer.