VTK  9.2.5
vtkFollower.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFollower.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 =========================================================================*/
114 #ifndef vtkFollower_h
115 #define vtkFollower_h
116 
117 #include "vtkActor.h"
118 #include "vtkRenderingCoreModule.h" // For export macro
119 
120 class vtkCamera;
121 
122 class VTKRENDERINGCORE_EXPORT vtkFollower : public vtkActor
123 {
124 public:
125  vtkTypeMacro(vtkFollower, vtkActor);
126  void PrintSelf(ostream& os, vtkIndent indent) override;
127 
131  static vtkFollower* New();
132 
134 
138  virtual void SetCamera(vtkCamera*);
139  vtkGetObjectMacro(Camera, vtkCamera);
141 
143 
148  int RenderOpaqueGeometry(vtkViewport* viewport) override;
150  virtual void Render(vtkRenderer* ren);
152 
157 
162  void ComputeMatrix() override;
163 
167  void ShallowCopy(vtkProp* prop) override;
168 
169 protected:
171  ~vtkFollower() override;
172 
175 
176  // Internal matrices to avoid New/Delete for performance reasons
178 
179 private:
180  vtkFollower(const vtkFollower&) = delete;
181  void operator=(const vtkFollower&) = delete;
182 
183  // hide the two parameter Render() method from the user and the compiler.
184  void Render(vtkRenderer*, vtkMapper*) override {}
185 };
186 
187 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:161
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:202
a virtual camera for 3D rendering
Definition: vtkCamera.h:161
a subclass of actor that always faces the camera
Definition: vtkFollower.h:123
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
static vtkFollower * New()
Creates a follower with no camera set.
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:174
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:173
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkMatrix4x4 * InternalMatrix
Definition: vtkFollower.h:177
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
a simple class to control print indentation
Definition: vtkIndent.h:119
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:177
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:151
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:76
abstract specification for renderers
Definition: vtkRenderer.h:182
abstract specification for Viewports
Definition: vtkViewport.h:56
window superclass for vtkRenderWindow
Definition: vtkWindow.h:39