Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_GameObject Class Reference

#include <KX_GameObject.h>

Inheritance diagram for KX_GameObject:

SCA_IObject CValue PyObjectPlus PyObject KX_Camera KX_EmptyObject KX_LightObject List of all members.

Public Methods

 KX_GameObject (void* sgReplicationInfo,SG_Callbacks callbacks,PyTypeObject* T=&Type)
virtual ~KX_GameObject ()
virtual CValueAddRef ()
virtual CValueCalc (VALUE_OPERATOR op, CValue *val)
virtual CValueCalcFinal (VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val)
virtual const CCStringGetText ()
virtual float GetNumber ()
virtual CCString GetName ()
virtual void SetName (CCString name)
virtual void ReplicaSetName (CCString name)
virtual CValueGetReplica ()
void RelativeTransform (const MT_Transform& trans)
virtual void RegisterSumoObject (class SM_Scene* sumoScene,class SM_Object* sumoObj,const char* matname,bool isDynamic,bool isActor,bool addghost)
SM_Object* GetSumoObject ()
void NodeSetLocalPosition (const MT_Point3& trans)
void NodeSetLocalOrientation (const MT_Matrix3x3& rot)
void NodeSetLocalScale (const MT_Vector3& scale)
void NodeUpdateGS (double time,bool bInitiator)
const MT_Matrix3x3& NodeGetWorldOrientation () const
const MT_Vector3& NodeGetWorldScaling () const
const MT_Point3& NodeGetWorldPosition () const
void NodeAddChild (class SG_Spatial* child)
void NodeSetVertexParent (bool isvertexparent)
SG_NodeGetSGNode ()
void SetSGNode (SG_Node* node)
const SG_NodeGetSGNode () const
bool IsDynamic ()
bool IsInLayer ()
void ApplyForce (const MT_Vector3& force,bool local)
void ApplyTorque (const MT_Vector3& torque,bool local)
void ApplyRotation (const MT_Vector3& drot,bool local)
void ApplyMovement (const MT_Vector3& dloc,bool local)
<<<<<<<KX_GameObject.h=======>>>>>>
MT_Matrix3x3 
RotateWorld (const MT_Vector3& v, MT_Scalar angle)
<<<<<<<KX_GameObject.h=======>>>>>>
void 
Bucketize ()
void RemoveMeshes ()
void AddMesh (RAS_MeshObject* mesh)
RAS_MeshObjectGetMesh (int num)
int GetMeshCount ()
void SetMeshScaling (const MT_Vector3& scale)
<<<<<<<KX_GameObject.h=======>>>>>>
void 
SetDynamicsScaling (const MT_Vector3& scale)
const MT_Vector3& GetDynamicScaling () const
void UpdateTransform (bool i_am_ipo = true)
void UpdateIPO (float curframetime)
void SetSumoMotionState ()
void SetDebugColor (unsigned int bgra)
void ResetDebugColor ()
void MarkVisible (bool visible)
virtual PyObject_getattr (char *attr)
PyObjectPySetPosition (PyObject* self, PyObject* args, PyObject* kwds)
 KX_PYMETHOD (KX_GameObject,GetPosition)
 KX_PYMETHOD (KX_GameObject,GetLinearVelocity)
 KX_PYMETHOD (KX_GameObject,GetVelocity)
 KX_PYMETHOD (KX_GameObject,GetMass)
 KX_PYMETHOD (KX_GameObject,GetReactionForce)
 KX_PYMETHOD (KX_GameObject,GetOrientation)
 KX_PYMETHOD (KX_GameObject,SetOrientation)
 KX_PYMETHOD (KX_GameObject,SetVisible)
 KX_PYMETHOD (KX_GameObject,SuspendDynamics)
 KX_PYMETHOD (KX_GameObject,RestoreDynamics)
virtual void setLinearVelocity (const MT_Vector3& lin_vel,bool local)
virtual void setAngularVelocity (const MT_Vector3& ang_vel,bool local)

Static Public Methods

PyObjectsPySetPosition (PyObject* self, PyObject* args, PyObject* kwds)

Protected Methods

double* GetOpenGLMatrix ()
 GetOpenGL Matrix, returns an OpenGL 'compatible' matrix. More...


Protected Attributes

CMatrix4x4 m_OpenGL_4x4Matrix

Constructor & Destructor Documentation

KX_GameObject::KX_GameObject ( void * sgReplicationInfo,
SG_Callbacks callbacks,
PyTypeObject * T = &Type )
 

Definition at line 64 of file KX_GameObject.cpp.

Referenced by GetReplica().

KX_GameObject::~KX_GameObject ( ) [virtual]
 

Definition at line 77 of file KX_GameObject.cpp.


Member Function Documentation

void KX_GameObject::AddMesh ( RAS_MeshObject * mesh ) [inline]
 

Definition at line 142 of file KX_GameObject.h.

Referenced by BL_ConvertBlenderObjects(), CreateGameObject(), and KX_Scene::ReplaceMesh().

CValue * KX_GameObject::AddRef ( ) [inline, virtual]
 

Reimplemented from CValue.

Definition at line 55 of file KX_GameObject.h.

Referenced by KX_Scene::AddReplicaObject(), BL_ConvertBlenderObjects(), KX_TouchSensor::HandleCollision(), and KX_NearSensor::HandleCollision().

void KX_GameObject::ApplyForce ( const MT_Vector3 & force,
bool local )
 

Definition at line 166 of file KX_GameObject.cpp.

Referenced by CForceAction::Execute().

void KX_GameObject::ApplyMovement ( const MT_Vector3 & dloc,
bool local )
 

Definition at line 185 of file KX_GameObject.cpp.

Referenced by CMoveAction::Execute().

void KX_GameObject::ApplyRotation ( const MT_Vector3 & drot,
bool local )
 

Definition at line 201 of file KX_GameObject.cpp.

Referenced by CRotateAction::Execute().

void KX_GameObject::ApplyTorque ( const MT_Vector3 & torque,
bool local )
 

Definition at line 177 of file KX_GameObject.cpp.

Referenced by CTorqueAction::Execute().

void KX_GameObject::Bucketize ( )
 

Definition at line 236 of file KX_GameObject.cpp.

Referenced by BL_ConvertBlenderObjects(), CreateGameObject(), ExampleEngine::MainLoopCallback(), and KX_Scene::ReplaceMesh().

CValue * KX_GameObject::Calc ( VALUE_OPERATOR op,
CValue * val ) [virtual]
 

Reimplemented from CValue.

Definition at line 87 of file KX_GameObject.cpp.

CValue * KX_GameObject::CalcFinal ( VALUE_DATA_TYPE dtype,
VALUE_OPERATOR op,
CValue * val ) [virtual]
 

Reimplemented from CValue.

Definition at line 93 of file KX_GameObject.cpp.

const MT_Vector3 & KX_GameObject::GetDynamicScaling ( ) const [inline]
 

Definition at line 160 of file KX_GameObject.h.

RAS_MeshObject * KX_GameObject::GetMesh ( int num ) [inline]
 

Definition at line 146 of file KX_GameObject.h.

Referenced by BL_ConvertBlenderObjects(), and KX_Scene::CalculateVisibleMeshes().

int KX_GameObject::GetMeshCount ( ) [inline]
 

Definition at line 147 of file KX_GameObject.h.

Referenced by BL_ConvertBlenderObjects(), and KX_Scene::CalculateVisibleMeshes().

CCString KX_GameObject::GetName ( ) [virtual]
 

Reimplemented from CValue.

Definition at line 108 of file KX_GameObject.cpp.

Referenced by BL_ConvertActuators(), and BL_ConvertBlenderObjects().

float KX_GameObject::GetNumber ( ) [virtual]
 

Reimplemented from CValue.

Definition at line 103 of file KX_GameObject.cpp.

double * KX_GameObject::GetOpenGLMatrix ( ) [protected]
 

GetOpenGL Matrix, returns an OpenGL 'compatible' matrix.

Definition at line 223 of file KX_GameObject.cpp.

Referenced by Bucketize(), MarkVisible(), and RemoveMeshes().

CValue * KX_GameObject::GetReplica ( ) [virtual]
 

Reimplemented from CValue.

Definition at line 133 of file KX_GameObject.cpp.

Referenced by KX_Scene::AddNodeReplicaObject().

const SG_Node * KX_GameObject::GetSGNode ( ) const [inline]
 

Definition at line 98 of file KX_GameObject.h.

SG_Node * KX_GameObject::GetSGNode ( ) [inline]
 

Definition at line 89 of file KX_GameObject.h.

Referenced by KX_Scene::AddNodeReplicaObject(), KX_Scene::AddReplicaObject(), ApplyMovement(), ApplyRotation(), BL_ConvertBlenderObjects(), BL_ConvertIpos(), GetOpenGLMatrix(), NodeAddChild(), NodeGetWorldOrientation(), NodeGetWorldPosition(), NodeGetWorldScaling(), NodeSetLocalOrientation(), NodeSetLocalPosition(), NodeSetLocalScale(), NodeSetVertexParent(), NodeUpdateGS(), RegisterSumoObject(), KX_Scene::RemoveObject(), and UpdateIPO().

SM_Object * KX_GameObject::GetSumoObject ( )
 

Definition at line 123 of file KX_GameObject.cpp.

Referenced by KX_Scene::AddReplicaObject(), BL_CreateSumoObjectNew(), and KX_Scene::NewRemoveObject().

const CCString & KX_GameObject::GetText ( ) [virtual]
 

Reimplemented from CValue.

Definition at line 98 of file KX_GameObject.cpp.

bool KX_GameObject::IsDynamic ( ) [inline]
 

Definition at line 104 of file KX_GameObject.h.

Referenced by ApplyMovement(), and ApplyRotation().

bool KX_GameObject::IsInLayer ( ) [inline]
 

Definition at line 107 of file KX_GameObject.h.

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
RestoreDynamics )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
SuspendDynamics )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
SetVisible )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
SetOrientation )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetOrientation )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetReactionForce )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetMass )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetVelocity )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetLinearVelocity )
 

KX_GameObject::KX_PYMETHOD ( KX_GameObject,
GetPosition )
 

void KX_GameObject::MarkVisible ( bool visible )
 

Definition at line 342 of file KX_GameObject.cpp.

Referenced by KX_Scene::CalculateVisibleMeshes(), CreateGameObject(), and ExampleEngine::MainLoopCallback().

void KX_GameObject::NodeAddChild ( class SG_Spatial * child )
 

Definition at line 720 of file KX_GameObject.cpp.

Referenced by BL_ConvertBlenderObjects().

const MT_Matrix3x3 & KX_GameObject::NodeGetWorldOrientation ( ) const
 

Definition at line 706 of file KX_GameObject.cpp.

Referenced by KX_Camera::GetWorldToCamera(), KX_TrackToActuator::Update(), KX_ConstraintActuator::Update(), and KX_CameraActuator::Update().

const MT_Point3 & KX_GameObject::NodeGetWorldPosition ( ) const
 

Definition at line 716 of file KX_GameObject.cpp.

Referenced by KX_Camera::GetWorldToCamera(), ExampleEngine::MainLoopCallback(), KX_TrackToActuator::Update(), KX_ConstraintActuator::Update(), and KX_CameraActuator::Update().

const MT_Vector3 & KX_GameObject::NodeGetWorldScaling ( ) const
 

Definition at line 711 of file KX_GameObject.cpp.

void KX_GameObject::NodeSetLocalOrientation ( const MT_Matrix3x3 & rot )
 

Definition at line 692 of file KX_GameObject.cpp.

Referenced by KX_Scene::AddReplicaObject(), BL_ConvertBlenderObjects(), ExampleEngine::Init(), KX_TrackToActuator::Update(), KX_ConstraintActuator::Update(), and KX_CameraActuator::Update().

void KX_GameObject::NodeSetLocalPosition ( const MT_Point3 & trans )
 

Definition at line 687 of file KX_GameObject.cpp.

Referenced by KX_Scene::AddReplicaObject(), BL_ConvertBlenderObjects(), ExampleEngine::Init(), PySetPosition(), KX_ConstraintActuator::Update(), and KX_CameraActuator::Update().

void KX_GameObject::NodeSetLocalScale ( const MT_Vector3 & scale )
 

Definition at line 697 of file KX_GameObject.cpp.

Referenced by BL_ConvertBlenderObjects().

void KX_GameObject::NodeSetVertexParent ( bool isvertexparent )
 

Definition at line 683 of file KX_GameObject.cpp.

void KX_GameObject::NodeUpdateGS ( double time,
bool bInitiator )
 

Definition at line 701 of file KX_GameObject.cpp.

Referenced by BL_ConvertBlenderObjects(), CreateGameObject(), ExampleEngine::Init(), and ExampleEngine::MainLoopCallback().

PyObject * KX_GameObject::PySetPosition ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline]
 

Definition at line 176 of file KX_GameObject.h.

void KX_GameObject::RegisterSumoObject ( class SM_Scene * sumoScene,
class SM_Object * sumoObj,
const char * matname,
bool isDynamic,
bool isActor,
bool bInLayer ) [virtual]
 

Definition at line 318 of file KX_GameObject.cpp.

Referenced by BL_CreateSumoObjectNew().

void KX_GameObject::RelativeTransform ( const MT_Transform & trans )
 

void KX_GameObject::RemoveMeshes ( )
 

Definition at line 247 of file KX_GameObject.cpp.

Referenced by KX_Scene::NewRemoveObject(), and KX_Scene::ReplaceMesh().

void KX_GameObject::ReplicaSetName ( CCString name ) [virtual]
 

Reimplemented from CValue.

Definition at line 118 of file KX_GameObject.cpp.

void KX_GameObject::ResetDebugColor ( )
 

Definition at line 292 of file KX_GameObject.cpp.

<<<<<<<KX_GameObject.h=======>>>>>> MT_Matrix3x3 KX_GameObject::RotateWorld ( const MT_Vector3 & v,
MT_Scalar angle ) [inline]
 

Definition at line 123 of file KX_GameObject.h.

void KX_GameObject::SetDebugColor ( unsigned int bgra )
 

Definition at line 284 of file KX_GameObject.cpp.

Referenced by ResetDebugColor().

<<<<<<<KX_GameObject.h=======>>>>>> void KX_GameObject::SetDynamicsScaling ( const MT_Vector3 & scale ) [inline]
 

Definition at line 157 of file KX_GameObject.h.

void KX_GameObject::SetMeshScaling ( const MT_Vector3 & scale ) [inline]
 

Definition at line 149 of file KX_GameObject.h.

void KX_GameObject::SetName ( CCString name ) [virtual]
 

Reimplemented from CValue.

Definition at line 113 of file KX_GameObject.cpp.

Referenced by BL_ConvertBlenderObjects().

void KX_GameObject::SetSGNode ( SG_Node * node ) [inline]
 

Definition at line 93 of file KX_GameObject.h.

void KX_GameObject::SetSumoMotionState ( )
 

Definition at line 307 of file KX_GameObject.cpp.

void KX_GameObject::UpdateIPO ( float curframetime )
 

Definition at line 297 of file KX_GameObject.cpp.

Referenced by CIpoAction::Execute().

void KX_GameObject::UpdateTransform ( bool i_am_ipo = true )
 

Referenced by BL_CreateSumoObjectNew(), CreateGameObject(), and UpdateIPO().

PyObject * KX_GameObject::_getattr ( char * attr ) [virtual]
 

Reimplemented from SCA_IObject.

Definition at line 57 of file KX_GameObject.cpp.

PyObject * KX_GameObject::sPySetPosition ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 228 of file KX_GameObject.h.

void KX_GameObject::setAngularVelocity ( const MT_Vector3 & ang_vel,
bool local ) [virtual]
 

Definition at line 359 of file KX_GameObject.cpp.

Referenced by CAngularVelocityAction::Execute().

void KX_GameObject::setLinearVelocity ( const MT_Vector3 & lin_vel,
bool local ) [virtual]
 

Definition at line 351 of file KX_GameObject.cpp.

Referenced by CLinearVelocityAction::Execute().


Member Data Documentation

CMatrix4x4 KX_GameObject::m_OpenGL_4x4Matrix [protected]
 

Definition at line 49 of file KX_GameObject.h.


The documentation for this class was generated from the following files:
Generated at Thu Feb 1 13:03:40 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000