VTK
vtkOpenVRFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
21 #ifndef vtkOpenVRFollower_h
22 #define vtkOpenVRFollower_h
23 
24 #include "vtkRenderingOpenVRModule.h" // For export macro
25 #include "vtkFollower.h"
26 
27 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRFollower : public vtkFollower
28 {
29 public:
30  static vtkOpenVRFollower *New();
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
34  virtual void Render(vtkRenderer *ren) override;
35 
40  void ComputeMatrix() override;
41 
42 protected:
45 
46  double LastViewUp[3];
47 
48 private:
49  vtkOpenVRFollower(const vtkOpenVRFollower&) = delete;
50  void operator=(const vtkOpenVRFollower&) = delete;
51 };
52 
53 #endif
virtual void Render(vtkRenderer *ren)
This causes the actor to be rendered.
OpenVR Follower.
abstract specification for renderers
Definition: vtkRenderer.h:63
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:46
static vtkFollower * New()
Creates a follower with no camera set.