VR-Forces 4.0.4 Class Documentation
Classes | Namespaces | Typedefs | Functions
include/vantageTerrainImplementation/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
 Allows for a create menu item from the create menu to signal its creation by default allowing the user to intercept that signal and modify and send the create message to the backend.

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

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.

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 Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)