OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NifBullet::BulletNifLoader Class Reference

#include <bulletnifloader.hpp>

Collaboration diagram for NifBullet::BulletNifLoader:

Public Member Functions

 BulletNifLoader ()
 
virtual ~BulletNifLoader ()
 
void warn (const std::string &msg)
 
void fail (const std::string &msg)
 
osg::ref_ptr
< Resource::BulletShape
load (const Nif::NIFFilePtr file)
 

Private Member Functions

bool findBoundingBox (const Nif::Node *node, int flags=0)
 
void handleNode (Nif::Node const *node, int flags, bool isCollisionNode, bool isAnimated=false, bool autogenerated=false)
 
bool hasAutoGeneratedCollision (const Nif::Node *rootNode)
 
void handleNiTriShape (const Nif::NiTriShape *shape, int flags, const osg::Matrixf &transform, bool isAnimated)
 

Private Attributes

btCompoundShape * mCompoundShape
 
btTriangleMesh * mStaticMesh
 
osg::ref_ptr
< Resource::BulletShape
mShape
 

Detailed Description

Load bulletShape from NIF files.

Constructor & Destructor Documentation

NifBullet::BulletNifLoader::BulletNifLoader ( )
NifBullet::BulletNifLoader::~BulletNifLoader ( )
virtual

Member Function Documentation

void NifBullet::BulletNifLoader::fail ( const std::string &  msg)
inline
bool NifBullet::BulletNifLoader::findBoundingBox ( const Nif::Node node,
int  flags = 0 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void NifBullet::BulletNifLoader::handleNiTriShape ( const Nif::NiTriShape shape,
int  flags,
const osg::Matrixf &  transform,
bool  isAnimated 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void NifBullet::BulletNifLoader::handleNode ( Nif::Node const *  node,
int  flags,
bool  isCollisionNode,
bool  isAnimated = false,
bool  autogenerated = false 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

bool NifBullet::BulletNifLoader::hasAutoGeneratedCollision ( const Nif::Node rootNode)
private

Here is the call graph for this function:

Here is the caller graph for this function:

osg::ref_ptr< Resource::BulletShape > NifBullet::BulletNifLoader::load ( const Nif::NIFFilePtr  file)

Here is the call graph for this function:

Here is the caller graph for this function:

void NifBullet::BulletNifLoader::warn ( const std::string &  msg)
inline

Here is the caller graph for this function:

Member Data Documentation

btCompoundShape* NifBullet::BulletNifLoader::mCompoundShape
private
osg::ref_ptr<Resource::BulletShape> NifBullet::BulletNifLoader::mShape
private
btTriangleMesh* NifBullet::BulletNifLoader::mStaticMesh
private

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