home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 March / VPR0303A.ISO / AIBO / MoNet / common / include / MTN.h < prev    next >
C/C++ Source or Header  |  2002-12-19  |  1KB  |  45 lines

  1. //
  2. // Copyright 2002 Sony Corporation 
  3. //
  4. // Permission to use, copy, modify, and redistribute this software for
  5. // non-commercial use is hereby granted.
  6. //
  7. // This software is provided "as is" without warranty of any kind,
  8. // either expressed or implied, including but not limited to the
  9. // implied warranties of fitness for a particular purpose.
  10. //
  11.  
  12. #ifndef MTN_h_DEFINED
  13. #define MTN_h_DEFINED
  14.  
  15. #include <OPENR/ODataFormats.h>
  16. #include "MTNFile.h"
  17.  
  18. class MTN {
  19. public:
  20.     MTN();
  21.     ~MTN() {}
  22.  
  23.     void  Set(MTNFile* file);
  24.     char* GetName();
  25.     char* GetRobotDesign();
  26.  
  27.     void  First();
  28.     bool  More();
  29.     void  Next(int numFrames);
  30.     int   InterpolateCommandVectorData(OCommandVectorData* commandVec,
  31.                                        int maxNumFrames);
  32.  
  33. private:
  34.     int InterpolateCommandData(int jointIndex,
  35.                                OCommandData* data,
  36.                                int valueIndex,
  37.                                int keyFrame, int frame, int maxNumFrames);
  38.  
  39.     MTNFile* mtnfile;
  40.     int      currentKeyFrame;
  41.     int      currentFrame;
  42. };
  43.  
  44. #endif // MTN_h_DEFINED
  45.