nAnimBuilder::Curve Class Reference
#include <nanimbuilder.h>
Detailed Description
an animation curve
Definition at line 53 of file nanimbuilder.h.
Public Types | |
| enum | IpolType { NONE, STEP, LINEAR, QUAT } |
| interpolation types More... | |
Public Member Functions | |
| Curve () | |
| default constructor | |
| Curve (int numKeys, const Key &fillKey) | |
| fixed size constructor | |
| void | SetKey (int index, const Key &key) |
| add a key to the end of the array | |
| int | GetNumKeys () const |
| get number of keys | |
| Key & | GetKeyAt (int index) |
| get key at index | |
| void | SetIpolType (IpolType t) |
| set the interpolation type of the curve | |
| IpolType | GetIpolType () const |
| get the interpolation type of the curve | |
| void | SetFirstKeyIndex (int i) |
| set the first key index | |
| int | GetFirstKeyIndex () const |
| get the first key index | |
| bool | Optimize () |
| optimize the curve | |
| void | SetCollapsed (bool b) |
| set collapsed flag | |
| bool | IsCollapsed () const |
| check whether the curve has been collapsed by Optimize() | |
| void | SetCollapsedKey (const vector4 &key) |
| set the collapsed key | |
| const vector4 & | GetCollapsedKey () const |
| get the collapsed key | |
| void | SetIsAnimated (int isAnim) |
| flag = true, if curve belongs to an animated joint | |
| int | IsAnimated () const |
| returns isAnimated flag | |
Static Public Member Functions | |
| static const char * | IpolType2String (IpolType t) |
| convert ipol type to string | |
| static IpolType | String2IpolType (const char *str) |
| convert string to ipol type | |
Public Attributes | |
| nArray< Key > | keyArray |
| IpolType | ipolType |
| bool | isCollapsed |
| int | firstKeyIndex |
| vector4 | collapsedKey |
| int | isAnimated |
Member Enumeration Documentation
|
|
interpolation types
Definition at line 57 of file nanimbuilder.h. |
Constructor & Destructor Documentation
|
|
default constructor
Definition at line 299 of file nanimbuilder.h. |
|
||||||||||||
|
fixed size constructor
Definition at line 313 of file nanimbuilder.h. |
Member Function Documentation
|
||||||||||||
|
add a key to the end of the array
Definition at line 328 of file nanimbuilder.h. |
|
|
get number of keys
Definition at line 338 of file nanimbuilder.h. |
|
|
get key at index
Definition at line 348 of file nanimbuilder.h. |
|
|
set the interpolation type of the curve
Definition at line 358 of file nanimbuilder.h. |
|
|
get the interpolation type of the curve
Definition at line 368 of file nanimbuilder.h. |
|
|
set the first key index
Definition at line 378 of file nanimbuilder.h. |
|
|
get the first key index
Definition at line 388 of file nanimbuilder.h. |
|
|
optimize the curve This checks whether all keys in the curve are identical. If yes, the Collapsed flag will be set, and the collapsed key is set to the first key in the curve.
Definition at line 403 of file nanimbuilder.h. |
|
|
set collapsed flag
Definition at line 432 of file nanimbuilder.h. |
|
|
check whether the curve has been collapsed by Optimize()
Definition at line 442 of file nanimbuilder.h. |
|
|
set the collapsed key
Definition at line 452 of file nanimbuilder.h. |
|
|
get the collapsed key
Definition at line 462 of file nanimbuilder.h. |
|
|
convert ipol type to string
Definition at line 472 of file nanimbuilder.h. |
|
|
convert string to ipol type
Definition at line 490 of file nanimbuilder.h. |
|
|
flag = true, if curve belongs to an animated joint
Definition at line 767 of file nanimbuilder.h. |
|
|
returns isAnimated flag
Definition at line 777 of file nanimbuilder.h. |
Member Data Documentation
|
|
Definition at line 102 of file nanimbuilder.h. |
|
|
Definition at line 103 of file nanimbuilder.h. |
|
|
Definition at line 104 of file nanimbuilder.h. |
|
|
Definition at line 105 of file nanimbuilder.h. |
|
|
Definition at line 106 of file nanimbuilder.h. |
|
|
Definition at line 107 of file nanimbuilder.h. |
The documentation for this class was generated from the following file: