#include <tvu_humanbody.h>
Inheritance diagram for CTHumanBody::

Public Types | |
| enum | ACTIONTYPE { ACTION_ARMS_STRAIGHT, ACTION_ARM_UP, ACTION_LEFTHAND_UP, ACTION_RIGHTHAND_UP, ACTION_HAND_DOWN, ACTION_LEFTHAND_DOWN, ACTION_RIGHTHAND_DOWN, ACTION_MOVE_FORWARD, ACTION_MOVE_BACKWARD, ACTION_TURNLEFT, ACTION_TURNRIGHT, ACTION_FALLED, ACTION_SIT, ACTION_JUMP } |
| Types of action. More... | |
Public Methods | |
| CTHumanBody () | |
| Contructors/Destructors. More... | |
| ~CTHumanBody () | |
| DEFINE_ID_FUNCTIONS (CTHumanBody, CTBodyPart, CLASSNAME_HUMAN_BODY_ID, CLASSNAME_HUMAN_BODY) public | |
| virtual CTList | GetSaveLoadObjects (TBOOL bOnLoad=TTRUE) |
| The children to save/load. More... | |
| virtual TBOOL | OnDisplaying (THFILE lpDevice) |
| Display to a device (a file), lpFile == NULL means that the device is GEOMVIEW. More... | |
| virtual BOUNDARY | GetBoundary () |
| Get the boundary of the object. More... | |
| TANGLES | GetArmAngles (TLPCSTR lpArm) |
| For processing human actions For the motions of the arms Return: the vector in which the person moves. More... | |
| void | SetArmAngles (TLPCSTR lpArm, double Alpha=0., double Beta=0., double Gamma=0.) |
| TANGLES | GetArm2Angles (TLPCSTR lpArm) |
| void | SetArm2Angles (TLPCSTR lpArm, double Alpha=0., double Beta=0., double Gamma=0.) |
| TANGLES | GetLegAngles (TLPCSTR lpLeg) |
| For the motions of the legs. More... | |
| void | SetLegAngles (TLPCSTR lpLeg, double Alpha=0., double Beta=0., double Gamma=0.) |
| TANGLES | GetLeg2Angles (TLPCSTR lpLeg) |
| void | SetLeg2Angles (TLPCSTR lpLeg, double Alpha=0., double Beta=0., double Gamma=0.) |
| virtual void | Reset () |
| Reset every parts of the person. More... | |
| virtual TBOOL | Init () |
| Init. More... | |
| virtual TBOOL | Action (CTHumanAction *pAction, TINT tTime) |
| For doing an action. More... | |
| virtual TBOOL | Execute (TDWORD t) |
| Execute the person at the time t. More... | |
| POSTURETYPE | SetNewPosture (POSTURETYPE NewPosture) |
| Posture Return: Current posture. More... | |
| ACTIONTYPE | SetNewAction (ACTIONTYPE NewAction) |
| Action Return: Current action. More... | |
| POSTURETYPE | GetCurrentPosture () |
| Status. More... | |
| POSTURETYPE | GetOldPosture () |
| ACTIONTYPE | GetCurrentAction () |
| ACTIONTYPE | GetOldAction () |
| CTPoint3D | GetOldPosition () |
| CTAngles | GetOldAngles () |
| CTScenario* | SetScenario (CTScenario *pScenario) |
| virtual void | Delete () |
| For deleting the object. More... | |
| virtual CTHumanBody& | operator= (CTHumanBody &AhumanBody) |
| Operations. More... | |
Data Fields | |
| POSTURETYPE | |
Protected Attributes | |
| POSTURETYPE | m_CurrentPosture |
| Data Posture. More... | |
| POSTURETYPE | m_OldPosture |
| ACTIONTYPE | m_CurrentAction |
| Action. More... | |
| ACTIONTYPE | m_OldAction |
| CTPoint3D | m_OldPosition |
| Old position. More... | |
| CTAngles | m_OldAngles |
| CTInt | m_OldTime |
| Time. More... | |
| CTBodyPart* | m_OldStaticPart |
| TPOINT3D | m_OldStaticPoint |
| CTScenario* | m_pScenario |
|
|
Types of action.
00136 {
00137 ACTION_ARMS_STRAIGHT,
00138
00139 ACTION_ARM_UP,
00140 ACTION_LEFTHAND_UP,
00141 ACTION_RIGHTHAND_UP,
00142 ACTION_HAND_DOWN,
00143 ACTION_LEFTHAND_DOWN,
00144 ACTION_RIGHTHAND_DOWN,
00145 ACTION_MOVE_FORWARD,
00146 ACTION_MOVE_BACKWARD,
00147 ACTION_TURNLEFT,
00148 ACTION_TURNRIGHT,
00149 ACTION_FALLED,
00150 ACTION_SIT,
00151 ACTION_JUMP
00152 } ACTIONTYPE;
|
|
|
Contructors/Destructors.
|
|
|
For doing an action.
Reimplemented from CTBodyPart. |
|
|
For deleting the object.
Reimplemented from CTBodyPart. |
|
|
Execute the person at the time t.
|
|
|
For processing human actions For the motions of the arms Return: the vector in which the person moves.
|
|
|
Get the boundary of the object.
|
|
|
Status.
00189 { return m_CurrentPosture; };
|
|
|
For the motions of the legs.
|
|
|
The children to save/load.
Reimplemented from CTBodyPart. |
|
|
Init.
Reimplemented from CTBodyPart. |
|
|
Display to a device (a file), lpFile == NULL means that the device is GEOMVIEW.
Reimplemented from CT3DObject. |
|
|
Reset every parts of the person.
|
|
|
Action Return: Current action.
|
|
|
Posture Return: Current posture.
|
|
|
Operations.
|
|
|
Action.
|
|
|
Data Posture.
|
|
|
Old position.
|
|
|
Time.
Reimplemented from CTBodyPart. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001