VTK  9.3.1
vtkVRRenderer.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkVRRenderer_h
14 #define vtkVRRenderer_h
15 
16 #include "vtkNew.h" // for ivar
17 #include "vtkOpenGLRenderer.h"
18 #include "vtkRenderingVRModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkActor;
22 
23 class VTKRENDERINGVR_EXPORT vtkVRRenderer : public vtkOpenGLRenderer
24 {
25 public:
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
30 
40  void ResetCamera(const double bounds[6]) override;
41 
43 
45 
48  void ResetCameraClippingRange() override;
49  void ResetCameraClippingRange(const double bounds[6]) override;
51 
55  VTK_NEWINSTANCE vtkCamera* MakeCamera() override = 0;
56 
60  virtual void GetFloorTransform(vtkTransform* transform);
61 
65  void DeviceRender() override;
66 
68 
71  virtual void SetShowFloor(bool);
72  virtual bool GetShowFloor() { return this->ShowFloor; }
74 
75 protected:
76  vtkVRRenderer();
77  ~vtkVRRenderer() override = default;
78 
80  bool ShowFloor = false;
81 
82 private:
83  vtkVRRenderer(const vtkVRRenderer&) = delete;
84  void operator=(const vtkVRRenderer&) = delete;
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 #endif
virtual vtkCamera * MakeCamera()
Create a new Camera sutible for use with this type of Renderer.
void DeviceRender() override
Concrete open gl render method.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:40
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
VR renderer.
Definition: vtkVRRenderer.h:23
vtkNew< vtkActor > FloorActor
Definition: vtkVRRenderer.h:79
describes linear transformations via a 4x4 matrix
Definition: vtkTransform.h:49
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:28
a virtual camera for 3D rendering
Definition: vtkCamera.h:40
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual bool GetShowFloor()
Show the floor of the VR world.
Definition: vtkVRRenderer.h:72
#define VTK_NEWINSTANCE
OpenGL renderer.