Panda3D
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes

OdeTriMeshGeom Class Reference

Inheritance diagram for OdeTriMeshGeom:
OdeGeom

List of all members.

Public Types

enum  GeomClass {
  GCSphere = 0, GCBox = 1, GCCappedCylinder = 2, GCCylinder = 3,
  GCPlane = 4, GCRay = 5, GCTriMesh = 8, GCSimpleSpace = 10,
  GCHashSpace = 11, GCQuadTreeSpace = 12
}

Public Member Functions

 OdeTriMeshGeom (OdeSpace space, OdeTriMeshData data)
 OdeTriMeshGeom (OdeTriMeshData data)
 OdeTriMeshGeom (OdeTriMeshGeom const copy)
 clearOffset ()
 clearTCCache (OdeGeom const geom)
int compareTo (OdeGeom const other)
OdeBoxGeom convertToBox ()
OdeCappedCylinderGeom convertToCappedCylinder ()
OdeCylinderGeom convertToCylinder ()
OdeHashSpace convertToHashSpace ()
OdePlaneGeom convertToPlane ()
OdeQuadTreeSpace convertToQuadTreeSpace ()
OdeRayGeom convertToRay ()
OdeSimpleSpace convertToSimpleSpace ()
OdeSphereGeom convertToSphere ()
OdeTriMeshGeom convertToTriMesh ()
 destroy ()
 disable ()
 enable ()
 enableTC (int geom_class, int enable)
 getAABB (VBase3 min, VBase3 max)
OdeBody getBody ()
BitMaskunsigned getCategoryBits ()
int getClass ()
BitMaskunsigned getCollideBits ()
OdeTriMeshData getData ()
dxGeom getId ()
 Returns the underlying dGeomID.
int getNumTriangles ()
Point3 getOffsetPosition ()
Quat getOffsetQuaternion ()
Mat3 getOffsetRotation ()
Point3 getPoint (int face_index, float u, float v)
Point3 getPosition ()
Quat getQuaternion ()
Mat3 getRotation ()
OdeSpace getSpace ()
 getTriangle (int face_index, Point3 v0, Point3 v1, Point3 v2)
OdeTriMeshData getTriMeshData ()
bool hasBody ()
bool isEmpty ()
 Returns true if the ID is 0, meaning the OdeGeom does not point to a valid geom.
int isEnabled ()
int isOffset ()
int isSpace ()
int isTCEnabled (int geom_class)
 setBody (OdeBody body)
 setCategoryBits (BitMaskunsigned int, 32 const bits)
 setCollideBits (BitMaskunsigned int, 32 const bits)
 setData (OdeTriMeshData data)
 setOffsetPosition (VBase3 const pos)
 setOffsetPosition (float x, float y, float z)
 setOffsetQuaternion (Quat const q)
 setOffsetRotation (Mat3 const r)
 setOffsetWorldPosition (float x, float y, float z)
 setOffsetWorldPosition (VBase3 const pos)
 setOffsetWorldQuaternion (Quat const q)
 setOffsetWorldRotation (Mat3 const r)
 setPosition (float x, float y, float z)
 setPosition (VBase3 const pos)
 setQuaternion (Quat const q)
 setRotation (Mat3 const r)
 setTriMeshData (OdeTriMeshData data)
 write ()
 write (ostream out, unsigned int indent)
 write (ostream out)

Static Public Member Functions

static TypeHandle getClassType ()

Public Attributes

BitMaskunsigned int

Member Enumeration Documentation

enum GeomClass [inherited]
Enumerator:
GCSphere 
GCBox 
GCCappedCylinder 
GCCylinder 
GCPlane 
GCRay 
GCTriMesh 
GCSimpleSpace 
GCHashSpace 
GCQuadTreeSpace 

Constructor & Destructor Documentation

OdeTriMeshGeom ( OdeSpace  space,
OdeTriMeshData  data 
)
OdeTriMeshGeom ( OdeTriMeshGeom const  copy)

Member Function Documentation

clearOffset ( ) [inherited]
clearTCCache ( OdeGeom const  geom)
int compareTo ( OdeGeom const  other) [inherited]
OdeBoxGeom convertToBox ( ) [inherited]
OdeCappedCylinderGeom convertToCappedCylinder ( ) [inherited]
OdeCylinderGeom convertToCylinder ( ) [inherited]
OdeHashSpace convertToHashSpace ( ) [inherited]
OdePlaneGeom convertToPlane ( ) [inherited]
OdeQuadTreeSpace convertToQuadTreeSpace ( ) [inherited]
OdeRayGeom convertToRay ( ) [inherited]
OdeSimpleSpace convertToSimpleSpace ( ) [inherited]
OdeSphereGeom convertToSphere ( ) [inherited]
OdeTriMeshGeom convertToTriMesh ( ) [inherited]
destroy ( )

Reimplemented from OdeGeom.

disable ( ) [inherited]
enable ( ) [inherited]
enableTC ( int  geom_class,
int  enable 
)
getAABB ( VBase3  min,
VBase3  max 
) [inherited]
OdeBody getBody ( ) [inherited]
BitMaskunsigned getCategoryBits ( ) [inherited]
int getClass ( ) [inherited]
static TypeHandle getClassType ( ) [static]

Reimplemented from OdeGeom.

BitMaskunsigned getCollideBits ( ) [inherited]
OdeTriMeshData getData ( )
dxGeom getId ( ) [inherited]

Returns the underlying dGeomID.

int getNumTriangles ( )
Point3 getOffsetPosition ( ) [inherited]
Quat getOffsetQuaternion ( ) [inherited]
Mat3 getOffsetRotation ( ) [inherited]
Point3 getPoint ( int  face_index,
float  u,
float  v 
)
Point3 getPosition ( ) [inherited]
Quat getQuaternion ( ) [inherited]
Mat3 getRotation ( ) [inherited]
OdeSpace getSpace ( ) [inherited]
getTriangle ( int  face_index,
Point3  v0,
Point3  v1,
Point3  v2 
)
OdeTriMeshData getTriMeshData ( )
bool hasBody ( ) [inherited]
bool isEmpty ( ) [inherited]

Returns true if the ID is 0, meaning the OdeGeom does not point to a valid geom.

It is an error to call a method on an empty geom. Note that an empty OdeGeom also evaluates to False.

int isEnabled ( ) [inherited]
int isOffset ( ) [inherited]
int isSpace ( ) [inherited]
int isTCEnabled ( int  geom_class)
setBody ( OdeBody  body) [inherited]
setCategoryBits ( BitMaskunsigned  int,
32 const  bits 
) [inherited]
setCollideBits ( BitMaskunsigned  int,
32 const  bits 
) [inherited]
setData ( OdeTriMeshData  data)
setOffsetPosition ( float  x,
float  y,
float  z 
) [inherited]
setOffsetPosition ( VBase3 const  pos) [inherited]
setOffsetQuaternion ( Quat const  q) [inherited]
setOffsetRotation ( Mat3 const  r) [inherited]
setOffsetWorldPosition ( float  x,
float  y,
float  z 
) [inherited]
setOffsetWorldPosition ( VBase3 const  pos) [inherited]
setOffsetWorldQuaternion ( Quat const  q) [inherited]
setOffsetWorldRotation ( Mat3 const  r) [inherited]
setPosition ( float  x,
float  y,
float  z 
) [inherited]
setPosition ( VBase3 const  pos) [inherited]
setQuaternion ( Quat const  q) [inherited]
setRotation ( Mat3 const  r) [inherited]
setTriMeshData ( OdeTriMeshData  data)
write ( ostream  out) [inherited]
write ( ) [inherited]
write ( ostream  out,
unsigned int  indent 
) [inherited]

Member Data Documentation

BitMaskunsigned int [inherited]
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties