VTK  9.2.20221001
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 VTK_ABI_NAMESPACE_BEGIN
33 class vtkActor;
34 
35 class VTKRENDERINGVR_EXPORT vtkVRRenderer : public vtkOpenGLRenderer
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
52  void ResetCamera(const double bounds[6]) override;
53 
55 
57 
60  void ResetCameraClippingRange() override;
61  void ResetCameraClippingRange(const double bounds[6]) override;
63 
68 
72  virtual void GetFloorTransform(vtkTransform* transform);
73 
77  void DeviceRender() override;
78 
80 
83  virtual void SetShowFloor(bool);
84  virtual bool GetShowFloor() { return this->ShowFloor; }
86 
87 protected:
89  ~vtkVRRenderer() override = default;
90 
92  bool ShowFloor = false;
93 
94 private:
95  vtkVRRenderer(const vtkVRRenderer&) = delete;
96  void operator=(const vtkVRRenderer&) = delete;
97 };
98 
99 VTK_ABI_NAMESPACE_END
100 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:162
a virtual camera for 3D rendering
Definition: vtkCamera.h:162
a simple class to control print indentation
Definition: vtkIndent.h:120
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:171
VR renderer.
Definition: vtkVRRenderer.h:36
virtual bool GetShowFloor()
Show the floor of the VR world.
Definition: vtkVRRenderer.h:84
void DeviceRender() override
Render the floor using GetFloorTransform.
vtkNew< vtkActor > FloorActor
Definition: vtkVRRenderer.h:91
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.
vtkCamera * MakeCamera() override=0
Abstract function that creates a new Camera suitable for use with this type of Renderer.
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