VTK  9.3.0
vtkFollower.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
32#ifndef vtkFollower_h
33#define vtkFollower_h
34
35#include "vtkActor.h"
36#include "vtkRenderingCoreModule.h" // For export macro
37
38VTK_ABI_NAMESPACE_BEGIN
39class vtkCamera;
40
41class VTKRENDERINGCORE_EXPORT vtkFollower : public vtkActor
42{
43public:
44 vtkTypeMacro(vtkFollower, vtkActor);
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
50 static vtkFollower* New();
51
53
57 virtual void SetCamera(vtkCamera*);
58 vtkGetObjectMacro(Camera, vtkCamera);
60
62
67 int RenderOpaqueGeometry(vtkViewport* viewport) override;
69 virtual void Render(vtkRenderer* ren);
71
76
81 void ComputeMatrix() override;
82
86 void ShallowCopy(vtkProp* prop) override;
87
88protected:
90 ~vtkFollower() override;
91
94
95 // Internal matrices to avoid New/Delete for performance reasons
97
98private:
99 vtkFollower(const vtkFollower&) = delete;
100 void operator=(const vtkFollower&) = delete;
101
102 // hide the two parameter Render() method from the user and the compiler.
103 void Render(vtkRenderer*, vtkMapper*) override {}
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:50
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition vtkActor.h:91
a virtual camera for 3D rendering
Definition vtkCamera.h:50
a subclass of actor that always faces the camera
Definition vtkFollower.h:42
static vtkFollower * New()
Creates a follower with no camera set.
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
void ComputeMatrix() override
Generate the matrix based on ivars.
int RenderOpaqueGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
vtkActor * Device
Definition vtkFollower.h:93
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources associated with this vtkProp3DFollower.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkFollower() override
virtual void Render(vtkRenderer *ren)
This causes the actor to be rendered.
vtkCamera * Camera
Definition vtkFollower.h:92
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
Definition vtkFollower.h:96
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
a simple class to control print indentation
Definition vtkIndent.h:38
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:86
represent and manipulate 4x4 transformation matrices
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:52
abstract specification for renderers
Definition vtkRenderer.h:68
abstract specification for Viewports
Definition vtkViewport.h:54
window superclass for vtkRenderWindow
Definition vtkWindow.h:34