MTNFile Struct Reference

#include <MTNFile.h>

List of all members.

Public Member Functions

word GetNumJoints ()
word GetNumKeyFrames ()
word GetFrameRate ()
char * GetName ()
char * GetAuthor ()
char * GetRobotDesign ()
char * GetLocator (int index)
MTNString * GetLocator2 (int index)
longword GetDataType ()
int GetEachKeyFrameSize ()
int GetTotalKeyFrameSize ()
MTNKeyFrame * GetKeyFrame (int index)
int GetNumInterpolate (int index)
int GetNumInterpolate8ms (int index)
slongword GetJointValue (int index, int jointIndex)
MTNSection2 * GetSection2 ()
MTNSection3 * GetSection3 ()
void Print ()
void PrintKeyFrame (int index)

Public Attributes

char magic [4]
MTNSection0 section0
MTNSection1 section1

Private Member Functions

char * string_access (MTNString *mstr)


Member Function Documentation

char * MTNFile::GetAuthor (   ) 
 

Definition at line 41 of file MTNFile.cc.

References byte, MTNString::length, MTNSection1::motion, MTNString::name, section1, and string_access().

Referenced by Print().

longword MTNFile::GetDataType (   ) 
 

Definition at line 78 of file MTNFile.cc.

References GetSection3().

Referenced by Print().

int MTNFile::GetEachKeyFrameSize (   ) 
 

Definition at line 84 of file MTNFile.cc.

References GetNumJoints().

Referenced by GetKeyFrame(), GetNumInterpolate(), GetTotalKeyFrameSize(), and Print().

word MTNFile::GetFrameRate (   ) 
 

Definition at line 28 of file MTNFile.cc.

References MTNSection0::frameRate, and section0.

Referenced by Print().

slongword MTNFile::GetJointValue (  int  index,
int  jointIndex
) 
 

Definition at line 126 of file MTNFile.cc.

References MTNKeyFrame::data, and GetKeyFrame().

MTNKeyFrame * MTNFile::GetKeyFrame (  int  index  ) 
 

Definition at line 100 of file MTNFile.cc.

References byte, GetEachKeyFrameSize(), and GetSection3().

Referenced by GetJointValue(), MTN::InterpolateCommandData(), and PrintKeyFrame().

char * MTNFile::GetLocator (  int  index  ) 
 

Definition at line 58 of file MTNFile.cc.

References byte, GetSection2(), MTNString::length, MTNString::name, and string_access().

Referenced by Print().

MTNString * MTNFile::GetLocator2 (  int  index  ) 
 

Definition at line 68 of file MTNFile.cc.

References byte, GetSection2(), MTNString::length, and MTNString::name.

char * MTNFile::GetName (   ) 
 

Definition at line 34 of file MTNFile.cc.

References MTNSection1::motion, section1, and string_access().

Referenced by MTN::GetName(), Print(), and MoNet::ToCommandIndex().

int MTNFile::GetNumInterpolate (  int  index  ) 
 

Definition at line 108 of file MTNFile.cc.

References byte, GetEachKeyFrameSize(), GetNumKeyFrames(), and GetSection3().

Referenced by GetNumInterpolate8ms(), and Print().

int MTNFile::GetNumInterpolate8ms (  int  index  ) 
 

Definition at line 119 of file MTNFile.cc.

References GetNumInterpolate().

Referenced by MTN::InterpolateCommandData(), MTN::InterpolateCommandVectorData(), and MTN::Next().

word MTNFile::GetNumJoints (   ) 
 

Definition at line 16 of file MTNFile.cc.

References GetSection2().

Referenced by GetEachKeyFrameSize(), MTN::InterpolateCommandVectorData(), Print(), and PrintKeyFrame().

word MTNFile::GetNumKeyFrames (   ) 
 

Definition at line 22 of file MTNFile.cc.

References MTNSection0::numKeyFrames, and section0.

Referenced by GetNumInterpolate(), GetTotalKeyFrameSize(), MTN::InterpolateCommandData(), MTN::More(), and Print().

char * MTNFile::GetRobotDesign (   ) 
 

Definition at line 49 of file MTNFile.cc.

References byte, MTNString::length, MTNSection1::motion, MTNString::name, section1, and string_access().

Referenced by MTN::GetRobotDesign(), and Print().

MTNSection2 * MTNFile::GetSection2 (   ) 
 

Definition at line 133 of file MTNFile.cc.

References byte, section1, and MTNSection1::sectionSize.

Referenced by GetLocator(), GetLocator2(), GetNumJoints(), and GetSection3().

MTNSection3 * MTNFile::GetSection3 (   ) 
 

Definition at line 141 of file MTNFile.cc.

References byte, GetSection2(), and MTNSection2::sectionSize.

Referenced by GetDataType(), GetKeyFrame(), GetNumInterpolate(), and Print().

int MTNFile::GetTotalKeyFrameSize (   ) 
 

Definition at line 91 of file MTNFile.cc.

References GetEachKeyFrameSize(), and GetNumKeyFrames().

Referenced by Print().

void MTNFile::Print (   ) 
 

Definition at line 7 of file MTNFile_Print.cc.

References GetAuthor(), GetDataType(), GetEachKeyFrameSize(), GetFrameRate(), GetLocator(), GetName(), GetNumInterpolate(), GetNumJoints(), GetNumKeyFrames(), GetRobotDesign(), GetSection3(), GetTotalKeyFrameSize(), magic, and PrintKeyFrame().

void MTNFile::PrintKeyFrame (  int  index  ) 
 

Definition at line 35 of file MTNFile_Print.cc.

References GetKeyFrame(), and GetNumJoints().

Referenced by Print().

char * MTNFile::string_access (  MTNString *  mstr  )  [private]
 

Definition at line 149 of file MTNFile.cc.

References MTNString::length, memcpy(), and MTNString::name.

Referenced by GetAuthor(), GetLocator(), GetName(), and GetRobotDesign().


Member Data Documentation

char MTNFile::magic[4]
 

Definition at line 63 of file MTNFile.h.

Referenced by Print().

MTNSection0 MTNFile::section0
 

Definition at line 64 of file MTNFile.h.

Referenced by GetFrameRate(), and GetNumKeyFrames().

MTNSection1 MTNFile::section1
 

Definition at line 65 of file MTNFile.h.

Referenced by GetAuthor(), GetName(), GetRobotDesign(), and GetSection2().


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