Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Public Attributes
btDebugCastResult Struct Reference

#include <DebugCastResult.h>

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

List of all members.

Public Member Functions

 btDebugCastResult (const btTransform &fromTrans, const btPolyhedralConvexShape *shape, const btVector3 &linVel, const btVector3 &angVel, GL_ShapeDrawer *drawer)
virtual void drawCoordSystem (const btTransform &tr)
virtual void DebugDraw (btScalar fraction)

Public Attributes

btTransform m_fromTrans
const btPolyhedralConvexShapem_shape
btVector3 m_linVel
btVector3 m_angVel
GL_ShapeDrawerm_shapeDrawer
btVector3 m_normal
btVector3 m_hitPoint
btScalar m_fraction
btTransform m_hitTransformA
btTransform m_hitTransformB
btIDebugDrawm_debugDrawer

Detailed Description

Definition at line 33 of file DebugCastResult.h.


Constructor & Destructor Documentation

btDebugCastResult::btDebugCastResult ( const btTransform fromTrans,
const btPolyhedralConvexShape shape,
const btVector3 linVel,
const btVector3 angVel,
GL_ShapeDrawer drawer 
) [inline]

Definition at line 42 of file DebugCastResult.h.

       :m_fromTrans(fromTrans),
       m_shape(shape),
       m_linVel(linVel),
       m_angVel(angVel)
       {
       }

Member Function Documentation

virtual void btDebugCastResult::DebugDraw ( btScalar  fraction) [inline, virtual]

Reimplemented from btConvexCast::CastResult.

Definition at line 71 of file DebugCastResult.h.

Here is the call graph for this function:

virtual void btDebugCastResult::drawCoordSystem ( const btTransform tr) [inline, virtual]

Reimplemented from btConvexCast::CastResult.

Definition at line 51 of file DebugCastResult.h.

       {
              btScalar m[16];
              tr.getOpenGLMatrix(m);
              glPushMatrix();
              btglLoadMatrix(m);
              glBegin(GL_LINES);
              btglColor3(1, 0, 0);
              btglVertex3(0, 0, 0);
              btglVertex3(1, 0, 0);
              btglColor3(0, 1, 0);
              btglVertex3(0, 0, 0);
              btglVertex3(0, 1, 0);
              btglColor3(0, 0, 1);
              btglVertex3(0, 0, 0);
              btglVertex3(0, 0, 1);
              glEnd();
              glPopMatrix();
       }

Here is the call graph for this function:


Member Data Documentation

Definition at line 39 of file DebugCastResult.h.

Definition at line 58 of file btConvexCast.h.

Definition at line 54 of file btConvexCast.h.

Definition at line 36 of file DebugCastResult.h.

Definition at line 53 of file btConvexCast.h.

Definition at line 55 of file btConvexCast.h.

Definition at line 56 of file btConvexCast.h.

Definition at line 38 of file DebugCastResult.h.

Definition at line 50 of file btConvexCast.h.

Definition at line 37 of file DebugCastResult.h.

Definition at line 40 of file DebugCastResult.h.


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