VTK  9.3.0
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
20VTK_ABI_NAMESPACE_BEGIN
21class vtkActor;
22
23class VTKRENDERINGVR_EXPORT vtkVRRenderer : public vtkOpenGLRenderer
24{
25public:
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
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
75protected:
77 ~vtkVRRenderer() override = default;
78
80 bool ShowFloor = false;
81
82private:
83 vtkVRRenderer(const vtkVRRenderer&) = delete;
84 void operator=(const vtkVRRenderer&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
a virtual camera for 3D rendering
Definition vtkCamera.h:41
a simple class to control print indentation
Definition vtkIndent.h:29
Allocate and hold a VTK object.
Definition vtkNew.h:51
OpenGL renderer.
virtual void ResetCameraClippingRange()
Reset the camera clipping range based on the bounds of the visible actors.
virtual void ResetCamera()
Automatically set up the camera based on the visible actors.
describes linear transformations via a 4x4 matrix
VR renderer.
virtual bool GetShowFloor()
Show the floor of the VR world.
void DeviceRender() override
Render the floor using GetFloorTransform.
vtkNew< vtkActor > FloorActor
vtkCamera * MakeCamera() override=0
Abstract function that creates a new Camera suitable for use with this type of Renderer.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ResetCameraClippingRange(const double bounds[6]) override
Reset the camera clipping range based on a bounding box.
~vtkVRRenderer() override=default
virtual void GetFloorTransform(vtkTransform *transform)
Store in transform the floor transform.
virtual void SetShowFloor(bool)
Show the floor of the VR world.
void ResetCamera(const double bounds[6]) override
Automatically set up the camera based on a specified bounding box (xmin,xmax, ymin,...
void ResetCameraClippingRange() override
Reset the camera clipping range based on a bounding box.
#define VTK_NEWINSTANCE