MTN Class Reference

#include <MTN.h>

List of all members.

Public Member Functions

 MTN ()
 ~MTN ()
void Set (MTNFile *file)
char * GetName ()
char * GetRobotDesign ()
void First ()
bool More ()
void Next (int numFrames)
int InterpolateCommandVectorData (OCommandVectorData *commandVec, int maxNumFrames)

Private Member Functions

int InterpolateCommandData (int jointIndex, OCommandData *data, int valueIndex, int keyFrame, int frame, int maxNumFrames)

Private Attributes

MTNFilemtnfile
int currentKeyFrame
int currentFrame


Constructor & Destructor Documentation

MTN::MTN  ) 
 

Definition at line 16 of file MTN.cc.

MTN::~MTN  )  [inline]
 

Definition at line 21 of file MTN.h.


Member Function Documentation

void MTN::First  ) 
 

Definition at line 58 of file MTN.cc.

References currentFrame, and currentKeyFrame.

Referenced by Set().

char * MTN::GetName  ) 
 

Definition at line 28 of file MTN.cc.

References MTNFile::GetName(), and mtnfile.

Referenced by MTNAgent7::Move(), and MTNAgent::Move().

char * MTN::GetRobotDesign  ) 
 

Definition at line 43 of file MTN.cc.

References MTNFile::GetRobotDesign(), and mtnfile.

Referenced by MTNAgent7::Move(), and MTNAgent::Move().

int MTN::InterpolateCommandData int  jointIndex,
OCommandData *  data,
int  valueIndex,
int  keyFrame,
int  frame,
int  maxNumFrames
[private]
 

Definition at line 124 of file MTN.cc.

References MTNKeyFrame::data, MTNFile::GetKeyFrame(), MTNFile::GetNumInterpolate8ms(), MTNFile::GetNumKeyFrames(), mtnfile, and slongword.

Referenced by InterpolateCommandVectorData().

int MTN::InterpolateCommandVectorData OCommandVectorData *  commandVec,
int  maxNumFrames
 

Definition at line 94 of file MTN.cc.

References currentFrame, currentKeyFrame, MTNFile::GetNumInterpolate8ms(), MTNFile::GetNumJoints(), InterpolateCommandData(), More(), and mtnfile.

Referenced by MTNAgent7::Move(), and MTNAgent::Move().

bool MTN::More  ) 
 

Definition at line 65 of file MTN.cc.

References currentKeyFrame, MTNFile::GetNumKeyFrames(), and mtnfile.

Referenced by InterpolateCommandVectorData(), MTNAgent7::Move(), and MTNAgent::Move().

void MTN::Next int  numFrames  ) 
 

Definition at line 72 of file MTN.cc.

References currentFrame, currentKeyFrame, MTNFile::GetNumInterpolate8ms(), and mtnfile.

Referenced by MTNAgent7::Move(), and MTNAgent::Move().

void MTN::Set MTNFile file  ) 
 

Definition at line 21 of file MTN.cc.

References First(), and mtnfile.

Referenced by MTNAgent7::NotifyCommand(), and MTNAgent::NotifyCommand().


Member Data Documentation

int MTN::currentFrame [private]
 

Definition at line 41 of file MTN.h.

Referenced by First(), InterpolateCommandVectorData(), and Next().

int MTN::currentKeyFrame [private]
 

Definition at line 40 of file MTN.h.

Referenced by First(), InterpolateCommandVectorData(), More(), and Next().

MTNFile* MTN::mtnfile [private]
 

Definition at line 39 of file MTN.h.

Referenced by GetName(), GetRobotDesign(), InterpolateCommandData(), InterpolateCommandVectorData(), More(), Next(), and Set().


The documentation for this class was generated from the following files:
Generated on Sun Dec 2 23:04:34 2007 for openSDK by  doxygen 1.3.9.1