vtkCameraRepresentation Class Reference

#include <vtkCameraRepresentation.h>

Inheritance diagram for vtkCameraRepresentation:

Inheritance graph
[legend]
Collaboration diagram for vtkCameraRepresentation:

Collaboration graph
[legend]

List of all members.


Detailed Description

represent the vtkCameraWidget

This class provides support for interactively saving a series of camera views into an interpolated path (using vtkCameraInterpolator). The class typically works in conjunction with vtkCameraWidget. To use this class simply specify the camera to interpolate and use the methods AddCameraToPath(), AnimatePath(), and InitializePath() to add a new camera view, animate the current views, and initialize the interpolation.

See also:
vtkCameraWidget vtkCameraInterpolator
Examples:
vtkCameraRepresentation (Examples)
Tests:
vtkCameraRepresentation (Tests)

Definition at line 51 of file vtkCameraRepresentation.h.

typedef vtkBorderRepresentation Superclass
static int IsTypeOf (const char *type)
static vtkCameraRepresentationSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Public Member Functions

void SetCamera (vtkCamera *camera)
virtual vtkCameraGetCamera ()
void SetInterpolator (vtkCameraInterpolator *camInt)
virtual vtkCameraInterpolatorGetInterpolator ()
virtual void SetNumberOfFrames (int)
virtual int GetNumberOfFrames ()
virtual vtkProperty2DGetProperty ()
void AddCameraToPath ()
void AnimatePath (vtkRenderWindowInteractor *rwi)
void InitializePath ()
virtual void BuildRepresentation ()
virtual void GetSize (double size[2])
virtual void GetActors2D (vtkPropCollection *)
virtual void ReleaseGraphicsResources (vtkWindow *)
virtual int RenderOverlay (vtkViewport *)
virtual int RenderOpaqueGeometry (vtkViewport *)
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *)
virtual int HasTranslucentPolygonalGeometry ()

Static Public Member Functions

static vtkCameraRepresentationNew ()

Protected Member Functions

 vtkCameraRepresentation ()
 ~vtkCameraRepresentation ()

Protected Attributes

vtkCameraCamera
vtkCameraInterpolatorInterpolator
int NumberOfFrames
double CurrentTime
vtkPointsPoints
vtkPolyDataPolyData
vtkTransformPolyDataFilterTransformFilter
vtkPolyDataMapper2DMapper
vtkProperty2DProperty
vtkActor2DActor

Member Typedef Documentation

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

Definition at line 59 of file vtkCameraRepresentation.h.


Constructor & Destructor Documentation

vtkCameraRepresentation::vtkCameraRepresentation (  )  [protected]

vtkCameraRepresentation::~vtkCameraRepresentation (  )  [protected]


Member Function Documentation

static vtkCameraRepresentation* vtkCameraRepresentation::New (  )  [static]

Instantiate this class.

Reimplemented from vtkBorderRepresentation.

virtual const char* vtkCameraRepresentation::GetClassName (  )  [virtual]

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

static int vtkCameraRepresentation::IsTypeOf ( const char *  type  )  [static]

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

virtual int vtkCameraRepresentation::IsA ( const char *  type  )  [virtual]

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

static vtkCameraRepresentation* vtkCameraRepresentation::SafeDownCast ( vtkObject o  )  [static]

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

void vtkCameraRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard VTK class methods.

Reimplemented from vtkBorderRepresentation.

void vtkCameraRepresentation::SetCamera ( vtkCamera camera  ) 

Specify the camera to interpolate. This must be specified by the user.

virtual vtkCamera* vtkCameraRepresentation::GetCamera (  )  [virtual]

Specify the camera to interpolate. This must be specified by the user.

void vtkCameraRepresentation::SetInterpolator ( vtkCameraInterpolator camInt  ) 

Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views. If not defined, one is created automatically. Note that you can access this object to set the interpolation type (linear, spline) and other instance variables.

virtual vtkCameraInterpolator* vtkCameraRepresentation::GetInterpolator (  )  [virtual]

Get the vtkCameraInterpolator used to interpolate and save the sequence of camera views. If not defined, one is created automatically. Note that you can access this object to set the interpolation type (linear, spline) and other instance variables.

virtual void vtkCameraRepresentation::SetNumberOfFrames ( int   )  [virtual]

Set the number of frames to generate when playback is initiated.

virtual int vtkCameraRepresentation::GetNumberOfFrames (  )  [virtual]

Set the number of frames to generate when playback is initiated.

virtual vtkProperty2D* vtkCameraRepresentation::GetProperty (  )  [virtual]

By obtaining this property you can specify the properties of the representation.

void vtkCameraRepresentation::AddCameraToPath (  ) 

These methods are used to create interpolated camera paths. The AddCameraToPath() method adds the view defined by the current camera (via SetCamera()) to the interpolated camera path. AnimatePath() interpolates NumberOfFrames along the current path. InitializePath() resets the interpolated path to its initial, empty configuration.

void vtkCameraRepresentation::AnimatePath ( vtkRenderWindowInteractor rwi  ) 

These methods are used to create interpolated camera paths. The AddCameraToPath() method adds the view defined by the current camera (via SetCamera()) to the interpolated camera path. AnimatePath() interpolates NumberOfFrames along the current path. InitializePath() resets the interpolated path to its initial, empty configuration.

void vtkCameraRepresentation::InitializePath (  ) 

These methods are used to create interpolated camera paths. The AddCameraToPath() method adds the view defined by the current camera (via SetCamera()) to the interpolated camera path. AnimatePath() interpolates NumberOfFrames along the current path. InitializePath() resets the interpolated path to its initial, empty configuration.

virtual void vtkCameraRepresentation::BuildRepresentation (  )  [virtual]

Satisfy the superclasses' API.

Reimplemented from vtkBorderRepresentation.

virtual void vtkCameraRepresentation::GetSize ( double  size[2]  )  [inline, virtual]

Satisfy the superclasses' API.

Reimplemented from vtkBorderRepresentation.

Definition at line 105 of file vtkCameraRepresentation.h.

virtual void vtkCameraRepresentation::GetActors2D ( vtkPropCollection  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.

virtual void vtkCameraRepresentation::ReleaseGraphicsResources ( vtkWindow  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.

virtual int vtkCameraRepresentation::RenderOverlay ( vtkViewport  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.

virtual int vtkCameraRepresentation::RenderOpaqueGeometry ( vtkViewport  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.

virtual int vtkCameraRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.

virtual int vtkCameraRepresentation::HasTranslucentPolygonalGeometry (  )  [virtual]

These methods are necessary to make this representation behave as a vtkProp.

Reimplemented from vtkBorderRepresentation.


Member Data Documentation

Definition at line 125 of file vtkCameraRepresentation.h.

Definition at line 126 of file vtkCameraRepresentation.h.

Definition at line 127 of file vtkCameraRepresentation.h.

Definition at line 128 of file vtkCameraRepresentation.h.

Definition at line 131 of file vtkCameraRepresentation.h.

Definition at line 132 of file vtkCameraRepresentation.h.

Definition at line 133 of file vtkCameraRepresentation.h.

Definition at line 134 of file vtkCameraRepresentation.h.

Definition at line 135 of file vtkCameraRepresentation.h.

Definition at line 136 of file vtkCameraRepresentation.h.


The documentation for this class was generated from the following file:

Generated on Sat Dec 27 13:18:53 2008 for VTK by  doxygen 1.5.6