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
23#ifndef vtkFollower_h
24#define vtkFollower_h
25
26#include "vtkActor.h"
27#include "vtkRenderingCoreModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30class vtkCamera;
31
32class VTKRENDERINGCORE_EXPORT vtkFollower : public vtkActor
33{
34public:
35 vtkTypeMacro(vtkFollower, vtkActor);
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
41 static vtkFollower* New();
42
44
48 virtual void SetCamera(vtkCamera*);
49 vtkGetObjectMacro(Camera, vtkCamera);
51
53
58 int RenderOpaqueGeometry(vtkViewport* viewport) override;
60 virtual void Render(vtkRenderer* ren);
62
67
72 void ComputeMatrix() override;
73
77 void ShallowCopy(vtkProp* prop) override;
78
79protected:
81 ~vtkFollower() override;
82
85
86 // Internal matrices to avoid New/Delete for performance reasons
88
89private:
90 vtkFollower(const vtkFollower&) = delete;
91 void operator=(const vtkFollower&) = delete;
92
93 // hide the two parameter Render() method from the user and the compiler.
94 void Render(vtkRenderer*, vtkMapper*) override {}
95};
96
97VTK_ABI_NAMESPACE_END
98#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:41
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition vtkActor.h:82
a virtual camera for 3D rendering
Definition vtkCamera.h:41
a subclass of actor that always faces the camera
Definition vtkFollower.h:33
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:84
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:83
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
Definition vtkFollower.h:87
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
a simple class to control print indentation
Definition vtkIndent.h:29
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:77
represent and manipulate 4x4 transformation matrices
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:43
abstract specification for renderers
Definition vtkRenderer.h:59
abstract specification for Viewports
Definition vtkViewport.h:45
window superclass for vtkRenderWindow
Definition vtkWindow.h:25