newspeoplefor developersdocumentationdownloads

nAnimation::Curve Class Reference

#include <nanimation.h>

List of all members.


Detailed Description

holds animation curve information

Definition at line 96 of file nanimation.h.


Public Types

enum  IpolType {
  None = 0,
  Step,
  Quat,
  Linear
}
 interpolation type More...

Public Member Functions

 Curve ()
 constructor
 ~Curve ()
 destructor
void SetIpolType (IpolType t)
 set the interpolation type
IpolType GetIpolType () const
 get the interpolation type
void SetConstValue (const vector4 &val)
 set the curve's const value
const vector4GetConstValue () const
 get the curve's const value
void SetFirstKeyIndex (int index)
 set index of the first key in the global key array
int GetFirstKeyIndex () const
 get first key index
void SetIsAnimated (int isAnim)
 set curve as animated or not
int IsAnimated () const
 is curve animated?
void SetStartValue (vector4 val)
 set the start value (at frame 0/ time 0) of the curve
vector4 GetStartValue () const
 get the start value of the curve
void SetCurAnimClipValue (vector4 value)
 set the animation value of the curve if it is animated
vector4 GetCurAnimClipValue () const
 get the animation value of the curve

Static Public Member Functions

static IpolType StringToIpolType (const char *str)
 convert a string to an ipol type

Member Enumeration Documentation

enum nAnimation::Curve::IpolType
 

interpolation type

Enumerator:
None  always return the const key
Step  no interpolation done between keys
Quat  do quaternion interpolation
Linear  linear interpolation done between keys

Definition at line 100 of file nanimation.h.


Constructor & Destructor Documentation

nAnimation::Curve::Curve  )  [inline]
 

constructor

Definition at line 241 of file nanimation.h.

nAnimation::Curve::~Curve  )  [inline]
 

destructor

Definition at line 255 of file nanimation.h.


Member Function Documentation

void nAnimation::Curve::SetIpolType IpolType  t  )  [inline]
 

set the interpolation type

Definition at line 265 of file nanimation.h.

nAnimation::Curve::IpolType nAnimation::Curve::GetIpolType  )  const [inline]
 

get the interpolation type

Definition at line 276 of file nanimation.h.

void nAnimation::Curve::SetConstValue const vector4 val  )  [inline]
 

set the curve's const value

Definition at line 286 of file nanimation.h.

const vector4 & nAnimation::Curve::GetConstValue  )  const [inline]
 

get the curve's const value

Definition at line 296 of file nanimation.h.

nAnimation::Curve::IpolType nAnimation::Curve::StringToIpolType const char *  str  )  [inline, static]
 

convert a string to an ipol type

Definition at line 326 of file nanimation.h.

void nAnimation::Curve::SetFirstKeyIndex int  index  )  [inline]
 

set index of the first key in the global key array

Definition at line 306 of file nanimation.h.

int nAnimation::Curve::GetFirstKeyIndex  )  const [inline]
 

get first key index

Definition at line 316 of file nanimation.h.

void nAnimation::Curve::SetIsAnimated int  isAnim  )  [inline]
 

set curve as animated or not

Definition at line 340 of file nanimation.h.

int nAnimation::Curve::IsAnimated  )  const [inline]
 

is curve animated?

Definition at line 350 of file nanimation.h.

void nAnimation::Curve::SetStartValue vector4  val  )  [inline]
 

set the start value (at frame 0/ time 0) of the curve

Definition at line 360 of file nanimation.h.

vector4 nAnimation::Curve::GetStartValue  )  const [inline]
 

get the start value of the curve

Definition at line 370 of file nanimation.h.

void nAnimation::Curve::SetCurAnimClipValue vector4  value  )  [inline]
 

set the animation value of the curve if it is animated

Definition at line 380 of file nanimation.h.

vector4 nAnimation::Curve::GetCurAnimClipValue  )  const [inline]
 

get the animation value of the curve

Definition at line 390 of file nanimation.h.


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

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.