VTK  9.5.20250802
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
82#ifndef vtkFollower_h
83#define vtkFollower_h
84
85#include "vtkActor.h"
86#include "vtkRenderingCoreModule.h" // For export macro
87#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
88
89VTK_ABI_NAMESPACE_BEGIN
90class vtkCamera;
91
92class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkFollower : public vtkActor
93{
94public:
95 vtkTypeMacro(vtkFollower, vtkActor);
96 void PrintSelf(ostream& os, vtkIndent indent) override;
97
101 static vtkFollower* New();
102
104
108 virtual void SetCamera(vtkCamera*);
109 vtkGetObjectMacro(Camera, vtkCamera);
111
113
118 int RenderOpaqueGeometry(vtkViewport* viewport) override;
120 virtual void Render(vtkRenderer* ren);
122
127
132 void ComputeMatrix() override;
133
137 void ShallowCopy(vtkProp* prop) override;
138
139protected:
141 ~vtkFollower() override;
142
145
146 // Internal matrices to avoid New/Delete for performance reasons
148
149private:
150 vtkFollower(const vtkFollower&) = delete;
151 void operator=(const vtkFollower&) = delete;
152
153 // hide the two parameter Render() method from the user and the compiler.
154 void Render(vtkRenderer*, vtkMapper*) override {}
155};
156
157VTK_ABI_NAMESPACE_END
158#endif
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:151
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition vtkActor.h:192
a virtual camera for 3D rendering
Definition vtkCamera.h:151
a subclass of actor that always faces the camera
Definition vtkFollower.h:93
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
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
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
a simple class to control print indentation
Definition vtkIndent.h:108
abstract class specifies interface to map data to graphics primitives
Definition vtkMapper.h:98
represent and manipulate 4x4 transformation matrices
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:69
abstract specification for renderers
abstract specification for Viewports
Definition vtkViewport.h:66
window superclass for vtkRenderWindow
Definition vtkWindow.h:48
#define VTK_MARSHALAUTO