55 #ifndef vtkCameraInterpolator_h
56 #define vtkCameraInterpolator_h
58 #include "vtkRenderingCoreModule.h"
121 enum {INTERPOLATION_TYPE_LINEAR=0,
123 INTERPOLATION_TYPE_MANUAL
137 vtkSetClampMacro(InterpolationType,
int, INTERPOLATION_TYPE_LINEAR,
138 INTERPOLATION_TYPE_MANUAL);
139 vtkGetMacro(InterpolationType,
int);
141 {this->SetInterpolationType(INTERPOLATION_TYPE_LINEAR);}
143 {this->SetInterpolationType(INTERPOLATION_TYPE_SPLINE);}
145 {this->SetInterpolationType(INTERPOLATION_TYPE_MANUAL);}
interpolate a series of cameras to update a new camera
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkTimeStamp InitializeTime
virtual ~vtkCameraInterpolator()
virtual void SetParallelScaleInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the parallel scale portion of the camera.
vtkTupleInterpolator * ClippingRangeInterpolator
vtkTupleInterpolator * ParallelScaleInterpolator
void SetInterpolationTypeToLinear()
void SetInterpolationTypeToSpline()
void Initialize()
Clear the list of cameras.
virtual void SetClippingRangeInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the clipping range portion of the camera.
virtual void SetPositionInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the position portion of the camera.
@ INTERPOLATION_TYPE_SPLINE
virtual void SetFocalPointInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the focal point portion of the camera.
void InitializeInterpolation()
vtkTupleInterpolator * ViewUpInterpolator
vtkTupleInterpolator * ViewAngleInterpolator
int GetNumberOfCameras()
Return the number of cameras in the list of cameras.
vtkTupleInterpolator * FocalPointInterpolator
vtkTupleInterpolator * PositionInterpolator
void RemoveCamera(double t)
Delete the camera at a particular parameter t.
virtual void SetViewUpInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the view up portion of the camera.
void AddCamera(double t, vtkCamera *camera)
Add another camera to the list of cameras defining the camera function.
vtkCameraList * CameraList
virtual void SetViewAngleInterpolator(vtkTupleInterpolator *)
Set/Get the tuple interpolator used to interpolate the view angle portion of the camera.
vtkMTimeType GetMTime()
Override GetMTime() because we depend on the interpolators which may be modified outside of this clas...
double GetMinimumT()
Obtain some information about the interpolation range.
static vtkCameraInterpolator * New()
Instantiate the class.
void InterpolateCamera(double t, vtkCamera *camera)
Interpolate the list of cameras and determine a new camera (i.e., fill in the camera provided).
void SetInterpolationTypeToManual()
a virtual camera for 3D rendering
a simple class to control print indentation
abstract base class for most VTK objects
record modification and/or execution time
interpolate a tuple of arbitray size
vtkTypeUInt64 vtkMTimeType