Bullet Collision Detection & Physics Library
Classes | Public Member Functions | Protected Attributes | List of all members
btSoftBodyTriangleData Class Reference

#include <btSoftBodySolverData.h>

Inheritance diagram for btSoftBodyTriangleData:
Inheritance graph
[legend]
Collaboration diagram for btSoftBodyTriangleData:
Collaboration graph
[legend]

Classes

class  TriangleDescription
 
class  TriangleNodeSet
 Class representing a triangle as a set of three indices into the vertex array. More...
 

Public Member Functions

 btSoftBodyTriangleData ()
 
virtual ~btSoftBodyTriangleData ()
 
virtual void clear ()
 
int getNumTriangles ()
 
virtual void setTriangleAt (const TriangleDescription &triangle, int triangleIndex)
 
virtual void createTriangles (int numTriangles)
 
const TriangleNodeSetgetVertexSet (int triangleIndex)
 Return the vertex index set for triangle triangleIndex as stored on the host. More...
 
float & getTriangleArea (int triangleIndex)
 Get access to the triangle area. More...
 
Vectormath::Aos::Vector3getNormal (int triangleIndex)
 Get access to the normal vector for this triangle. More...
 
virtual bool onAccelerator ()
 Return true if data is on the accelerator. More...
 
virtual bool moveToAccelerator ()
 Move data from host memory to the accelerator. More...
 
virtual bool moveFromAccelerator ()
 Move data from host memory from the accelerator. More...
 

Protected Attributes

btAlignedObjectArray
< TriangleNodeSet
m_vertexIndices
 
btAlignedObjectArray< float > m_area
 
btAlignedObjectArray
< Vectormath::Aos::Vector3
m_normal
 

Detailed Description

Definition at line 583 of file btSoftBodySolverData.h.

Constructor & Destructor Documentation

btSoftBodyTriangleData::btSoftBodyTriangleData ( )
inline

Definition at line 656 of file btSoftBodySolverData.h.

virtual btSoftBodyTriangleData::~btSoftBodyTriangleData ( )
inlinevirtual

Definition at line 660 of file btSoftBodySolverData.h.

Member Function Documentation

virtual void btSoftBodyTriangleData::clear ( )
inlinevirtual

Definition at line 665 of file btSoftBodySolverData.h.

virtual void btSoftBodyTriangleData::createTriangles ( int  numTriangles)
inlinevirtual

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 682 of file btSoftBodySolverData.h.

Vectormath::Aos::Vector3& btSoftBodyTriangleData::getNormal ( int  triangleIndex)
inline

Get access to the normal vector for this triangle.

Definition at line 712 of file btSoftBodySolverData.h.

int btSoftBodyTriangleData::getNumTriangles ( )
inline

Definition at line 672 of file btSoftBodySolverData.h.

float& btSoftBodyTriangleData::getTriangleArea ( int  triangleIndex)
inline

Get access to the triangle area.

Definition at line 704 of file btSoftBodySolverData.h.

const TriangleNodeSet& btSoftBodyTriangleData::getVertexSet ( int  triangleIndex)
inline

Return the vertex index set for triangle triangleIndex as stored on the host.

Definition at line 696 of file btSoftBodySolverData.h.

virtual bool btSoftBodyTriangleData::moveFromAccelerator ( )
inlinevirtual

Move data from host memory from the accelerator.

The CPU version will always return that it has moved it.

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 740 of file btSoftBodySolverData.h.

virtual bool btSoftBodyTriangleData::moveToAccelerator ( )
inlinevirtual

Move data from host memory to the accelerator.

The CPU version will always return that it has moved it.

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 731 of file btSoftBodySolverData.h.

virtual bool btSoftBodyTriangleData::onAccelerator ( )
inlinevirtual

Return true if data is on the accelerator.

The CPU version of this class will return true here because the CPU is the same as the accelerator.

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 722 of file btSoftBodySolverData.h.

virtual void btSoftBodyTriangleData::setTriangleAt ( const TriangleDescription triangle,
int  triangleIndex 
)
inlinevirtual

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 677 of file btSoftBodySolverData.h.

Member Data Documentation

btAlignedObjectArray< float > btSoftBodyTriangleData::m_area
protected

Definition at line 652 of file btSoftBodySolverData.h.

btAlignedObjectArray< Vectormath::Aos::Vector3 > btSoftBodyTriangleData::m_normal
protected

Definition at line 653 of file btSoftBodySolverData.h.

btAlignedObjectArray< TriangleNodeSet > btSoftBodyTriangleData::m_vertexIndices
protected

Definition at line 651 of file btSoftBodySolverData.h.


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