Bullet Collision Detection & Physics Library: btGImpactMeshShapePart::TrimeshPrimitiveManager Class Reference

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | List of all members
btGImpactMeshShapePart::TrimeshPrimitiveManager Class Reference

Trimesh primitive manager. More...

`#include <btGImpactShape.h>`

Inheritance diagram for btGImpactMeshShapePart::TrimeshPrimitiveManager:
[legend]
Collaboration diagram for btGImpactMeshShapePart::TrimeshPrimitiveManager:
[legend]

## Public Member Functions
| TrimeshPrimitiveManager ()
| TrimeshPrimitiveManager (const TrimeshPrimitiveManager &manager)
| TrimeshPrimitiveManager (btStridingMeshInterface *meshInterface, int part)
virtual | ~TrimeshPrimitiveManager ()
void | lock ()
void | unlock ()
virtual bool | is_trimesh () const
| determines if this manager consist on only triangles, which special case will be optimized More...
virtual int | get_primitive_count () const
int | get_vertex_count () const
void | get_indices (int face_index, unsigned int &i0, unsigned int &i1, unsigned int &i2) const
void | get_vertex (unsigned int vertex_index, btVector3 &vertex) const
virtual void | get_primitive_box (int prim_index, btAABB &primbox) const
virtual void | get_primitive_triangle (int prim_index, btPrimitiveTriangle &triangle) const
| retrieves only the points of the triangle, and the collision margin More...
void | get_bullet_triangle (int prim_index, btTriangleShapeEx &triangle) const
Public Member Functions inherited from btPrimitiveManagerBase
virtual | ~btPrimitiveManagerBase ()

## Public Attributes
btScalar | m_margin
btStridingMeshInterface * | m_meshInterface
btVector3 | m_scale
int | m_part
int | m_lock_count
const unsigned char * | vertexbase
int | numverts
PHY_ScalarType | type
int | stride
const unsigned char * | indexbase
int | indexstride
int | numfaces
PHY_ScalarType | indicestype

## Detailed Description

Trimesh primitive manager.

Manages the info from btStridingMeshInterface object and controls the Lock/Unlock mechanism

Definition at line 538 of file btGImpactShape.h.

## Constructor & Destructor Documentation

btGImpactMeshShapePart::TrimeshPrimitiveManager::TrimeshPrimitiveManager | ( |  | ) |
| inline

Definition at line 555 of file btGImpactShape.h.

btGImpactMeshShapePart::TrimeshPrimitiveManager::TrimeshPrimitiveManager | ( | const TrimeshPrimitiveManager & | manager | ) |
| inline

Definition at line 570 of file btGImpactShape.h.

btGImpactMeshShapePart::TrimeshPrimitiveManager::TrimeshPrimitiveManager | ( | btStridingMeshInterface * | meshInterface,
|  | int | part
| ) |  |
| inline

Definition at line 587 of file btGImpactShape.h.

virtual btGImpactMeshShapePart::TrimeshPrimitiveManager::~TrimeshPrimitiveManager | ( |  | ) |
| inlinevirtual

Definition at line 604 of file btGImpactShape.h.

## Member Function Documentation

void btGImpactMeshShapePart::TrimeshPrimitiveManager::get_bullet_triangle | ( | int | prim_index,
|  | btTriangleShapeEx & | triangle
| ) |  | const
| inline

Definition at line 703 of file btGImpactShape.h.

void btGImpactMeshShapePart::TrimeshPrimitiveManager::get_indices | ( | int | face_index,
|  | unsigned int & | i0,
|  | unsigned int & | i1,
|  | unsigned int & | i2
| ) |  | const
| inline

Definition at line 648 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::TrimeshPrimitiveManager::get_primitive_box | ( | int | prim_index,
|  | btAABB & | primbox
| ) |  | const
| inlinevirtual

Implements btPrimitiveManagerBase.

Definition at line 684 of file btGImpactShape.h.

virtual int btGImpactMeshShapePart::TrimeshPrimitiveManager::get_primitive_count | ( |  | ) | const
| inlinevirtual

Implements btPrimitiveManagerBase.

Definition at line 638 of file btGImpactShape.h.

virtual void btGImpactMeshShapePart::TrimeshPrimitiveManager::get_primitive_triangle | ( | int | prim_index,
|  | btPrimitiveTriangle & | triangle
| ) |  | const
| inlinevirtual

retrieves only the points of the triangle, and the collision margin

Implements btPrimitiveManagerBase.

Definition at line 693 of file btGImpactShape.h.

void btGImpactMeshShapePart::TrimeshPrimitiveManager::get_vertex | ( | unsigned int | vertex_index,
|  | btVector3 & | vertex
| ) |  | const
| inline

Definition at line 666 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::get_vertex_count | ( |  | ) | const
| inline

Definition at line 643 of file btGImpactShape.h.

virtual bool btGImpactMeshShapePart::TrimeshPrimitiveManager::is_trimesh | ( |  | ) | const
| inlinevirtual

determines if this manager consist on only triangles, which special case will be optimized

Implements btPrimitiveManagerBase.

Definition at line 633 of file btGImpactShape.h.

void btGImpactMeshShapePart::TrimeshPrimitiveManager::lock | ( |  | ) |
| inline

Definition at line 606 of file btGImpactShape.h.

void btGImpactMeshShapePart::TrimeshPrimitiveManager::unlock | ( |  | ) |
| inline

Definition at line 620 of file btGImpactShape.h.

## Member Data Documentation

const unsigned char* btGImpactMeshShapePart::TrimeshPrimitiveManager::indexbase

Definition at line 550 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::indexstride

Definition at line 551 of file btGImpactShape.h.

PHY_ScalarType btGImpactMeshShapePart::TrimeshPrimitiveManager::indicestype

Definition at line 553 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::m_lock_count

Definition at line 545 of file btGImpactShape.h.

btScalar btGImpactMeshShapePart::TrimeshPrimitiveManager::m_margin

Definition at line 541 of file btGImpactShape.h.

btStridingMeshInterface* btGImpactMeshShapePart::TrimeshPrimitiveManager::m_meshInterface

Definition at line 542 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::m_part

Definition at line 544 of file btGImpactShape.h.

btVector3 btGImpactMeshShapePart::TrimeshPrimitiveManager::m_scale

Definition at line 543 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::numfaces

Definition at line 552 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::numverts

Definition at line 547 of file btGImpactShape.h.

int btGImpactMeshShapePart::TrimeshPrimitiveManager::stride

Definition at line 549 of file btGImpactShape.h.

PHY_ScalarType btGImpactMeshShapePart::TrimeshPrimitiveManager::type

Definition at line 548 of file btGImpactShape.h.

const unsigned char* btGImpactMeshShapePart::TrimeshPrimitiveManager::vertexbase

Definition at line 546 of file btGImpactShape.h.

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

- btGImpactShape.h