Blender  V2.59
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
BL_ShapeActionActuator Class Reference

#include <BL_ShapeActionActuator.h>

Inheritance diagram for BL_ShapeActionActuator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 BL_ShapeActionActuator (SCA_IObject *gameobj, const STR_String &propname, const STR_String &framepropname, float starttime, float endtime, struct bAction *action, short playtype, short blendin, short priority, float stride)
virtual ~BL_ShapeActionActuator ()
virtual bool Update (double curtime, bool frame)
virtual CValueGetReplica ()
virtual void ProcessReplica ()
void SetBlendTime (float newtime)
void BlendShape (struct Key *key, float weigth)
bActionGetAction ()
void SetAction (bAction *act)

Public Attributes

 Py_Header

Protected Member Functions

void SetStartTime (float curtime)
void SetLocalTime (float curtime)
bool ClampLocalTime ()

Protected Attributes

MT_Point3 m_lastpos
float m_blendframe
int m_flag
float m_startframe
float m_endframe
float m_starttime
float m_localtime
float m_lastUpdate
float m_blendin
float m_blendstart
float m_stridelength
short m_playtype
short m_priority
struct bActionm_action
STR_String m_framepropname
STR_String m_propname
vector< float > m_blendshape

Detailed Description

Definition at line 44 of file BL_ShapeActionActuator.h.


Constructor & Destructor Documentation

BL_ShapeActionActuator::BL_ShapeActionActuator ( SCA_IObject gameobj,
const STR_String propname,
const STR_String framepropname,
float  starttime,
float  endtime,
struct bAction action,
short  playtype,
short  blendin,
short  priority,
float  stride 
) [inline]

Definition at line 48 of file BL_ShapeActionActuator.h.

Referenced by GetReplica().

BL_ShapeActionActuator::~BL_ShapeActionActuator ( ) [virtual]

Definition at line 64 of file BL_ShapeActionActuator.cpp.


Member Function Documentation

void BL_ShapeActionActuator::BlendShape ( struct Key key,
float  weigth 
)

Definition at line 138 of file BL_ShapeActionActuator.cpp.

References Key::block, KeyBlock::curval, ListBase::first, m_blendshape, and KeyBlock::next.

Referenced by Update().

bool BL_ShapeActionActuator::ClampLocalTime ( ) [protected]

Definition at line 87 of file BL_ShapeActionActuator.cpp.

References m_endframe, m_localtime, and m_startframe.

bAction* BL_ShapeActionActuator::GetAction ( ) [inline]

Definition at line 86 of file BL_ShapeActionActuator.h.

References m_action.

CValue * BL_ShapeActionActuator::GetReplica ( void  ) [virtual]

Implements CValue.

Definition at line 80 of file BL_ShapeActionActuator.cpp.

References BL_ShapeActionActuator(), and ProcessReplica().

void BL_ShapeActionActuator::ProcessReplica ( ) [virtual]

Makes sure any internal data owned by this class is deep copied.

Reimplemented from SCA_IActuator.

Definition at line 68 of file BL_ShapeActionActuator.cpp.

References m_lastUpdate, m_localtime, and m_startframe.

Referenced by GetReplica().

void BL_ShapeActionActuator::SetAction ( bAction act) [inline]

Definition at line 87 of file BL_ShapeActionActuator.h.

References m_action.

void BL_ShapeActionActuator::SetBlendTime ( float  newtime)

Definition at line 75 of file BL_ShapeActionActuator.cpp.

References m_blendframe.

Referenced by BL_DeformableGameObject::SetActiveAction().

void BL_ShapeActionActuator::SetLocalTime ( float  curtime) [protected]
void BL_ShapeActionActuator::SetStartTime ( float  curtime) [protected]
bool BL_ShapeActionActuator::Update ( double  curtime,
bool  frame 
) [virtual]

Member Data Documentation

Definition at line 159 of file BL_ShapeActionActuator.h.

Referenced by GetAction(), and SetAction().

Definition at line 142 of file BL_ShapeActionActuator.h.

Referenced by SetBlendTime(), and Update().

Definition at line 154 of file BL_ShapeActionActuator.h.

Referenced by Update().

vector<float> BL_ShapeActionActuator::m_blendshape [protected]

Definition at line 162 of file BL_ShapeActionActuator.h.

Referenced by BlendShape(), and Update().

Definition at line 155 of file BL_ShapeActionActuator.h.

Referenced by Update().

The frame this action ends

Definition at line 147 of file BL_ShapeActionActuator.h.

Referenced by ClampLocalTime(), SetLocalTime(), SetStartTime(), and Update().

Definition at line 143 of file BL_ShapeActionActuator.h.

Referenced by SetLocalTime(), SetStartTime(), and Update().

Definition at line 160 of file BL_ShapeActionActuator.h.

Referenced by Update().

Definition at line 141 of file BL_ShapeActionActuator.h.

Referenced by Update().

Definition at line 153 of file BL_ShapeActionActuator.h.

Referenced by ProcessReplica(), and Update().

The current time of the action

Definition at line 151 of file BL_ShapeActionActuator.h.

Referenced by ClampLocalTime(), ProcessReplica(), SetLocalTime(), SetStartTime(), and Update().

Definition at line 157 of file BL_ShapeActionActuator.h.

Referenced by Update().

Definition at line 158 of file BL_ShapeActionActuator.h.

Referenced by Update().

Definition at line 161 of file BL_ShapeActionActuator.h.

Referenced by Update().

The frame this action starts

Definition at line 145 of file BL_ShapeActionActuator.h.

Referenced by ClampLocalTime(), ProcessReplica(), SetLocalTime(), SetStartTime(), and Update().

The time this action started

Definition at line 149 of file BL_ShapeActionActuator.h.

Referenced by SetLocalTime(), SetStartTime(), and Update().

Definition at line 156 of file BL_ShapeActionActuator.h.

Referenced by Update().

Reimplemented from SCA_ILogicBrick.

Definition at line 47 of file BL_ShapeActionActuator.h.


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