Man Page for vtkFollower
Table of Contents

NAME

vtkFollower - a subclass of actor that always faces the camera

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkFollower.h"

class VTK_EXPORT vtkFollower : public vtkActor

vtkFollower();
~vtkFollower();
static vtkFollower *New() {return new vtkFollower;};
const char *GetClassName() {return "vtkFollower";};
void PrintSelf(ostream& os, vtkIndent indent);
virtual void Render(vtkRenderer *ren);
virtual void GetMatrix(vtkMatrix4x4& m);
void SetCamera(vtkCamera*);
void SetCamera(vtkCamera& );
vtkCamera *GetCamera();

DESCRIPTION

vtkFollower is a subclass of vtkActor that always follows its specified camera. More specifically it will not change its position or scale, but it will continually update its orientation so that it is right side up and facing the camera. This is typically used for text labels in a scene. All of the adjustments that can be made to an actor also will take effect with a follower. So, if you change the orientation of the follower by 90 degrees, then it will follow the camera, but be off by 90 degrees.

SEE ALSO

vtkActor vtkCamera

SUMMARY

void SetCamera(vtkCamera*)
void SetCamera(vtkCamera& )
Set/Get the camera to follow. If this is not set, then the follower won't know who to follow.

vtkFollower()
Creates a follower with no camera set

void GetMatrix(vtkMatrix4x4& result)
Copy the follower's composite 4x4 matrix into the matrix provided.

void Render(vtkRenderer *ren)
This causes the actor to be rendered. It, in turn, will render the actor's property and then mapper.


Table of Contents