VTK  9.2.6
vtkVRFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVRFollower.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 =========================================================================*/
22 #ifndef vtkVRFollower_h
23 #define vtkVRFollower_h
24 
25 #include "vtkFollower.h"
26 #include "vtkRenderingVRModule.h" // For export macro
27 
28 class VTKRENDERINGVR_EXPORT vtkVRFollower : public vtkFollower
29 {
30 public:
31  static vtkVRFollower* New();
32  vtkTypeMacro(vtkVRFollower, vtkFollower);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
35  void Render(vtkRenderer* ren) override;
36 
41  void ComputeMatrix() override;
42 
43 protected:
44  vtkVRFollower() = default;
45  ~vtkVRFollower() override = default;
46 
47  double LastViewUp[3];
48 
49 private:
50  vtkVRFollower(const vtkVRFollower&) = delete;
51  void operator=(const vtkVRFollower&) = delete;
52 };
53 
54 #endif
virtual void Render(vtkRenderer *ren)
This causes the actor to be rendered.
abstract specification for renderers
Definition: vtkRenderer.h:72
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ComputeMatrix() override
Generate the matrix based on ivars.
a simple class to control print indentation
Definition: vtkIndent.h:39
a subclass of actor that always faces the camera
Definition: vtkFollower.h:43
static vtkFollower * New()
Creates a follower with no camera set.
VR Follower.
Definition: vtkVRFollower.h:28