VTK  9.3.20240423
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
88VTK_ABI_NAMESPACE_BEGIN
89class vtkCamera;
90
91class VTKRENDERINGCORE_EXPORT vtkFollower : public vtkActor
92{
93public:
94 vtkTypeMacro(vtkFollower, vtkActor);
95 void PrintSelf(ostream& os, vtkIndent indent) override;
96
100 static vtkFollower* New();
101
103
107 virtual void SetCamera(vtkCamera*);
108 vtkGetObjectMacro(Camera, vtkCamera);
110
112
117 int RenderOpaqueGeometry(vtkViewport* viewport) override;
119 virtual void Render(vtkRenderer* ren);
121
126
131 void ComputeMatrix() override;
132
136 void ShallowCopy(vtkProp* prop) override;
137
138protected:
140 ~vtkFollower() override;
141
144
145 // Internal matrices to avoid New/Delete for performance reasons
147
148private:
149 vtkFollower(const vtkFollower&) = delete;
150 void operator=(const vtkFollower&) = delete;
151
152 // hide the two parameter Render() method from the user and the compiler.
153 void Render(vtkRenderer*, vtkMapper*) override {}
154};
155
156VTK_ABI_NAMESPACE_END
157#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:92
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:137
represent and manipulate 4x4 transformation matrices
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
abstract specification for renderers
abstract specification for Viewports
Definition vtkViewport.h:65
window superclass for vtkRenderWindow
Definition vtkWindow.h:48