OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWPhysics::Object Class Reference
Inheritance diagram for MWPhysics::Object:
Collaboration diagram for MWPhysics::Object:

Public Member Functions

 Object (const MWWorld::Ptr &ptr, osg::ref_ptr< Resource::BulletShapeInstance > shapeInstance)
 
const
Resource::BulletShapeInstance
getShapeInstance () const
 
void setScale (float scale)
 
void setRotation (const btQuaternion &quat)
 
void setOrigin (const btVector3 &vec)
 
btCollisionObject * getCollisionObject ()
 
const btCollisionObject * getCollisionObject () const
 
bool isSolid () const
 Return solid flag. Not used by the object itself, true by default. More...
 
void setSolid (bool solid)
 
bool isAnimated () const
 
void animateCollisionShapes (btCollisionWorld *collisionWorld)
 
- Public Member Functions inherited from MWPhysics::PtrHolder
virtual ~PtrHolder ()
 
void updatePtr (const MWWorld::Ptr &updated)
 
MWWorld::Ptr getPtr ()
 
MWWorld::ConstPtr getPtr () const
 

Private Attributes

std::auto_ptr< btCollisionObject > mCollisionObject
 
osg::ref_ptr
< Resource::BulletShapeInstance
mShapeInstance
 
std::map< int, osg::NodePath > mRecIndexToNodePath
 
bool mSolid
 

Additional Inherited Members

- Protected Attributes inherited from MWPhysics::PtrHolder
MWWorld::Ptr mPtr
 

Constructor & Destructor Documentation

MWPhysics::Object::Object ( const MWWorld::Ptr ptr,
osg::ref_ptr< Resource::BulletShapeInstance shapeInstance 
)
inline

Here is the call graph for this function:

Member Function Documentation

void MWPhysics::Object::animateCollisionShapes ( btCollisionWorld *  collisionWorld)
inline

Here is the call graph for this function:

btCollisionObject* MWPhysics::Object::getCollisionObject ( )
inline

Here is the caller graph for this function:

const btCollisionObject* MWPhysics::Object::getCollisionObject ( ) const
inline
const Resource::BulletShapeInstance* MWPhysics::Object::getShapeInstance ( ) const
inline
bool MWPhysics::Object::isAnimated ( ) const
inline

Here is the caller graph for this function:

bool MWPhysics::Object::isSolid ( ) const
inline

Return solid flag. Not used by the object itself, true by default.

void MWPhysics::Object::setOrigin ( const btVector3 &  vec)
inline

Here is the caller graph for this function:

void MWPhysics::Object::setRotation ( const btQuaternion &  quat)
inline

Here is the caller graph for this function:

void MWPhysics::Object::setScale ( float  scale)
inline

Here is the caller graph for this function:

void MWPhysics::Object::setSolid ( bool  solid)
inline

Member Data Documentation

std::auto_ptr<btCollisionObject> MWPhysics::Object::mCollisionObject
private
std::map<int, osg::NodePath> MWPhysics::Object::mRecIndexToNodePath
private
osg::ref_ptr<Resource::BulletShapeInstance> MWPhysics::Object::mShapeInstance
private
bool MWPhysics::Object::mSolid
private

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