VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Enumerations | 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...
class  DtBvhBuilder
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::list
< btCollisionObject * > 
DtCollisionObjectList
typedef std::vector< std::pair
< DtTriangleMeshWithSoil
*, osg::Matrix > > 
DtMeshTransformPairList

Enumerations

enum  ConvertToBulletFlags {
  ConvertToBulletFlags_TreatPagedLODAsLOD = 0x00000001, ConvertToBulletFlags_CheckGeodesForSurfaces = 0x00000002, ConvertToBulletFlags_UseQuantization = 0x00000004, ConvertToBulletFlags_BuildBvhNow = 0x00000008,
  ConvertToBulletFlags_FilterTransparentPolygons = 0x00000010, ConvertToBulletFlags_DefaultConversion = ConvertToBulletFlags_UseQuantization
}
 Various flags that can be passed in for how to load up the model into bullet geometry. More...

Functions

const
DT_DLL_vantageTerrainImplementation
DtSurface
DtUndefinedSoilType ()
int convertOsgNodeToTriangeMesh (DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, osg::Node *node, const osg::Matrix &baseTransform, const DtFilename &surfaceCharacterFilename="", ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion, const std::vector< std::string > &ignoreSurfacesMatching=std::vector< std::string >(), osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
 Returns a new list of bullet collision meshes and associated transforms created from the provided node.
int convertOsgNodeToTriangeMesh (DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, osg::Node *node, const osg::Matrix &baseTransform, const DtSurface &surface, osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN, ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion)
int convertOsgNodeToTriangeMesh (DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, DtVantageRootNode node, const osg::Matrix &baseTransform, const DtFilename &surfaceCharacterFilename="", ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion, const std::vector< std::string > &ignoreSurfacesMatching=std::vector< std::string >(), osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
 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, bool &scaled)
template<typename T_Node >
unsigned int createCollisionObjects (T_Node node, DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, const osg::Matrix *worldMatrix=NULL, const DtFilename &surfaceCharacterFilename="", ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion, const std::vector< std::string > &ignoreSurfacesMatching=std::vector< std::string >(), osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN)
 Creates bullet collision objects for the geometry represented by the node passed in.
template<typename T_Node >
unsigned int createCollisionObjects (T_Node node, DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, const DtFilename &surfaceCharacterFilename, const std::vector< std::string > &ignoreSurfacesMatching, osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN, ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion)
 Convenience function.
template<typename T_Node >
unsigned int createCollisionObjects (T_Node node, DtCollisionObjectList *collObjects, const DtDrawMode &drawMode, const DtSurface &surface, const osg::Matrix *worldMatrix=NULL, osg::NodeVisitor::TraversalMode traverseMode=osg::NodeVisitor::TRAVERSE_ALL_CHILDREN, ConvertToBulletFlags flags=ConvertToBulletFlags_DefaultConversion)
 Creates bullet collision objects for the geometry represented by the node passed in.

Detailed Description

Typedef Documentation

typedef std::list<btCollisionObject*> DtCollisionObjectList
typedef std::vector<std::pair<DtTriangleMeshWithSoil*, osg::Matrix> > DtMeshTransformPairList

Enumeration Type Documentation

Various flags that can be passed in for how to load up the model into bullet geometry.

Enumerator:
ConvertToBulletFlags_TreatPagedLODAsLOD 
ConvertToBulletFlags_CheckGeodesForSurfaces 
ConvertToBulletFlags_UseQuantization 
ConvertToBulletFlags_BuildBvhNow 
ConvertToBulletFlags_FilterTransparentPolygons 
ConvertToBulletFlags_DefaultConversion 

Function Documentation

const DT_DLL_vantageTerrainImplementation DtSurface& DtUndefinedSoilType ( )
Returns
A DtSurface that is the undefined soil type.
int convertOsgNodeToTriangeMesh ( DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
osg::Node *  node,
const osg::Matrix &  baseTransform,
const DtFilename &  surfaceCharacterFilename = "",
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion,
const std::vector< std::string > &  ignoreSurfacesMatching = std::vector< std::string >(),
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN 
)

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

Referenced by createCollisionObjects().

int convertOsgNodeToTriangeMesh ( DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
osg::Node *  node,
const osg::Matrix &  baseTransform,
const DtSurface surface,
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN,
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion 
)
int convertOsgNodeToTriangeMesh ( DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
DtVantageRootNode  node,
const osg::Matrix &  baseTransform,
const DtFilename &  surfaceCharacterFilename = "",
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion,
const std::vector< std::string > &  ignoreSurfacesMatching = std::vector< std::string >(),
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN 
)

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,
bool scaled 
)
template<typename T_Node >
unsigned int createCollisionObjects ( T_Node  node,
DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
const osg::Matrix *  worldMatrix = NULL,
const DtFilename &  surfaceCharacterFilename = "",
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion,
const std::vector< std::string > &  ignoreSurfacesMatching = std::vector<std::string>(),
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN 
)

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().

Referenced by createCollisionObjects().

template<typename T_Node >
unsigned int createCollisionObjects ( T_Node  node,
DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
const DtFilename &  surfaceCharacterFilename,
const std::vector< std::string > &  ignoreSurfacesMatching,
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN,
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion 
)

Convenience function.

References createCollisionObjects().

template<typename T_Node >
unsigned int createCollisionObjects ( T_Node  node,
DtCollisionObjectList collObjects,
const DtDrawMode drawMode,
const DtSurface surface,
const osg::Matrix *  worldMatrix = NULL,
osg::NodeVisitor::TraversalMode  traverseMode = osg::NodeVisitor::TRAVERSE_ALL_CHILDREN,
ConvertToBulletFlags  flags = ConvertToBulletFlags_DefaultConversion 
)

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().


Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)