VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtDiGuyFacade Class Reference

Because this is all throw away code, this will do both – character and articulated model. Choose wisely.

Public Member Functions

 DtDiGuyFacade (DtAgentManagerInterface &sceneInterface, DtSharedSettingsManager &settingsMgr, DtElementID id, const std::string &motionModel="DtDiGuyMotionModel", bool distribute=false)
 
virtual ~DtDiGuyFacade ()
 
virtual void setPaused (bool b)
 
virtual bool paused () const
 
virtual bool isDead () const
 
const std::string & action () const
 
const std::string & character () const
 
virtual void setAction (const std::string &action, float speed)
 
virtual void forceAction (const std::string &action, float speed)
 
virtual void forceTempAction (const std::string &action, float duration)
 
virtual void gesture (const std::string &gesture)
 
virtual void setPosture (int posture)
 
virtual void setCharacterProperties (const std::string &character, const std::string &appearance, const std::string &head, const std::string &hand)
 
virtual void setActive (bool active)
 
Entity Facade functions

These functions get parameters of the entity facade. representing the entity.

virtual void reset ()
 
virtual void setUpdateTypes (bool deadReckon=true, bool groundClamp=true)
 
virtual void setVisible (bool visible)
 
virtual bool visible () const
 
virtual DtElementID elementId () const
 
virtual int modelSet () const
 
DtSceneObjectAgent & sceneObjectAgent ()
 
Spacial Functions

These functions control the spacial parameters of the entity.

virtual void setPosition (const DtVector &position)
 
virtual DtVector position () const
 
virtual void setAppearanceBits (unsigned int)
 
virtual void setVelocity (const DtVector32 &velocity)
 
virtual DtVector32 velocity () const
 
virtual void setAcceleration (const DtVector32 &acceleration)
 
virtual DtVector32 acceleration () const
 
virtual void setOrientation (const DtTaitBryan &orientation)
 
virtual DtTaitBryan orientation () const
 
virtual void setAngularVelocity (const DtVector32 &angularVelocity)
 
virtual DtVector32 angularVelocity () const
 
void setLastReceivedTime (double lastReceivedTime)
 
double lastReceivedTime () const
 
virtual void setFrozen (bool freeze)
 
bool frozen () const
 
Advanced Spacial Functions

These functions control the advanced spacial behavior including dead-reckoning, smoothing and ground clamping.

virtual void setDeadReckoningEnabled (bool position, bool velocity, bool orientation)
 
virtual void setSmoothingEnabled (bool enabled)
 
virtual void setSmoothingPeriod (float period)
 
virtual void setGroundClampingMode (DtGroundClampingUpdater::GroundClampingMode mode)
 
Articulated Model Functions

These functions control the appearance of an articulated model representing the entity.

virtual void setCharacterModelDefinition (const std::string &modelName)
 
virtual const std::string & characterModelDefinition () const
 
virtual void setModelScalingEnabled (bool enabled)
 
virtual DtModelAgent * modelAgent ()
 
virtual void setMotionModel (const std::string &)
 
const std::string & motionModel () const
 
bool isHuman () const
 

Protected Member Functions

void init ()
 

Protected Attributes

std::string myCharacter
 
std::string myAppearance
 
std::string myHead
 
std::string myHandItem
 
std::string myAction
 
bool myVisible
 
bool myActive
 
bool myPaused
 
bool myFrozen
 
unsigned int myAppearanceBits
 
DtVector myLocation
 
DtVector32 myVelocity
 
DtTaitBryan myOrientation
 
double myLastReceivedTime
 
DtSharedSettingsManagermySharedSettingsManager
 
DtElementID myElementId
 
DtAgentManagerInterfacemySceneInterface
 
bool myDistributeFlag
 
std::string myModelDefinitionName
 
int myModelSet
 
DtSceneObjectAgent * mySceneObjectAgent
 
DtModelAgent * myModelAgent
 
DtDeadReckonUpdaterAgent * myDeadReckonUpdaterAgent
 
DtGroundClampingUpdaterAgent * myGroundClampingUpdaterAgent
 
bool myIsDestroyed
 
std::string myMotionModel
 

Constructor & Destructor Documentation

makVrv::DtDiGuyFacade::DtDiGuyFacade ( DtAgentManagerInterface sceneInterface,
DtSharedSettingsManager settingsMgr,
DtElementID  id,
const std::string &  motionModel = "DtDiGuyMotionModel",
bool  distribute = false 
)

CTOR Creates a 3d Facade for the 3D model set.

virtual makVrv::DtDiGuyFacade::~DtDiGuyFacade ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtDiGuyFacade::reset ( )
virtual

Set the types of updaters that can run on this object.

virtual void makVrv::DtDiGuyFacade::setUpdateTypes ( bool  deadReckon = true,
bool  groundClamp = true 
)
virtual

Set the types of updaters that can run on this object.

virtual void makVrv::DtDiGuyFacade::setVisible ( bool  visible)
virtual

set the entity's model hidden or visible

virtual bool makVrv::DtDiGuyFacade::visible ( ) const
virtual

Get the visibility of the entity.

virtual DtElementID makVrv::DtDiGuyFacade::elementId ( ) const
virtual

Get the element id for the entity facade.

virtual int makVrv::DtDiGuyFacade::modelSet ( ) const
virtual

Returns the model set being visualized.

DtSceneObjectAgent& makVrv::DtDiGuyFacade::sceneObjectAgent ( )

Returns the scene object agent for this facade.

virtual void makVrv::DtDiGuyFacade::setPosition ( const DtVector position)
virtual

Set the position of the entity.The change in position will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).

virtual DtVector makVrv::DtDiGuyFacade::position ( ) const
virtual

Gets the current position of the entity. This value will not update until after the DtDe tick This is not the same as the current velocity. If the entity is being dead-reckoned or smoothed the velocity will change.

virtual void makVrv::DtDiGuyFacade::setAppearanceBits ( unsigned  int)
virtual

Sets the appearance bits.

virtual void makVrv::DtDiGuyFacade::setVelocity ( const DtVector32 &  velocity)
virtual

Set the velocity of the entity. The change in velocity will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).

virtual DtVector32 makVrv::DtDiGuyFacade::velocity ( ) const
virtual

Gets the current velocity of the entity. This value will not update until after the DtDe tick. This is not the same as the current velocity. If the entity is being dead-reckoned or smoothed the velocity will change.

virtual void makVrv::DtDiGuyFacade::setAcceleration ( const DtVector32 &  acceleration)
virtual

Set the acceleration of the entity.

virtual DtVector32 makVrv::DtDiGuyFacade::acceleration ( ) const
virtual

Gets the current acceleration of the entity. This value will not update until after the DtDe tick. This is not the same as the last set acceleration. If the entity is being dead-reckoned or smoothed the velocity will change.

virtual void makVrv::DtDiGuyFacade::setOrientation ( const DtTaitBryan &  orientation)
virtual

Set the orientation of the entity.

virtual DtTaitBryan makVrv::DtDiGuyFacade::orientation ( ) const
virtual

Get the current orientation of the entity.

virtual void makVrv::DtDiGuyFacade::setAngularVelocity ( const DtVector32 &  angularVelocity)
virtual

Set the angular velocity of the entity.

virtual DtVector32 makVrv::DtDiGuyFacade::angularVelocity ( ) const
virtual

Get the angular velocity of the entity.

void makVrv::DtDiGuyFacade::setLastReceivedTime ( double  lastReceivedTime)

Set the position of the entity.The change in position will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).

double makVrv::DtDiGuyFacade::lastReceivedTime ( ) const

Set the position of the entity.The change in position will be applied during the DtDe's agent update phase (which occurs during the DtDe tick after the Driver update phase).

virtual void makVrv::DtDiGuyFacade::setFrozen ( bool  freeze)
virtual

Set the frozen state (Stop or start dead Reckoning)

bool makVrv::DtDiGuyFacade::frozen ( ) const

Get the frozen state.

virtual void makVrv::DtDiGuyFacade::setDeadReckoningEnabled ( bool  position,
bool  velocity,
bool  orientation 
)
virtual

Set dead reckoning algorithm, whether to dead reckon, position, velocity, and orientation.

virtual void makVrv::DtDiGuyFacade::setSmoothingEnabled ( bool  enabled)
virtual

Set whether the Entity smooths.

virtual void makVrv::DtDiGuyFacade::setSmoothingPeriod ( float  period)
virtual

Set the period for entity smoothing.

virtual void makVrv::DtDiGuyFacade::setGroundClampingMode ( DtGroundClampingUpdater::GroundClampingMode  mode)
virtual

Set ground clamping mode using bit flags defined in DtGroundClampingUpdater::GroundClampingMode.

virtual void makVrv::DtDiGuyFacade::setCharacterModelDefinition ( const std::string &  modelName)
virtual

Set the entity's model definition names.

virtual const std::string& makVrv::DtDiGuyFacade::characterModelDefinition ( ) const
virtual

Get the entity's model definition names.

virtual void makVrv::DtDiGuyFacade::setModelScalingEnabled ( bool  enabled)
virtual

Enable/Disable model scaling.

virtual DtModelAgent* makVrv::DtDiGuyFacade::modelAgent ( )
virtual

Access the articulated model agent directly.

virtual void makVrv::DtDiGuyFacade::setMotionModel ( const std::string &  )
virtual

If different than current recreates myModelAgent.

const std::string& makVrv::DtDiGuyFacade::motionModel ( ) const
inline

Determines type of model. DtDiGuyMotionModel means a DtCharacterModelAgent else DtArticulatedModelAgent.

bool makVrv::DtDiGuyFacade::isHuman ( ) const
inline

Set the entity's model definition names.

virtual void makVrv::DtDiGuyFacade::setPaused ( bool  b)
virtual
virtual bool makVrv::DtDiGuyFacade::paused ( ) const
virtual
virtual bool makVrv::DtDiGuyFacade::isDead ( ) const
virtual
const std::string& makVrv::DtDiGuyFacade::action ( ) const
inline
const std::string& makVrv::DtDiGuyFacade::character ( ) const
inline
virtual void makVrv::DtDiGuyFacade::setAction ( const std::string &  action,
float  speed 
)
virtual
virtual void makVrv::DtDiGuyFacade::forceAction ( const std::string &  action,
float  speed 
)
virtual
virtual void makVrv::DtDiGuyFacade::forceTempAction ( const std::string &  action,
float  duration 
)
virtual
virtual void makVrv::DtDiGuyFacade::gesture ( const std::string &  gesture)
virtual
virtual void makVrv::DtDiGuyFacade::setPosture ( int  posture)
virtual
virtual void makVrv::DtDiGuyFacade::setCharacterProperties ( const std::string &  character,
const std::string &  appearance,
const std::string &  head,
const std::string &  hand 
)
virtual
virtual void makVrv::DtDiGuyFacade::setActive ( bool  active)
virtual
void makVrv::DtDiGuyFacade::init ( )
protected

Constructor implementation.

Member Data Documentation

std::string makVrv::DtDiGuyFacade::myCharacter
protected
std::string makVrv::DtDiGuyFacade::myAppearance
protected
std::string makVrv::DtDiGuyFacade::myHead
protected
std::string makVrv::DtDiGuyFacade::myHandItem
protected
std::string makVrv::DtDiGuyFacade::myAction
protected
bool makVrv::DtDiGuyFacade::myVisible
protected
bool makVrv::DtDiGuyFacade::myActive
protected
bool makVrv::DtDiGuyFacade::myPaused
protected
bool makVrv::DtDiGuyFacade::myFrozen
protected
unsigned int makVrv::DtDiGuyFacade::myAppearanceBits
protected
DtVector makVrv::DtDiGuyFacade::myLocation
protected
DtVector32 makVrv::DtDiGuyFacade::myVelocity
protected
DtTaitBryan makVrv::DtDiGuyFacade::myOrientation
protected
double makVrv::DtDiGuyFacade::myLastReceivedTime
protected
DtSharedSettingsManager& makVrv::DtDiGuyFacade::mySharedSettingsManager
protected
DtElementID makVrv::DtDiGuyFacade::myElementId
protected
DtAgentManagerInterface& makVrv::DtDiGuyFacade::mySceneInterface
protected
bool makVrv::DtDiGuyFacade::myDistributeFlag
protected
std::string makVrv::DtDiGuyFacade::myModelDefinitionName
protected

whether or not to distribute models to remote displays

int makVrv::DtDiGuyFacade::myModelSet
protected
DtSceneObjectAgent* makVrv::DtDiGuyFacade::mySceneObjectAgent
protected
DtModelAgent* makVrv::DtDiGuyFacade::myModelAgent
protected
DtDeadReckonUpdaterAgent* makVrv::DtDiGuyFacade::myDeadReckonUpdaterAgent
protected
DtGroundClampingUpdaterAgent* makVrv::DtDiGuyFacade::myGroundClampingUpdaterAgent
protected
bool makVrv::DtDiGuyFacade::myIsDestroyed
protected
std::string makVrv::DtDiGuyFacade::myMotionModel
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)