|
Blender V5.0
|
#include <btCollisionWorldImporter.h>
Protected Member Functions | |
| char * | duplicateName (const char *name) |
| btCollisionShape * | convertCollisionShape (btCollisionShapeData *shapeData) |
Definition at line 47 of file btCollisionWorldImporter.h.
| btCollisionWorldImporter::btCollisionWorldImporter | ( | btCollisionWorld * | world | ) |
Definition at line 24 of file btCollisionWorldImporter.cpp.
References m_collisionWorld, and m_verboseMode.
|
virtual |
Definition at line 30 of file btCollisionWorldImporter.cpp.
| bool btCollisionWorldImporter::convertAllObjects | ( | btBulletSerializedArrays * | arrays | ) |
Definition at line 34 of file btCollisionWorldImporter.cpp.
References btBvhTriangleMeshShape(), btCollisionObject, btCollisionShape, btOptimizedBvh(), btTransform, convertCollisionShape(), createCollisionObject(), createOptimizedBvh(), duplicateName(), i, m_bodyMap, m_bvhMap, btBulletSerializedArrays::m_bvhsDouble, btBulletSerializedArrays::m_bvhsFloat, btBulletSerializedArrays::m_collisionObjectDataDouble, btBulletSerializedArrays::m_collisionObjectDataFloat, btCollisionObjectDoubleData::m_collisionShape, btCollisionObjectFloatData::m_collisionShape, btBulletSerializedArrays::m_colShapeData, btVector3DoubleData::m_floats, btVector3FloatData::m_floats, btCollisionObjectDoubleData::m_friction, btCollisionObjectDoubleData::m_name, btCollisionObjectFloatData::m_name, btCollisionShapeData::m_name, m_nameShapeMap, m_objectNameMap, btTransformDoubleData::m_origin, btTransformFloatData::m_origin, btCollisionObjectDoubleData::m_restitution, m_shapeMap, btCollisionObjectDoubleData::m_worldTransform, btCollisionObjectFloatData::m_worldTransform, printf, btAlignedObjectArray< T >::size(), and TRIANGLE_MESH_SHAPE_PROXYTYPE.
|
protected |
Definition at line 242 of file btCollisionWorldImporter.cpp.
References BOX_SHAPE_PROXYTYPE, btBoxShape(), btBvhTriangleMeshShape(), btCapsuleShape(), btCollisionShape, btCompoundShape(), btConvexHullShape(), btOptimizedBvh(), btTransform, btTriangleIndexVertexArray(), btVector3, CAPSULE_SHAPE_PROXYTYPE, COMPOUND_SHAPE_PROXYTYPE, CONE_SHAPE_PROXYTYPE, CONST_GIMPACT_TRIMESH_SHAPE, convertCollisionShape(), CONVEX_HULL_SHAPE_PROXYTYPE, createBoxShape(), createBvhTriangleMeshShape(), createCapsuleShapeX(), createCapsuleShapeY(), createCapsuleShapeZ(), createCompoundShape(), createConeShapeX(), createConeShapeY(), createConeShapeZ(), createConvexHullShape(), createCylinderShapeX(), createCylinderShapeY(), createCylinderShapeZ(), createMeshInterface(), createMultiSphereShape(), createOptimizedBvh(), createPlaneShape(), createScaledTrangleMeshShape(), createSphereShape(), createStridingMeshInterfaceData(), createTriangleInfoMap(), CYLINDER_SHAPE_PROXYTYPE, btTriangleInfoMap::deSerialize(), gContactAddedCallback, GIMPACT_SHAPE_PROXYTYPE, i, m_bvhMap, btCompoundShapeChildData::m_childShape, btCompoundShapeData::m_childShapePtr, btConvexInternalShapeData::m_collisionMargin, btGImpactMeshShapeData::m_collisionMargin, btTriangleMeshShapeData::m_collisionMargin, btGImpactMeshShapeData::m_gimpactSubType, btConvexInternalShapeData::m_implicitShapeDimensions, btMultiSphereShapeData::m_localPositionArrayPtr, btMultiSphereShapeData::m_localPositionArraySize, btConvexInternalShapeData::m_localScaling, btGImpactMeshShapeData::m_localScaling, btScaledTriangleMeshShapeData::m_localScaling, btStaticPlaneShapeData::m_localScaling, btGImpactMeshShapeData::m_meshInterface, btTriangleMeshShapeData::m_meshInterface, btCompoundShapeData::m_numChildShapes, btConvexHullShapeData::m_numUnscaledPoints, btStaticPlaneShapeData::m_planeConstant, btStaticPlaneShapeData::m_planeNormal, btPositionAndRadius::m_pos, btTriangleMeshShapeData::m_quantizedDoubleBvh, btTriangleMeshShapeData::m_quantizedFloatBvh, btPositionAndRadius::m_radius, btStridingMeshInterfaceData::m_scaling, btCollisionShapeData::m_shapeType, btCompoundShapeChildData::m_transform, btTriangleMeshShapeData::m_triangleInfoMap, btScaledTriangleMeshShapeData::m_trimeshShapeData, btConvexHullShapeData::m_unscaledPointsDoublePtr, btConvexHullShapeData::m_unscaledPointsFloatPtr, btCapsuleShapeData::m_upAxis, btCylinderShapeData::m_upAxis, btConeShapeData::m_upIndex, MULTI_SPHERE_SHAPE_PROXYTYPE, printf, btAlignedObjectArray< T >::resize(), SCALED_TRIANGLE_MESH_SHAPE_PROXYTYPE, btGImpactMeshShape::setLocalScaling(), btGImpactMeshShape::setMargin(), SOFTBODY_SHAPE_PROXYTYPE, SPHERE_SHAPE_PROXYTYPE, STATIC_PLANE_PROXYTYPE, TRIANGLE_MESH_SHAPE_PROXYTYPE, and btGImpactShapeInterface::updateBound().
Referenced by convertAllObjects(), and convertCollisionShape().
|
virtual |
Definition at line 879 of file btCollisionWorldImporter.cpp.
References btBoxShape(), btCollisionShape, btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 976 of file btCollisionWorldImporter.cpp.
References btBvhTriangleMeshShape(), btOptimizedBvh(), btStridingMeshInterface, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 892 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 899 of file btCollisionWorldImporter.cpp.
References btCapsuleShape(), btCollisionShape, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 906 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
those virtuals are called by load and can be overridden by the user
Definition at line 855 of file btCollisionWorldImporter.cpp.
References btCollisionObject, btCollisionShape, btTransform, duplicateName(), m_allocatedCollisionObjects, m_collisionWorld, m_nameColObjMap, and m_objectNameMap.
Referenced by convertAllObjects().
|
virtual |
Definition at line 1010 of file btCollisionWorldImporter.cpp.
References btCompoundShape(), and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 934 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 941 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btConeShape(), and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 948 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 1003 of file btCollisionWorldImporter.cpp.
References btConvexHullShape(), and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 990 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and btStridingMeshInterface.
|
virtual |
Definition at line 913 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 920 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btCylinderShape(), btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 927 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 610 of file btCollisionWorldImporter.cpp.
References btAlignedAlloc, btIndexedMesh, btTriangleIndexVertexArray(), createTriangleMeshContainer(), i, btMeshPartData::m_3indices16, btMeshPartData::m_3indices8, m_charIndexArrays, m_doubleVertexArrays, btVector3DoubleData::m_floats, btVector3FloatData::m_floats, m_floatVertexArrays, m_indexArrays, btMeshPartData::m_indices16, btMeshPartData::m_indices32, btStridingMeshInterfaceData::m_meshPartsPtr, btStridingMeshInterfaceData::m_numMeshParts, btMeshPartData::m_numTriangles, btMeshPartData::m_numVertices, m_shortIndexArrays, btIntIndexData::m_value, btShortIntIndexData::m_value, btCharIndexTripletData::m_values, btShortIntIndexTripletData::m_values, btMeshPartData::m_vertices3d, btMeshPartData::m_vertices3f, PHY_DOUBLE, PHY_FLOAT, PHY_INTEGER, PHY_SHORT, and PHY_UCHAR.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 1024 of file btCollisionWorldImporter.cpp.
References btMultiSphereShape(), btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
acceleration and connectivity structures
Definition at line 962 of file btCollisionWorldImporter.cpp.
References btOptimizedBvh(), and m_allocatedBvhs.
Referenced by convertAllObjects(), and convertCollisionShape().
|
virtual |
shapes
Definition at line 873 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btStaticPlaneShape(), btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 1017 of file btCollisionWorldImporter.cpp.
References btBvhTriangleMeshShape(), btScaledBvhTriangleMeshShape(), btVector3, and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 885 of file btCollisionWorldImporter.cpp.
References btCollisionShape, btSphereShape(), and m_allocatedCollisionShapes.
Referenced by convertCollisionShape().
|
virtual |
the m_3indices8 was not initialized in some Bullet versions, this can cause crashes at loading time we catch it by only dealing with m_3indices8 if none of the other indices are initialized
Definition at line 727 of file btCollisionWorldImporter.cpp.
References i, btMeshPartData::m_3indices16, btMeshPartData::m_3indices8, m_allocatedbtStridingMeshInterfaceDatas, btMeshPartData::m_indices16, btMeshPartData::m_indices32, btStridingMeshInterfaceData::m_meshPartsPtr, btStridingMeshInterfaceData::m_numMeshParts, btMeshPartData::m_numTriangles, btMeshPartData::m_numVertices, btStridingMeshInterfaceData::m_scaling, btMeshPartData::m_vertices3d, btMeshPartData::m_vertices3f, and numIndices().
Referenced by convertCollisionShape().
|
virtual |
Definition at line 969 of file btCollisionWorldImporter.cpp.
References m_allocatedTriangleInfoMaps.
Referenced by convertCollisionShape().
|
virtual |
Definition at line 955 of file btCollisionWorldImporter.cpp.
References btTriangleIndexVertexArray(), in, and m_allocatedTriangleIndexArrays.
Referenced by createMeshInterface().
|
virtual |
delete all memory collision shapes, rigid bodies, constraints etc. allocated during the load. make sure you don't use the dynamics world containing objects after you call this method
Definition at line 140 of file btCollisionWorldImporter.cpp.
References btAlignedFree, i, btMeshPartData::m_3indices16, btMeshPartData::m_3indices8, m_allocatedbtStridingMeshInterfaceDatas, m_allocatedBvhs, m_allocatedCollisionObjects, m_allocatedCollisionShapes, m_allocatedNames, m_allocatedTriangleIndexArrays, m_allocatedTriangleInfoMaps, m_charIndexArrays, m_collisionWorld, m_doubleVertexArrays, m_floatVertexArrays, m_indexArrays, btMeshPartData::m_indices16, btMeshPartData::m_indices32, btStridingMeshInterfaceData::m_meshPartsPtr, btStridingMeshInterfaceData::m_numMeshParts, m_shortIndexArrays, btMeshPartData::m_vertices3d, and btMeshPartData::m_vertices3f.
|
protected |
Definition at line 596 of file btCollisionWorldImporter.cpp.
References l, m_allocatedNames, and name.
Referenced by convertAllObjects(), and createCollisionObject().
| btOptimizedBvh * btCollisionWorldImporter::getBvhByIndex | ( | int | index | ) | const |
Definition at line 1074 of file btCollisionWorldImporter.cpp.
References btOptimizedBvh(), and m_allocatedBvhs.
| btCollisionObject * btCollisionWorldImporter::getCollisionObjectByName | ( | const char * | name | ) |
Definition at line 845 of file btCollisionWorldImporter.cpp.
References btCollisionObject, m_nameColObjMap, and name.
| btCollisionShape * btCollisionWorldImporter::getCollisionShapeByIndex | ( | int | index | ) |
Definition at line 1037 of file btCollisionWorldImporter.cpp.
References btCollisionShape, and m_allocatedCollisionShapes.
| btCollisionShape * btCollisionWorldImporter::getCollisionShapeByName | ( | const char * | name | ) |
Definition at line 1042 of file btCollisionWorldImporter.cpp.
References btCollisionShape, m_nameShapeMap, and name.
| const char * btCollisionWorldImporter::getNameForPointer | ( | const void * | ptr | ) | const |
Definition at line 1052 of file btCollisionWorldImporter.cpp.
References m_objectNameMap, and ptr.
| int btCollisionWorldImporter::getNumBvhs | ( | ) | const |
Definition at line 1070 of file btCollisionWorldImporter.cpp.
References m_allocatedBvhs.
| int btCollisionWorldImporter::getNumCollisionShapes | ( | ) | const |
Definition at line 1032 of file btCollisionWorldImporter.cpp.
References m_allocatedCollisionShapes.
| int btCollisionWorldImporter::getNumRigidBodies | ( | ) | const |
Definition at line 1060 of file btCollisionWorldImporter.cpp.
References m_allocatedRigidBodies.
| int btCollisionWorldImporter::getNumTriangleInfoMaps | ( | ) | const |
Definition at line 1079 of file btCollisionWorldImporter.cpp.
References m_allocatedTriangleInfoMaps.
| btCollisionObject * btCollisionWorldImporter::getRigidBodyByIndex | ( | int | index | ) | const |
Definition at line 1065 of file btCollisionWorldImporter.cpp.
References btCollisionObject, and m_allocatedRigidBodies.
| btTriangleInfoMap * btCollisionWorldImporter::getTriangleInfoMapByIndex | ( | int | index | ) | const |
Definition at line 1084 of file btCollisionWorldImporter.cpp.
References m_allocatedTriangleInfoMaps.
|
inline |
Definition at line 105 of file btCollisionWorldImporter.h.
References m_verboseMode.
|
inline |
Definition at line 100 of file btCollisionWorldImporter.h.
References m_verboseMode.
|
protected |
Definition at line 60 of file btCollisionWorldImporter.h.
Referenced by createStridingMeshInterfaceData(), and deleteAllData().
|
protected |
Definition at line 57 of file btCollisionWorldImporter.h.
Referenced by createOptimizedBvh(), deleteAllData(), getBvhByIndex(), and getNumBvhs().
|
protected |
Definition at line 61 of file btCollisionWorldImporter.h.
Referenced by createCollisionObject(), and deleteAllData().
|
protected |
Definition at line 54 of file btCollisionWorldImporter.h.
Referenced by createBoxShape(), createBvhTriangleMeshShape(), createCapsuleShapeX(), createCapsuleShapeY(), createCapsuleShapeZ(), createCompoundShape(), createConeShapeX(), createConeShapeY(), createConeShapeZ(), createConvexHullShape(), createCylinderShapeX(), createCylinderShapeY(), createCylinderShapeZ(), createMultiSphereShape(), createPlaneShape(), createScaledTrangleMeshShape(), createSphereShape(), deleteAllData(), getCollisionShapeByIndex(), and getNumCollisionShapes().
|
protected |
Definition at line 63 of file btCollisionWorldImporter.h.
Referenced by deleteAllData(), and duplicateName().
|
protected |
Definition at line 55 of file btCollisionWorldImporter.h.
Referenced by getNumRigidBodies(), and getRigidBodyByIndex().
|
protected |
Definition at line 59 of file btCollisionWorldImporter.h.
Referenced by createTriangleMeshContainer(), and deleteAllData().
|
protected |
Definition at line 58 of file btCollisionWorldImporter.h.
Referenced by createTriangleInfoMap(), deleteAllData(), getNumTriangleInfoMaps(), and getTriangleInfoMapByIndex().
|
protected |
Definition at line 81 of file btCollisionWorldImporter.h.
Referenced by convertAllObjects().
|
protected |
Definition at line 72 of file btCollisionWorldImporter.h.
Referenced by convertAllObjects(), and convertCollisionShape().
|
protected |
Definition at line 67 of file btCollisionWorldImporter.h.
Referenced by createMeshInterface(), and deleteAllData().
|
protected |
Definition at line 50 of file btCollisionWorldImporter.h.
Referenced by btCollisionWorldImporter(), createCollisionObject(), and deleteAllData().
|
protected |
Definition at line 70 of file btCollisionWorldImporter.h.
Referenced by createMeshInterface(), and deleteAllData().
|
protected |
Definition at line 69 of file btCollisionWorldImporter.h.
Referenced by createMeshInterface(), and deleteAllData().
|
protected |
Definition at line 65 of file btCollisionWorldImporter.h.
Referenced by createMeshInterface(), and deleteAllData().
|
protected |
Definition at line 76 of file btCollisionWorldImporter.h.
Referenced by createCollisionObject(), and getCollisionObjectByName().
|
protected |
Definition at line 75 of file btCollisionWorldImporter.h.
Referenced by convertAllObjects(), and getCollisionShapeByName().
Definition at line 78 of file btCollisionWorldImporter.h.
Referenced by convertAllObjects(), createCollisionObject(), and getNameForPointer().
|
protected |
Definition at line 80 of file btCollisionWorldImporter.h.
Referenced by convertAllObjects().
|
protected |
Definition at line 66 of file btCollisionWorldImporter.h.
Referenced by createMeshInterface(), and deleteAllData().
|
protected |
Definition at line 73 of file btCollisionWorldImporter.h.
|
protected |
Definition at line 52 of file btCollisionWorldImporter.h.
Referenced by btCollisionWorldImporter(), getVerboseMode(), and setVerboseMode().