Atoms Crowd  4.1.0
Atoms::AnimationStateClip Class Reference

Animation State clip. More...

#include <AnimationStateClip.h>

Public Types

enum  MotionType {
  kStraight = 0, kTurnLeft, kTurnRight, kTurnUp,
  kTurnDown, kBankLeft, kBankRight
}
 
enum  MergeType { kMerge = 0, kExclusive, kRandom }
 

Public Member Functions

 AnimationStateClip ()
 Constructor.
 
 AnimationStateClip (const std::string &clipName, unsigned int motionType=kStraight, unsigned int mergeType=kMerge, double angle=0.0, double blendAngle=0.0, const std::string &tagName="", const bool synced=true, const bool useClipDirection=false, const double maxTurnAngle=0.0, const int blendFrames=1)
 Constructor.
 
 AnimationStateClip (const AnimationStateClip &rhs)
 Copy constructor.
 
AnimationStateClipoperator= (const AnimationStateClip &rhs)
 Copy assignment.
 
 ~AnimationStateClip ()
 Destructor.
 
const std::string & clipName () const
 Gets clip name.
 
void setClipName (const std::string &name)
 Sets clip name.
 
const std::string & tagName () const
 Gets tag name.
 
void setTagName (const std::string &name)
 Sets tag name.
 
unsigned int motionType () const
 Gets motion type.
 
void setMotionType (unsigned int mType)
 Sets motion type.
 
unsigned int mergeType () const
 Gets merge type.
 
void setMergeType (unsigned int mType)
 Sets merge type.
 
double angle () const
 Gets turning angle.
 
void setAngle (double value)
 Sets turning angle.
 
double blendAngle () const
 Gets blend angle.
 
void setBlendAngle (double value)
 Sets blend angle.
 
bool synced () const
 Get synced state.
 
void setSynced (const bool synced)
 Set synced state. More...
 
bool useClipDirection () const
 Get use clip direction state.
 
void setUseClipDirection (const bool useClipDirection)
 Set use clip direction state.
 
double maxTurnAngle () const
 Get max turn angle.
 
void setMaxTurnAngle (const double maxTurnAngle)
 Set max turn angle.
 
int blendFrames () const
 Get clip blend frames.
 
void setBlendFrames (const int blendFrames)
 Set clip blend frames.
 

Detailed Description

Animation State clip.

This class defines a clip associated with an animation state

Member Function Documentation

◆ setSynced()

void Atoms::AnimationStateClip::setSynced ( const bool  synced)
inline

Set synced state.

Get synced state.


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