csPath Class Reference
[Geometry utilities]
A path in 3D.
More...
#include <csgeom/path.h>
Inheritance diagram for csPath:

Public Member Functions | |
virtual void | Calculate (float time) |
Calculate internal values for this spline given some time value. | |
virtual void | CalculateAtTime (float time) |
Calculate internal values for this spline given some time value. | |
csPath (int p) | |
Create a path with p points. | |
virtual int | GetCurrentIndex () |
Get current index. | |
float | GetDimensionValue (int dim, int idx) const |
Get the value for some dimension. | |
float const * | GetDimensionValues (int dim) const |
Get the values for some dimension. | |
virtual void | GetForwardVector (int idx, csVector3 &v) |
Get one forward vector. | |
virtual void | GetInterpolatedForward (csVector3 &pos) |
Get the interpolated forward vector. | |
virtual void | GetInterpolatedPosition (csVector3 &pos) |
Get the interpolated position. | |
virtual void | GetInterpolatedUp (csVector3 &pos) |
Get the interpolated up vector. | |
int | GetPointCount () |
Get the number of vector points in this spline. | |
virtual void | GetPositionVector (int idx, csVector3 &v) |
Get one position vector. | |
virtual float | GetTime (int idx) |
Get one time point. | |
float const * | GetTimes () const |
Get the time values. | |
float | GetTimeValue (int idx) const |
Get one time point. | |
float const * | GetTimeValues () const |
Get the time values. | |
virtual void | GetUpVector (int idx, csVector3 &v) |
Get one up vector. | |
void | InsertPoint (int idx) |
Insert a point after some index. | |
virtual int | Length () |
Get the number of vector points in this spline. | |
void | RemovePoint (int idx) |
Remove a point at the index. | |
virtual void | SetForwardVector (int idx, const csVector3 &v) |
Set one forward vector. | |
virtual void | SetForwardVectors (csVector3 *v) |
Set the forward vectors (dimensions 6 to 8). | |
virtual void | SetPositionVector (int idx, const csVector3 &v) |
Set one position vector. | |
virtual void | SetPositionVectors (csVector3 *v) |
Set the position vectors (first three dimensions of the cubic spline). | |
virtual void | SetTime (int idx, float t) |
Set one time point. | |
void | SetTimes (float const *t) |
Set the time values. | |
virtual void | SetTimeValue (int idx, float t) |
Set one time point. | |
void | SetTimeValues (float const *t) |
Set the time values. | |
virtual void | SetUpVector (int idx, const csVector3 &v) |
Set one up vector. | |
virtual void | SetUpVectors (csVector3 *v) |
Set the up vectors (dimensions 3 to 5). | |
virtual | ~csPath () |
Destroy the path. | |
Protected Attributes | |
csCatmullRomSpline | spline |
Detailed Description
A path in 3D.An object or camera can use this object to trace a path in 3D. This is particularly useful in combination with csReversibleTransform::LookAt().
Definition at line 44 of file path.h.
Constructor & Destructor Documentation
|
Create a path with p points.
|
|
Destroy the path.
|
Member Function Documentation
|
Calculate internal values for this spline given some time value.
|
|
Calculate internal values for this spline given some time value.
Implements iPath. |
|
Get current index.
Implements iPath. |
|
Get the value for some dimension.
|
|
Get the values for some dimension.
|
|
Get one forward vector.
Implements iPath. Definition at line 222 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated forward vector.
Implements iPath. Definition at line 244 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated position.
Implements iPath. Definition at line 230 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Get the interpolated up vector.
Implements iPath. Definition at line 237 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Get the number of vector points in this spline.
|
|
Get one position vector.
Implements iPath. Definition at line 208 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Get one time point.
Implements iPath. |
|
Get the time values.
|
|
Get one time point.
|
|
Get the time values.
|
|
Get one up vector.
Implements iPath. Definition at line 215 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Insert a point after some index. If index == -1 add a point before all others. |
|
Get the number of vector points in this spline.
Implements iPath. |
|
Remove a point at the index.
|
|
Set one forward vector.
Implements iPath. Definition at line 201 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Set the forward vectors (dimensions 6 to 8).
Implements iPath. |
|
Set one position vector.
Implements iPath. Definition at line 187 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Set the position vectors (first three dimensions of the cubic spline).
Implements iPath. |
|
Set one time point.
Implements iPath. |
|
Set the time values. 't' should point to an array containing 'num_points' values. These values typically start with 0 and end with 1. Other values are also possible the but the values should rise. The given array is copied. |
|
Set one time point.
|
|
Set the time values.
|
|
Set one up vector.
Implements iPath. Definition at line 194 of file path.h. References csVector3::x, csVector3::y, and csVector3::z. |
|
Set the up vectors (dimensions 3 to 5).
Implements iPath. |
The documentation for this class was generated from the following file:
- csgeom/path.h
Generated for Crystal Space by doxygen 1.4.6