VTK
|
a subclass of actor that always faces the camera More...
#include <vtkFollower.h>
Public Types | |
typedef vtkActor | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkFollower * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | HasTranslucentPolygonalGeometry () |
virtual void | ReleaseGraphicsResources (vtkWindow *) |
virtual void | ComputeMatrix () |
void | ShallowCopy (vtkProp *prop) |
virtual void | SetCamera (vtkCamera *) |
virtual vtkCamera * | GetCamera () |
virtual int | RenderOpaqueGeometry (vtkViewport *viewport) |
virtual int | RenderTranslucentPolygonalGeometry (vtkViewport *viewport) |
virtual void | Render (vtkRenderer *ren) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkFollower * | SafeDownCast (vtkObjectBase *o) |
static vtkFollower * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkFollower () | |
~vtkFollower () | |
Protected Attributes | |
vtkCamera * | Camera |
vtkActor * | Device |
a subclass of actor that always faces the camera
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.
Definition at line 45 of file vtkFollower.h.
typedef vtkActor vtkFollower::Superclass |
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
Definition at line 48 of file vtkFollower.h.
vtkFollower::vtkFollower | ( | ) | [protected] |
vtkFollower::~vtkFollower | ( | ) | [protected] |
static int vtkFollower::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
virtual int vtkFollower::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
static vtkFollower* vtkFollower::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
virtual vtkObjectBase* vtkFollower::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
vtkFollower* vtkFollower::NewInstance | ( | ) | const |
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
void vtkFollower::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
static vtkFollower* vtkFollower::New | ( | ) | [static] |
Creates a follower with no camera set
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
virtual void vtkFollower::SetCamera | ( | vtkCamera * | ) | [virtual] |
Set/Get the camera to follow. If this is not set, then the follower won't know who to follow.
virtual vtkCamera* vtkFollower::GetCamera | ( | ) | [virtual] |
Set/Get the camera to follow. If this is not set, then the follower won't know who to follow.
virtual int vtkFollower::RenderOpaqueGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
virtual int vtkFollower::RenderTranslucentPolygonalGeometry | ( | vtkViewport * | viewport | ) | [virtual] |
This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
virtual void vtkFollower::Render | ( | vtkRenderer * | ren | ) | [virtual] |
This causes the actor to be rendered. It in turn will render the actor's property, texture map and then mapper. If a property hasn't been assigned, then the actor will create one automatically.
Reimplemented in vtkAxisFollower.
virtual int vtkFollower::HasTranslucentPolygonalGeometry | ( | ) | [virtual] |
Does this prop have some translucent polygonal geometry?
Reimplemented from vtkActor.
virtual void vtkFollower::ReleaseGraphicsResources | ( | vtkWindow * | ) | [virtual] |
Release any graphics resources associated with this vtkProp3DFollower.
Reimplemented from vtkActor.
virtual void vtkFollower::ComputeMatrix | ( | ) | [virtual] |
Generate the matrix based on ivars. This method overloads its superclasses ComputeMatrix() method due to the special vtkFollower matrix operations.
Reimplemented from vtkProp3D.
void vtkFollower::ShallowCopy | ( | vtkProp * | prop | ) | [virtual] |
Shallow copy of a follower. Overloads the virtual vtkProp method.
Reimplemented from vtkActor.
Reimplemented in vtkAxisFollower.
vtkCamera* vtkFollower::Camera [protected] |
Definition at line 89 of file vtkFollower.h.
vtkActor* vtkFollower::Device [protected] |
Definition at line 90 of file vtkFollower.h.