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::File &file)
 

Private Member Functions

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

Private Attributes

std::unique_ptr< btCompoundShape > mCompoundShape
 
std::unique_ptr< 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:

const Nif::Node * NifBullet::BulletNifLoader::getCollisionNode ( const Nif::Node rootNode)
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 ( const std::string &  fileName,
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:

osg::ref_ptr< Resource::BulletShape > NifBullet::BulletNifLoader::load ( const Nif::File 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

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

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