VTK  9.1.0
vtkVRRenderer.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4Module: vtkVRRenderer.h
5
6Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7All rights reserved.
8See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10This software is distributed WITHOUT ANY WARRANTY; without even
11the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12PURPOSE. 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
32class vtkActor;
33
34class VTKRENDERINGVR_EXPORT vtkVRRenderer : public vtkOpenGLRenderer
35{
36public:
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 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
85protected:
87 ~vtkVRRenderer() override = default;
88
91
92private:
93 vtkVRRenderer(const vtkVRRenderer&) = delete;
94 void operator=(const vtkVRRenderer&) = delete;
95};
96
97#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a virtual camera for 3D rendering
Definition: vtkCamera.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
Allocate and hold a VTK object.
Definition: vtkNew.h:165
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
Definition: vtkTransform.h:164
VR renderer.
Definition: vtkVRRenderer.h:35
virtual bool GetShowFloor()
Definition: vtkVRRenderer.h:82
void DeviceRender() override
Render the floor using GetFloorTransform.
vtkNew< vtkActor > FloorActor
Definition: vtkVRRenderer.h:89
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.