Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTHumanBody Class Reference

Representation of the human body. More...

#include <tvu_humanbody.h>

Inheritance diagram for CTHumanBody::

CTBodyPart CT3DObject CTReferableObject CTObject

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 ()
CTScenarioSetScenario (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...

CTBodyPartm_OldStaticPart
TPOINT3D m_OldStaticPoint
CTScenariom_pScenario

Detailed Description

Representation of the human body.


Member Enumeration Documentation

enum CTHumanBody::ACTIONTYPE
 

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;


Constructor & Destructor Documentation

CTHumanBody::CTHumanBody ( )
 

Contructors/Destructors.


Member Function Documentation

TBOOL CTHumanBody::Action ( CTHumanAction * pAction,
TINT tTime ) [virtual]
 

For doing an action.

Reimplemented from CTBodyPart.

void CTHumanBody::Delete ( ) [virtual]
 

For deleting the object.

Reimplemented from CTBodyPart.

TBOOL CTHumanBody::Execute ( TDWORD t ) [virtual]
 

Execute the person at the time t.

TANGLES CTHumanBody::GetArmAngles ( TLPCSTR lpArm )
 

For processing human actions For the motions of the arms Return: the vector in which the person moves.

BOUNDARY CTHumanBody::GetBoundary ( ) [virtual]
 

Get the boundary of the object.

POSTURETYPE CTHumanBody::GetCurrentPosture ( ) [inline]
 

Status.

00189 { return m_CurrentPosture; };

TANGLES CTHumanBody::GetLegAngles ( TLPCSTR lpLeg )
 

For the motions of the legs.

CTList CTHumanBody::GetSaveLoadObjects ( TBOOL bOnLoad = TTRUE ) [virtual]
 

The children to save/load.

Reimplemented from CTBodyPart.

TBOOL CTHumanBody::Init ( ) [virtual]
 

Init.

Reimplemented from CTBodyPart.

TBOOL CTHumanBody::OnDisplaying ( THFILE lpDevice ) [virtual]
 

Display to a device (a file), lpFile == NULL means that the device is GEOMVIEW.

Reimplemented from CT3DObject.

void CTHumanBody::Reset ( ) [virtual]
 

Reset every parts of the person.

ACTIONTYPE CTHumanBody::SetNewAction ( ACTIONTYPE NewAction )
 

Action Return: Current action.

POSTURETYPE CTHumanBody::SetNewPosture ( POSTURETYPE NewPosture )
 

Posture Return: Current posture.

CTHumanBody & CTHumanBody::operator= ( CTHumanBody & AhumanBody ) [virtual]
 

Operations.


Field Documentation

ACTIONTYPE CTHumanBody::m_CurrentAction [protected]
 

Action.

POSTURETYPE CTHumanBody::m_CurrentPosture [protected]
 

Data Posture.

CTPoint3D CTHumanBody::m_OldPosition [protected]
 

Old position.

CTInt CTHumanBody::m_OldTime [protected]
 

Time.

Reimplemented from CTBodyPart.


The documentation for this class was generated from the following file:
Generated at Wed Aug 6 15:59:00 2003 for TVU's libraries for video surveillance: by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001