class ART::IEntity

#include <ARTIEntity.h>

Inherits: IREDObject.

Public functions:

virtual RED_RCAddAnimation ( RED::Object * iAnimation, bool iSetOwner ) = 0
virtual RED_RCBlendAnimationTo ( unsigned int iId, double iDuration ) = 0
virtual RED_RCClearAnimations ( ) = 0
virtual RED_RCGetAnimationCurrentTime ( double & oTime, unsigned int iId ) const = 0
virtual RED_RCGetAnimationDuration ( double & oDuration, unsigned int iId ) const = 0
virtual RED_RCGetAnimationSpeed ( double & oSpeed, unsigned int iId ) const = 0
virtual boolHasAnimation ( unsigned int iId ) const = 0
virtual RED_RCIsAnimationEndReached ( bool & oEndReached, unsigned int iId ) const = 0
virtual RED_RCIsAnimationLoop ( bool & oLoop, unsigned int iId ) const = 0
virtual RED_RCJumpAnimationToTime ( unsigned int iId, double iTime ) = 0
virtual RED_RCSetAnimationLoop ( unsigned int iId, bool iLoop ) = 0
virtual RED_RCSetAnimationSpeed ( unsigned int iId, double iSpeed ) = 0
virtual RED_RCSetGeometry ( RED::Object * iGeometry ) = 0

Public static functions:

static RED::CIDGetClassID ( )

Functions documentation

public virtual RED_RC ART::IEntity::AddAnimation(RED::Object *iAnimation,
booliSetOwner
) = 0

Adds an animation.

If iSetOwner is true, the entity deletes the animations when necessary.

Parameters:

iAnimation:animation as RED::IAnimationController.
iSetOwner:true if the entity becomes the owner of the animation.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::BlendAnimationTo(unsigned intiId,
doubleiDuration
) = 0

Blends the current animation state to the animation whose ID is iId.

Parameters:

iId:ID of the animation object.
iDuration:duration of the blending.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.

Clears all the animations.

If the entity owns the animation, the animation objects are deleted.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::GetAnimationCurrentTime(double &oTime,
unsigned intiId
)const = 0

Gets the current animation time.

Parameters:

oTime:returned animation time.
iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::GetAnimationDuration(double &oDuration,
unsigned intiId
)const = 0

Gets the animation duration.

Parameters:

oDuration:returned animation duration.
iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::GetAnimationSpeed(double &oSpeed,
unsigned intiId
)const = 0

Gets the animation speed.

Parameters:

oSpeed:returned animation speed.
iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual bool ART::IEntity::HasAnimation(unsigned intiId) const = 0

Tests if the entity animation whose ID is iId exists.

Parameters:

iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::IsAnimationEndReached(bool &oEndReached,
unsigned intiId
)const = 0

Tests if the end of the animation has been reached.

Parameters:

oEndReached:returned true if the end was reached, false otherwise.
iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::IsAnimationLoop(bool &oLoop,
unsigned intiId
)const = 0

Tests if the animation is looping.

Parameters:

oLoop:returned loop mode.
iId:ID of the animation object.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::JumpAnimationToTime(unsigned intiId,
doubleiTime
) = 0

Jumps to a given time in the animation.

Parameters:

iId:ID of the animation object.
iTime:time to jump in the animation.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::SetAnimationLoop(unsigned intiId,
booliLoop
) = 0

Sets the animation to loop.

Parameters:

iId:ID of the animation object.
iLoop:true to loop.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::SetAnimationSpeed(unsigned intiId,
doubleiSpeed
) = 0

Sets the play speed of the animation.

Parameters:

iId:ID of the animation object.
iSpeed:animation speed.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.
public virtual RED_RC ART::IEntity::SetGeometry(RED::Object *iGeometry) = 0

Sets the geometry to animate.

Parameters:

iGeometry:geometry as ART::IGeometry.

Returns:

RED_OK if the operation has succeeded,
RED_FAIL otherwise.