VR-Forces 4.1 Class Documentation
Classes | Namespaces | Typedefs | Functions
osgToBullet.h File Reference

Go to the source code of this file.

Classes

class  makVrf::DtSurfaceCharacteristicMap
class  DtTriangleMeshWithSoil
 A version of btTriangleMesh that also holds soil type for each polygon. More...
struct  DtVantageRootNode
 Simple structure that holds the VRV equivalent of a pointer to a root node of the scene graph. More...

Namespaces

namespace  osg
namespace  makVrf
 Contains makVrf::DtVrfDisDriver class.

Typedefs

typedef std::map< osg::Geode
*, DtTriangleMeshWithSoil * > 
DtGeodeToMeshMap
typedef std::list< std::pair
< btCollisionObject
*, DtTriangleMeshWithSoil * > > 
DtCollObjMeshPairList
typedef std::list< std::pair
< DtTriangleMeshWithSoil
*, osg::Matrix > > 
DtMeshTransformPairList

Functions

const
DT_DLL_vantageTerrainImplementation
DtSurface
DtUndefinedSoilType ()
DtMeshTransformPairListconvertOsgNodeToTriangeMesh (osg::Node *node, unsigned int &numTriangleOut, const osg::Matrix &baseTransform, const DtFilename &surfaceCharacterFilename="")
 Returns a new list of bullet collision meshes and associated transforms created from the provided node.
DtMeshTransformPairListconvertOsgNodeToTriangeMesh (DtVantageRootNode node, unsigned int &numTriangleOut, const osg::Matrix &baseTransform, const DtFilename &surfaceCharacterFilename="")
 Returns a new list of bullet collision meshes and associated transforms created from the provided node.
Coordinate_SystemcreateVrfCoordinateSystem (const makVrv::DtCoordinateSystem &coodSysIn)
void getBasisAndOrigin (osg::Matrix &matrix, btMatrix3x3 &basisA, btVector3 &origin)
template<typename T_Node >
unsigned int createCollisionObjects (T_Node node, DtCollObjMeshPairList *collObjMeshPairs, const DtDrawMode &drawMode, osg::Matrix *worldMatrix=NULL, const DtFilename &surfaceCharacterFilename="")
 Creates bullet collision objects for the geometry represented by the node passed in.

Detailed Description

Typedef Documentation

typedef std::map<osg::Geode*, DtTriangleMeshWithSoil*> DtGeodeToMeshMap
typedef std::list<std::pair<btCollisionObject*, DtTriangleMeshWithSoil*> > DtCollObjMeshPairList
typedef std::list<std::pair<DtTriangleMeshWithSoil*, osg::Matrix> > DtMeshTransformPairList

Function Documentation

const DT_DLL_vantageTerrainImplementation DtSurface& DtUndefinedSoilType ( )
Returns
A DtSurface that is the undefined soil type.
DtMeshTransformPairList* convertOsgNodeToTriangeMesh ( osg::Node *  node,
unsigned int &  numTriangleOut,
const osg::Matrix &  baseTransform,
const DtFilename &  surfaceCharacterFilename = "" 
)

Returns a new list of bullet collision meshes and associated transforms created from the provided node.

Referenced by createCollisionObjects().

DtMeshTransformPairList* convertOsgNodeToTriangeMesh ( DtVantageRootNode  node,
unsigned int &  numTriangleOut,
const osg::Matrix &  baseTransform,
const DtFilename &  surfaceCharacterFilename = "" 
)

Returns a new list of bullet collision meshes and associated transforms created from the provided node.

Coordinate_System* createVrfCoordinateSystem ( const makVrv::DtCoordinateSystem coodSysIn)
void getBasisAndOrigin ( osg::Matrix &  matrix,
btMatrix3x3 &  basisA,
btVector3 &  origin 
)

Referenced by createCollisionObjects().

template<typename T_Node >
unsigned int createCollisionObjects ( T_Node  node,
DtCollObjMeshPairList collObjMeshPairs,
const DtDrawMode drawMode,
osg::Matrix *  worldMatrix = NULL,
const DtFilename &  surfaceCharacterFilename = "" 
)

Creates bullet collision objects for the geometry represented by the node passed in.

This are added to the collObjMeshPairs list. Calls convertOsgNoveToTriangleMesh() with the node parameter.

References convertOsgNodeToTriangeMesh(), DT_DRAW_POLYGONS, and getBasisAndOrigin().


Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)