VTK  9.1.0
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
28class VTKRENDERINGVR_EXPORT vtkVRFollower : public vtkFollower
29{
30public:
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
43protected:
44 vtkVRFollower() = default;
45 ~vtkVRFollower() override = default;
46
47 double LastViewUp[3];
48
49private:
50 vtkVRFollower(const vtkVRFollower&) = delete;
51 void operator=(const vtkVRFollower&) = delete;
52};
53
54#endif
a subclass of actor that always faces the camera
Definition: vtkFollower.h:120
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract specification for renderers
Definition: vtkRenderer.h:173
VR Follower.
Definition: vtkVRFollower.h:29
void Render(vtkRenderer *ren) override
This causes the actor to be rendered.
static vtkVRFollower * New()
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.
~vtkVRFollower() override=default
vtkVRFollower()=default