#include <CCameraPathInterpolator.h>
Public Types | |
| SHAPE_LINE = 0 | |
| SHAPE_TCB = 1 | |
| SHAPE_CATMULL_ROM = 2 | |
| PATH_OPEN = 0 | |
| PATH_CLOSED = 1 | |
| enum | ShapeType { SHAPE_LINE = 0, SHAPE_TCB = 1, SHAPE_CATMULL_ROM = 2 } |
| enum | PathType { PATH_OPEN = 0, PATH_CLOSED = 1 } |
Public Member Functions | |
| CCameraPathInterpolator (CList< CCameraKeyPathPoint > path, ShapeType nShapeType=SHAPE_LINE, PathType nPathType=PATH_OPEN) | |
| ~CCameraPathInterpolator () | |
| int | getNumFrames () |
| CCameraKeyPathPoint * | getFrame (int nFrame) |
| CList< CCameraKeyPathPoint > | getPath () |
Protected Member Functions | |
| void | compute () |
| CCamera | add (const CCamera &c1, const CCamera &c2) const |
| CCamera | sub (const CCamera &c1, const CCamera &c2) const |
| CCamera | mul (const CCamera &c, const double d) const |
Protected Attributes | |
| CList< CCameraKeyPathPoint > | keys |
| ShapeType | m_nShapeType |
| PathType | m_nPathType |
| CList< CCameraKeyPathPoint > | m_ShapeList |
| CCameraPathInterpolator::CCameraPathInterpolator | ( | CList< CCameraKeyPathPoint > | path, | |
| ShapeType | nShapeType = SHAPE_LINE, |
|||
| PathType | nPathType = PATH_OPEN | |||
| ) | [inline] |
Constructs new Interpolator and computes path.
| CCameraPathInterpolator::~CCameraPathInterpolator | ( | ) | [inline] |
Destructs (default).
| CCamera CCameraPathInterpolator::add | ( | const CCamera & | c1, | |
| const CCamera & | c2 | |||
| ) | const [inline, protected] |
Adds two CCameras. Copies first CCamera, adds (eye, ref point, view up, ratio, fovy, vpheight)
| void CCameraPathInterpolator::compute | ( | ) | [protected] |
Computes path.
| CCameraKeyPathPoint* CCameraPathInterpolator::getFrame | ( | int | nFrame | ) | [inline] |
Returns frame of computed path. frame in [1..getNumFrames()]
| int CCameraPathInterpolator::getNumFrames | ( | ) | [inline] |
Returns total number of frames of computed path.
| CList<CCameraKeyPathPoint> CCameraPathInterpolator::getPath | ( | ) | [inline] |
Returns computed path.
| CCamera CCameraPathInterpolator::sub | ( | const CCamera & | c1, | |
| const CCamera & | c2 | |||
| ) | const [inline, protected] |
Subtracts two CCameras. Copies first CCamera, subtracts (eye, ref point, view up, ratio, fovy, vpheight)
CList<CCameraKeyPathPoint> CCameraPathInterpolator::keys [protected] |
Input path (sampling points).
PathType CCameraPathInterpolator::m_nPathType [protected] |
Path type: open / closed.
ShapeType CCameraPathInterpolator::m_nShapeType [protected] |
Shape type: linear / tcb.
CList<CCameraKeyPathPoint> CCameraPathInterpolator::m_ShapeList [protected] |
Computed output path.
1.4.7