Logo Search packages:      
Sourcecode: blender version File versions  Download package

KX_IpoActuator Class Reference

#include <KX_IpoActuator.h>

Inheritance diagram for KX_IpoActuator:

SCA_IActuator SCA_ILogicBrick

List of all members.


Detailed Description

Do an object ipo

Id
KX_IpoActuator.h 14444 2008-04-16 22:40:48Z hos

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 37 of file KX_IpoActuator.h.


Public Types

enum  AllocationTYPE { STACKVALUE = 0, HEAPVALUE = 1 }
enum  DrawTYPE { STARTFRAME = 0, ENDFRAME = 1, INTERFRAME = 2 }
enum  IpoActType {
  KX_ACT_IPO_NODEF = 0, KX_ACT_IPO_PLAY, KX_ACT_IPO_PINGPONG, KX_ACT_IPO_FLIPPER,
  KX_ACT_IPO_LOOPSTOP, KX_ACT_IPO_LOOPEND, KX_ACT_IPO_KEY2KEY, KX_ACT_IPO_FROM_PROP,
  KX_ACT_IPO_MAX
}
enum  KX_BOOL_TYPE { KX_BOOL_NODEF = 0, KX_TRUE, KX_FALSE, KX_BOOL_MAX }

Public Member Functions

virtual int _delattr (const STR_String &attr)
virtual PyObject * _getattr (const STR_String &attr)
virtual PyObject * _repr (void)
virtual int _setattr (const STR_String &attr, PyObject *value)
void AddEvent (CValue *event)
virtual CValue * AddRef ()
virtual CValue * Calc (VALUE_OPERATOR op, CValue *val)
virtual CValue * CalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)
virtual void ClearProperties ()
virtual void CloneProperties (CValue *replica)
virtual CValue * ConvertPythonToValue (PyObject *pyobj)
virtual PyObject * ConvertValueToPython ()
void Execute (const CAction &a)
virtual CValue * FindIdentifier (const STR_String &identifiername)
virtual STR_String GetName ()
virtual float GetNumber ()
SCA_IObject * GetParent ()
virtual CValue * GetProperty (int inIndex)
virtual CValue * GetProperty (const STR_String &inName)
virtual int GetPropertyCount ()
float GetPropertyNumber (const STR_String &inName, float defnumber)
STR_String GetPropertyText (const STR_String &inName, const STR_String &deftext="")
int GetRefCount ()
 Reference Counting.
virtual CValue * GetReplica ()
virtual const STR_StringGetText ()
virtual double * GetVector3 (bool bGetTransformedVec=false)
bool isA (const char *mytypename)
bool isA (PyTypeObject *T)
bool IsActive ()
virtual bool IsAffected ()
virtual bool IsAnyPropertyModified ()
virtual bool IsCustomFlag1 ()
virtual bool IsCustomFlag2 ()
bool IsError ()
virtual bool IsModified ()
bool IsNegativeEvent () const
bool IsReleaseRequested ()
virtual bool IsSelected ()
virtual bool IsVisible ()
 KX_IpoActuator (SCA_IObject *gameobj, const STR_String &propname, float starttime, float endtime, bool recurse, int acttype, bool ipo_as_force, bool force_ipo_local, PyTypeObject *T=&Type)
 KX_PYMETHOD (CValue, GetName)
 KX_PYMETHOD (SCA_ILogicBrick, GetExecutePriority)
 KX_PYMETHOD (SCA_ILogicBrick, SetExecutePriority)
 KX_PYMETHOD (SCA_ILogicBrick, GetOwner)
 KX_PYMETHOD_DOC (KX_IpoActuator, GetForceIpoActsLocal)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetForceIpoActsLocal)
 KX_PYMETHOD_DOC (KX_IpoActuator, GetType)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetType)
 KX_PYMETHOD_DOC (KX_IpoActuator, GetIpoAsForce)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetIpoAsForce)
 KX_PYMETHOD_DOC (KX_IpoActuator, GetEnd)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetEnd)
 KX_PYMETHOD_DOC (KX_IpoActuator, GetStart)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetStart)
 KX_PYMETHOD_DOC (KX_IpoActuator, SetProperty)
 KX_PYMETHOD_DOC (KX_IpoActuator, Set)
virtual bool LessComparedTo (SCA_ILogicBrick *other)
STR_String op2str (VALUE_OPERATOR op)
virtual void ProcessReplica ()
PyObject * Py_isA (PyObject *args)
virtual int Release ()
virtual bool RemoveProperty (const STR_String &inName)
virtual void ReParent (SCA_IObject *parent)
virtual void ReplicaSetName (STR_String name)
void SetActive (bool active)
virtual void SetAffected (bool bAffected=true)
virtual void SetColorOperator (VALUE_OPERATOR op)
virtual void SetCustomFlag1 (bool bCustomFlag)
virtual void SetCustomFlag2 (bool bCustomFlag)
void SetEnd (float endtime)
void SetError (bool err)
void SetExecutePriority (int execute_Priority)
virtual void SetModified (bool bModified)
virtual void SetName (STR_String name)
virtual void SetOwnerExpression (class CExpression *expr)
virtual void SetPropertiesModified (bool inModified)
virtual void SetProperty (const STR_String &name, CValue *ioProperty)
 Property Management.
void SetReleaseRequested (bool bReleaseRequested)
void SetSelected (bool bSelected)
void SetStart (float starttime)
void SetUeberExecutePriority (int execute_Priority)
virtual void SetValue (CValue *newval)
void SetVisible (bool vis)
void SpecialRelease ()
IpoActType string2mode (char *modename)
virtual bool UnlinkObject (SCA_IObject *clientobj)
virtual bool Update ()
virtual bool Update (double curtime, bool frame)
double * ZeroVector ()

Static Public Member Functions

static PyObject * __getattr (PyObject *PyObj, char *attr)
static PyObject * __repr (PyObject *PyObj)
static int __setattr (PyObject *PyObj, char *attr, PyObject *value)
static void PyDestructor (PyObject *P)
static PyObject * sPy_isA (PyObject *self, PyObject *args, PyObject *kwd)

Public Attributes

IpoActType m_type

Static Public Attributes

static class SCA_LogicManager * m_sCurrentLogicManager = NULL
static STR_String S_KX_ACT_IPO_FLIPPER_STRING = "Flipper"
static STR_String S_KX_ACT_IPO_FROM_PROP_STRING = "FromProp"
static STR_String S_KX_ACT_IPO_KEY2KEY_STRING = "Key2key"
static STR_String S_KX_ACT_IPO_LOOPEND_STRING = "LoopEnd"
static STR_String S_KX_ACT_IPO_LOOPSTOP_STRING = "LoopStop"
static STR_String S_KX_ACT_IPO_PINGPONG_STRING = "PingPong"
static STR_String S_KX_ACT_IPO_PLAY_STRING = "Play"

Protected Member Functions

virtual void AddDataToReplica (CValue *replica)
PyObject * BoolToPyArg (bool)
virtual void DisableRefCount ()
CValue * GetEvent ()
bool PyArgToBool (int boolArg)
void RegisterEvent (CValue *eventval)
void RemoveAllEvents ()
void RemoveEvent ()

Protected Attributes

bool m_bActive
bool m_bIpoPlaying
bool m_bNegativeEvent
float m_direction
float m_endframe
std::vector< CValue * > m_events
CValue * m_eventval
int m_Execute_Priority
int m_Execute_Ueber_Priority
bool m_force_ipo_local
SCA_IObject * m_gameobj
bool m_ipo_as_force
float m_localtime
STR_String m_name
STR_String m_propname
bool m_recurse
float m_startframe
float m_starttime
STR_String m_text

Private Member Functions

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

Private Attributes

 Py_Header

Classes

class  KX_IpoActuator

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

Generated by  Doxygen 1.6.0   Back to index