Public Member Functions | Public Attributes | Protected Attributes

SBody Class Reference

#include <SO3Body.h>

List of all members.

Public Member Functions

 SBody (SScene *scene, SNode *node, int type, OgreNewt::CollisionPtr col)
 ~SBody ()
void BodyAddForceCallback (OgreNewt::Body *body, float timeStep, int threadIndex)
bool BodyBuoyancyCallback (int colID, OgreNewt::Body *me, const Ogre::Quaternion &orient, const Ogre::Vector3 &pos, Ogre::Plane &plane)
OgreNewt::Body * getOgreNewtBodyPointer ()
OgreNewt::CollisionPtr getOgreNewtBodyCollisionPointer ()
Ogre::Real getMass ()
Ogre::Real getH ()
Ogre::Real getRad ()
int getPrimitiveType ()
OgreNewt::MaterialID * getMaterialID ()
bool getState ()
Ogre::Vector3 getInertia ()
Ogre::Vector3 getOffset ()
Ogre::Vector3 getCenterOfMass ()
Ogre::Vector3 getGravity ()
Ogre::Vector3 getForce ()
Ogre::Vector3 getVector ()
Ogre::Vector3 getTorque ()
Ogre::Vector3 getLocalForce ()
Ogre::Vector3 getGlobalForce ()
Ogre::Vector3 getResultForce ()
Ogre::Vector3 getGlobalLocationForce ()
Ogre::Vector3 getLocalLocationForce ()
void setOgreNewtBodyPointer (OgreNewt::Body *mBody)
void setOgreNewtBodyCollisionPointer (OgreNewt::CollisionPtr col)
void setOffset (Ogre::Vector3 mOffset)
void setMass (Ogre::Real mMass)
void setH (Ogre::Real mH)
void setRad (Ogre::Real mRad)
void setPrimitiveType (int cpt)
void setMaterialID (OgreNewt::MaterialID *mMatID)
void setState (bool mState)
void setInertia (Ogre::Vector3 mInteria)
void setCenterOfMass (Ogre::Vector3 com)
void setGravity (Ogre::Vector3 mGravity)
void setForce (Ogre::Vector3 mForce)
void setVector (Ogre::Vector3 mVector)
void setTorque (Ogre::Vector3 mTorque)
void setLocalForce (Ogre::Vector3 mLocalForce)
void setGlobalForce (Ogre::Vector3 mGlobalForce)
void setResultForce (Ogre::Vector3 mResultForce)
void setGlobalLocationForce (Ogre::Vector3 mGlobalLocationForce)
void setLocalLocationForce (Ogre::Vector3 mLocalLocationForce)
void setBuoyancyForce (SBody *fluidBody)
void setPositionOrientation (Ogre::Vector3 mDerivedPos, Ogre::Quaternion mDerivedOrientation)
void updatePositionOrientation ()
void SetMatrix (Ogre::Vector3 mDerivedPos, Ogre::Quaternion mDerivedOrientation)
void UpdateMatrix ()
SNodeGetParentNode ()

Public Attributes

SNodecurrentNode
Ogre::Plane bouancyPlane
bool isFluid
Ogre::Vector3 fluidProperties
bool forceApplied
bool torqueApplied
bool localForceApplied
bool globalForceApplied
bool hasMaterial

Protected Attributes

OgreNewt::Body * O3Body
int primitiveType
bool state
Ogre::Real mass
Ogre::Real h
Ogre::Real rad
OgreNewt::MaterialID * materialID
Ogre::Vector3 inertia
Ogre::Vector3 offset
Ogre::Vector3 centerOfMass
Ogre::Vector3 gravity
Ogre::Vector3 force
Ogre::Vector3 vector
Ogre::Vector3 torque
Ogre::Vector3 localForce
Ogre::Vector3 globalForce
Ogre::Vector3 resultForce
Ogre::Vector3 globalLocationForce
Ogre::Vector3 localLocationForce
OgreNewt::CollisionPtr mCollision
SScenecurrentScene

Detailed Description

Definition at line 40 of file SO3Body.h.


Constructor & Destructor Documentation

SBody::SBody ( SScene scene,
SNode node,
int  type,
OgreNewt::CollisionPtr  col 
)

Definition at line 18 of file SO3Body.cpp.

SBody::~SBody (  )

Definition at line 62 of file SO3Body.cpp.


Member Function Documentation

void SBody::BodyAddForceCallback ( OgreNewt::Body *  body,
float  timeStep,
int  threadIndex 
)

Definition at line 90 of file SO3Body.cpp.

bool SBody::BodyBuoyancyCallback ( int  colID,
OgreNewt::Body *  me,
const Ogre::Quaternion &  orient,
const Ogre::Vector3 &  pos,
Ogre::Plane &  plane 
)

Definition at line 127 of file SO3Body.cpp.

Ogre::Vector3 SBody::getCenterOfMass (  )

Definition at line 183 of file SO3Body.cpp.

Ogre::Vector3 SBody::getForce (  )

Definition at line 193 of file SO3Body.cpp.

Ogre::Vector3 SBody::getGlobalForce (  )

Definition at line 213 of file SO3Body.cpp.

Ogre::Vector3 SBody::getGlobalLocationForce (  )

Definition at line 223 of file SO3Body.cpp.

Ogre::Vector3 SBody::getGravity (  )

Definition at line 188 of file SO3Body.cpp.

Ogre::Real SBody::getH (  )

???????????

Definition at line 153 of file SO3Body.cpp.

Ogre::Vector3 SBody::getInertia (  )

Definition at line 178 of file SO3Body.cpp.

Ogre::Vector3 SBody::getLocalForce (  )

Definition at line 208 of file SO3Body.cpp.

Ogre::Vector3 SBody::getLocalLocationForce (  )

Definition at line 228 of file SO3Body.cpp.

Ogre::Real SBody::getMass (  )

Definition at line 148 of file SO3Body.cpp.

OgreNewt::MaterialID * SBody::getMaterialID (  )

Definition at line 168 of file SO3Body.cpp.

Ogre::Vector3 SBody::getOffset (  )

Definition at line 143 of file SO3Body.cpp.

OgreNewt::CollisionPtr SBody::getOgreNewtBodyCollisionPointer (  )

Definition at line 138 of file SO3Body.cpp.

OgreNewt::Body * SBody::getOgreNewtBodyPointer (  )

Definition at line 133 of file SO3Body.cpp.

SNode * SBody::GetParentNode (  )

Definition at line 364 of file SO3Body.cpp.

int SBody::getPrimitiveType (  )

Definition at line 163 of file SO3Body.cpp.

Ogre::Real SBody::getRad (  )

Definition at line 158 of file SO3Body.cpp.

Ogre::Vector3 SBody::getResultForce (  )

Definition at line 218 of file SO3Body.cpp.

bool SBody::getState (  )

Definition at line 173 of file SO3Body.cpp.

Ogre::Vector3 SBody::getTorque (  )

Definition at line 203 of file SO3Body.cpp.

Ogre::Vector3 SBody::getVector (  )

Definition at line 198 of file SO3Body.cpp.

void SBody::setBuoyancyForce ( SBody fluidBody )

Definition at line 333 of file SO3Body.cpp.

void SBody::setCenterOfMass ( Ogre::Vector3  com )

Definition at line 283 of file SO3Body.cpp.

void SBody::setForce ( Ogre::Vector3  mForce )

Definition at line 293 of file SO3Body.cpp.

void SBody::setGlobalForce ( Ogre::Vector3  mGlobalForce )

Definition at line 313 of file SO3Body.cpp.

void SBody::setGlobalLocationForce ( Ogre::Vector3  mGlobalLocationForce )

Definition at line 323 of file SO3Body.cpp.

void SBody::setGravity ( Ogre::Vector3  mGravity )

Definition at line 288 of file SO3Body.cpp.

void SBody::setH ( Ogre::Real  mH )

Definition at line 253 of file SO3Body.cpp.

void SBody::setInertia ( Ogre::Vector3  mInteria )

Definition at line 278 of file SO3Body.cpp.

void SBody::setLocalForce ( Ogre::Vector3  mLocalForce )

Definition at line 308 of file SO3Body.cpp.

void SBody::setLocalLocationForce ( Ogre::Vector3  mLocalLocationForce )

Definition at line 328 of file SO3Body.cpp.

void SBody::setMass ( Ogre::Real  mMass )

Definition at line 248 of file SO3Body.cpp.

void SBody::setMaterialID ( OgreNewt::MaterialID *  mMatID )

Definition at line 268 of file SO3Body.cpp.

void SBody::SetMatrix ( Ogre::Vector3  mDerivedPos,
Ogre::Quaternion  mDerivedOrientation 
)

Definition at line 352 of file SO3Body.cpp.

void SBody::setOffset ( Ogre::Vector3  mOffset )

Definition at line 243 of file SO3Body.cpp.

void SBody::setOgreNewtBodyCollisionPointer ( OgreNewt::CollisionPtr  col )

Definition at line 238 of file SO3Body.cpp.

void SBody::setOgreNewtBodyPointer ( OgreNewt::Body *  mBody )

Definition at line 233 of file SO3Body.cpp.

void SBody::setPositionOrientation ( Ogre::Vector3  mDerivedPos,
Ogre::Quaternion  mDerivedOrientation 
)

Definition at line 342 of file SO3Body.cpp.

void SBody::setPrimitiveType ( int  cpt )

Definition at line 263 of file SO3Body.cpp.

void SBody::setRad ( Ogre::Real  mRad )

Definition at line 258 of file SO3Body.cpp.

void SBody::setResultForce ( Ogre::Vector3  mResultForce )

Definition at line 318 of file SO3Body.cpp.

void SBody::setState ( bool  mState )

Definition at line 273 of file SO3Body.cpp.

void SBody::setTorque ( Ogre::Vector3  mTorque )

Definition at line 303 of file SO3Body.cpp.

void SBody::setVector ( Ogre::Vector3  mVector )

Definition at line 298 of file SO3Body.cpp.

void SBody::UpdateMatrix (  )

Definition at line 359 of file SO3Body.cpp.

void SBody::updatePositionOrientation (  )

Definition at line 347 of file SO3Body.cpp.


Member Data Documentation

Ogre::Plane SBody::bouancyPlane

Definition at line 122 of file SO3Body.h.

Ogre::Vector3 SBody::centerOfMass [protected]

Definition at line 53 of file SO3Body.h.

Definition at line 77 of file SO3Body.h.

Definition at line 64 of file SO3Body.h.

Ogre::Vector3 SBody::fluidProperties

Definition at line 130 of file SO3Body.h.

Ogre::Vector3 SBody::force [protected]

Definition at line 55 of file SO3Body.h.

Definition at line 134 of file SO3Body.h.

Ogre::Vector3 SBody::globalForce [protected]

Definition at line 59 of file SO3Body.h.

Definition at line 146 of file SO3Body.h.

Ogre::Vector3 SBody::globalLocationForce [protected]

Definition at line 61 of file SO3Body.h.

Ogre::Vector3 SBody::gravity [protected]

Definition at line 54 of file SO3Body.h.

Ogre::Real SBody::h [protected]

Definition at line 48 of file SO3Body.h.

Definition at line 150 of file SO3Body.h.

Ogre::Vector3 SBody::inertia [protected]

Definition at line 51 of file SO3Body.h.

Definition at line 126 of file SO3Body.h.

Ogre::Vector3 SBody::localForce [protected]

Definition at line 58 of file SO3Body.h.

Definition at line 142 of file SO3Body.h.

Ogre::Vector3 SBody::localLocationForce [protected]

Definition at line 62 of file SO3Body.h.

Ogre::Real SBody::mass [protected]

Definition at line 47 of file SO3Body.h.

OgreNewt::MaterialID* SBody::materialID [protected]

Definition at line 50 of file SO3Body.h.

OgreNewt::CollisionPtr SBody::mCollision [protected]

Definition at line 63 of file SO3Body.h.

OgreNewt::Body* SBody::O3Body [protected]

Definition at line 44 of file SO3Body.h.

Ogre::Vector3 SBody::offset [protected]

Definition at line 52 of file SO3Body.h.

int SBody::primitiveType [protected]

Definition at line 45 of file SO3Body.h.

Ogre::Real SBody::rad [protected]

Definition at line 49 of file SO3Body.h.

Ogre::Vector3 SBody::resultForce [protected]

Definition at line 60 of file SO3Body.h.

bool SBody::state [protected]

Definition at line 46 of file SO3Body.h.

Ogre::Vector3 SBody::torque [protected]

Definition at line 57 of file SO3Body.h.

Definition at line 138 of file SO3Body.h.

Ogre::Vector3 SBody::vector [protected]

Definition at line 56 of file SO3Body.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines