Classes | Public Member Functions | Protected Attributes

btSoftBodyTriangleData Class Reference

#include <btSoftBodySolverData.h>

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

List of all members.

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.
float & getTriangleArea (int triangleIndex)
 Get access to the triangle area.
Vectormath::Aos::Vector3getNormal (int triangleIndex)
 Get access to the normal vector for this triangle.
virtual bool onAccelerator ()
 Return true if data is on the accelerator.
virtual bool moveToAccelerator ()
 Move data from host memory to the accelerator.
virtual bool moveFromAccelerator ()
 Move data from host memory from the accelerator.

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 (  )  [inline, virtual]

Definition at line 660 of file btSoftBodySolverData.h.


Member Function Documentation

virtual void btSoftBodyTriangleData::clear (  )  [inline, virtual]

Definition at line 665 of file btSoftBodySolverData.h.

virtual void btSoftBodyTriangleData::createTriangles ( int  numTriangles  )  [inline, virtual]

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 (  )  [inline, virtual]

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 (  )  [inline, virtual]

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 (  )  [inline, virtual]

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 
) [inline, virtual]

Reimplemented in btSoftBodyTriangleDataDX11, and btSoftBodyTriangleDataOpenCL.

Definition at line 677 of file btSoftBodySolverData.h.


Member Data Documentation

Definition at line 652 of file btSoftBodySolverData.h.

Definition at line 653 of file btSoftBodySolverData.h.

Definition at line 651 of file btSoftBodySolverData.h.


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