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

SG_Spatial Class Reference

#include <SG_Spatial.h>

Inheritance diagram for SG_Spatial:

SG_IObject SG_Node List of all members.

Public Methods

SG_NodeGetSGParent ()
const SG_NodeGetRootSGParent ()
void RelativeTranslate (const MT_Vector3& trans,bool local)
 note: blender has non-uniform scaling that. More...

void SetLocalPosition (const MT_Point3& trans)
const MT_Point3& GetLocalPosition () const
void RelativeRotate (const MT_Matrix3x3& rot,bool local)
void SetLocalOrientation (const MT_Matrix3x3& rot)
void RelativeScale (const MT_Vector3& scale)
void SetLocalScale (const MT_Vector3& scale)
const MT_Point3& GetWorldPosition () const
const MT_Matrix3x3& GetWorldOrientation () const
const MT_Vector3& GetWorldScaling () const
void SetVertexParent (bool isvertexparent)
virtual void UpdateGS (double time,bool bInitiator)
 Update Geometric State (GS). More...

virtual SG_IObjectGetSGReplica ()
virtual void ProcessSGReplica (SG_IObject* replica)
virtual void Destruct ()

Protected Methods

 SG_Spatial (void* clientobj,void* clientinfo,SG_Callbacks callbacks)
virtual ~SG_Spatial ()
virtual void UpdateWorldData (double time)
 Update World Data. More...


Protected Attributes

MT_Point3 m_localPosition
MT_Matrix3x3 m_localRotation
MT_Vector3 m_localScaling
MT_Point3 m_worldPosition
MT_Matrix3x3 m_worldRotation
MT_Vector3 m_worldScaling
SG_Nodem_SGparent
bool m_vertexparent
friend SG_Node
friend SG_Controller

Constructor & Destructor Documentation

SG_Spatial::SG_Spatial ( void * clientobj,
void * clientinfo,
SG_Callbacks callbacks ) [protected]
 

Definition at line 6 of file SG_Spatial.cpp.

SG_Spatial::~SG_Spatial ( ) [protected, virtual]
 

Definition at line 16 of file SG_Spatial.cpp.


Member Function Documentation

void SG_Spatial::Destruct ( ) [virtual]
 

Reimplemented from SG_IObject.

Reimplemented in SG_Node.

Definition at line 31 of file SG_Spatial.cpp.

Referenced by SG_Node::Destruct().

const MT_Point3 & SG_Spatial::GetLocalPosition ( ) const [inline]
 

Definition at line 39 of file SG_Spatial.h.

Referenced by TestSGController::Update().

const SG_Node * SG_Spatial::GetRootSGParent ( )
 

Definition at line 146 of file SG_Spatial.cpp.

SG_Node * SG_Spatial::GetSGParent ( ) [inline]
 

Definition at line 29 of file SG_Spatial.h.

Referenced by BL_ConvertBlenderObjects(), and UpdateWorldData().

SG_IObject * SG_Spatial::GetSGReplica ( ) [virtual]
 

Reimplemented from SG_IObject.

Reimplemented in SG_Node.

Definition at line 21 of file SG_Spatial.cpp.

Referenced by KX_Scene::AddReplicaObject().

const MT_Matrix3x3 & SG_Spatial::GetWorldOrientation ( ) const [inline]
 

Definition at line 54 of file SG_Spatial.h.

Referenced by KX_PhysicsController::ApplyForce(), KX_PhysicsController::ApplyTorque(), KX_GameObject::GetOpenGLMatrix(), KX_GameObject::NodeGetWorldOrientation(), RelativeRotate(), KX_PhysicsController::RelativeRotate(), RelativeTranslate(), KX_PhysicsController::RelativeTranslate(), KX_PhysicsController::SetAngularVelocity(), KX_PhysicsController::SetLinearVelocity(), and KX_PhysicsController::SetSumoTransform().

const MT_Point3 & SG_Spatial::GetWorldPosition ( ) const [inline]
 

Definition at line 50 of file SG_Spatial.h.

Referenced by KX_GameObject::GetOpenGLMatrix(), KX_GameObject::NodeGetWorldPosition(), and KX_PhysicsController::SetSumoTransform().

const MT_Vector3 & SG_Spatial::GetWorldScaling ( ) const [inline]
 

Definition at line 58 of file SG_Spatial.h.

Referenced by KX_GameObject::GetOpenGLMatrix(), KX_GameObject::NodeGetWorldScaling(), and KX_PhysicsController::SetSumoTransform().

void SG_Spatial::ProcessSGReplica ( SG_IObject * replica ) [virtual]
 

Reimplemented from SG_IObject.

Reimplemented in SG_Node.

Definition at line 26 of file SG_Spatial.cpp.

Referenced by SG_Node::GetSGReplica().

void SG_Spatial::RelativeRotate ( const MT_Matrix3x3 & rot,
bool local )
 

Definition at line 132 of file SG_Spatial.cpp.

Referenced by KX_GameObject::ApplyRotation().

void SG_Spatial::RelativeScale ( const MT_Vector3 & scale )
 

Definition at line 122 of file SG_Spatial.cpp.

void SG_Spatial::RelativeTranslate ( const MT_Vector3 & trans,
bool local )
 

note: blender has non-uniform scaling that.

Definition at line 112 of file SG_Spatial.cpp.

Referenced by KX_GameObject::ApplyMovement().

void SG_Spatial::SetLocalOrientation ( const MT_Matrix3x3 & rot )
 

Definition at line 141 of file SG_Spatial.cpp.

Referenced by BL_ConvertBlenderObjects(), KX_GameObject::NodeSetLocalOrientation(), KX_IpoSGController::Update(), and KX_PhysicsController::do_me().

void SG_Spatial::SetLocalPosition ( const MT_Point3 & trans )
 

Definition at line 117 of file SG_Spatial.cpp.

Referenced by BL_ConvertBlenderObjects(), KX_GameObject::NodeSetLocalPosition(), TestSGController::Update(), KX_IpoSGController::Update(), and KX_PhysicsController::do_me().

void SG_Spatial::SetLocalScale ( const MT_Vector3 & scale )
 

Definition at line 127 of file SG_Spatial.cpp.

Referenced by KX_GameObject::NodeSetLocalScale(), and KX_IpoSGController::Update().

void SG_Spatial::SetVertexParent ( bool isvertexparent ) [inline]
 

Definition at line 62 of file SG_Spatial.h.

Referenced by KX_GameObject::NodeSetVertexParent().

void SG_Spatial::UpdateGS ( double time,
bool bInitiator ) [virtual]
 

Update Geometric State (GS).

Calculates World Data (Transform) (either doing itsself or using the linked SGControllers), and (NOT YET) Bounding Boxes.

Definition at line 41 of file SG_Spatial.cpp.

Referenced by KX_Scene::AddReplicaObject(), and KX_GameObject::NodeUpdateGS().

void SG_Spatial::UpdateWorldData ( double time ) [protected, virtual]
 

Update World Data.

Calculates WorldTransform., (either doing itsself or using the linked SGControllers)

Reimplemented in SG_Node.

Definition at line 56 of file SG_Spatial.cpp.

Referenced by UpdateGS(), and SG_Node::UpdateWorldData().


Member Data Documentation

SG_Controller [protected]
 

Definition at line 70 of file SG_Spatial.h.

SG_Node [protected]
 

Definition at line 69 of file SG_Spatial.h.

SG_Node * SG_Spatial::m_SGparent [protected]
 

Definition at line 24 of file SG_Spatial.h.

MT_Point3 SG_Spatial::m_localPosition [protected]
 

Definition at line 16 of file SG_Spatial.h.

MT_Matrix3x3 SG_Spatial::m_localRotation [protected]
 

Definition at line 17 of file SG_Spatial.h.

MT_Vector3 SG_Spatial::m_localScaling [protected]
 

Definition at line 18 of file SG_Spatial.h.

bool SG_Spatial::m_vertexparent [protected]
 

Definition at line 25 of file SG_Spatial.h.

MT_Point3 SG_Spatial::m_worldPosition [protected]
 

Definition at line 20 of file SG_Spatial.h.

MT_Matrix3x3 SG_Spatial::m_worldRotation [protected]
 

Definition at line 21 of file SG_Spatial.h.

MT_Vector3 SG_Spatial::m_worldScaling [protected]
 

Definition at line 22 of file SG_Spatial.h.


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