VTK
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 =========================================================================*/
38 #ifndef vtkFollower_h
39 #define vtkFollower_h
40 
41 #include "vtkRenderingCoreModule.h" // For export macro
42 #include "vtkActor.h"
43 
44 class vtkCamera;
45 
46 class VTKRENDERINGCORE_EXPORT vtkFollower : public vtkActor
47 {
48  public:
49  vtkTypeMacro(vtkFollower,vtkActor);
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  static vtkFollower *New();
56 
58 
62  virtual void SetCamera(vtkCamera*);
63  vtkGetObjectMacro(Camera, vtkCamera);
65 
67 
72  int RenderOpaqueGeometry(vtkViewport *viewport) override;
74  virtual void Render(vtkRenderer *ren);
76 
81 
86 
91  void ComputeMatrix() override;
92 
96  void ShallowCopy(vtkProp *prop) override;
97 
98 protected:
100  ~vtkFollower() override;
101 
104 
105  //Internal matrices to avoid New/Delete for performance reasons
107 
108 private:
109  vtkFollower(const vtkFollower&) = delete;
110  void operator=(const vtkFollower&) = delete;
111 
112  // hide the two parameter Render() method from the user and the compiler.
113  void Render(vtkRenderer *, vtkMapper *) override {}
114 };
115 
116 #endif
vtkFollower
a subclass of actor that always faces the camera
Definition: vtkFollower.h:47
vtkFollower::Render
virtual void Render(vtkRenderer *ren)
vtkFollower::ShallowCopy
void ShallowCopy(vtkProp *prop) override
Shallow copy of a follower.
vtkFollower::RenderOpaqueGeometry
int RenderOpaqueGeometry(vtkViewport *viewport) override
This causes the actor to be rendered.
vtkFollower::~vtkFollower
~vtkFollower() override
vtkFollower::SetCamera
virtual void SetCamera(vtkCamera *)
Set/Get the camera to follow.
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkFollower::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFollower::Device
vtkActor * Device
Definition: vtkFollower.h:103
vtkFollower::InternalMatrix
vtkMatrix4x4 * InternalMatrix
Definition: vtkFollower.h:106
vtkFollower::Camera
vtkCamera * Camera
Definition: vtkFollower.h:102
vtkFollower::vtkFollower
vtkFollower()
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:87
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkMatrix4x4
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
vtkCamera
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
vtkActor.h
vtkFollower::ComputeMatrix
void ComputeMatrix() override
Generate the matrix based on ivars.
vtkFollower::RenderTranslucentPolygonalGeometry
int RenderTranslucentPolygonalGeometry(vtkViewport *viewport) override
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkFollower::HasTranslucentPolygonalGeometry
vtkTypeBool HasTranslucentPolygonalGeometry() override
Does this prop have some translucent polygonal geometry?
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:53
vtkFollower::New
static vtkFollower * New()
Creates a follower with no camera set.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkFollower::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources associated with this vtkProp3DFollower.
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69
vtkActor::Render
virtual void Render(vtkRenderer *, vtkMapper *)
This causes the actor to be rendered.
Definition: vtkActor.h:90