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

OdeBoxGeom Class Reference

Inheritance diagram for OdeBoxGeom:
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

 OdeBoxGeom (OdeSpace space, VBase3 const size)
 OdeBoxGeom (OdeSpace space, float lx, float ly, float lz)
 OdeBoxGeom (float lx, float ly, float lz)
 clearOffset ()
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 ()
 getAABB (VBase3 min, VBase3 max)
OdeBody getBody ()
BitMaskunsigned getCategoryBits ()
int getClass ()
BitMaskunsigned getCollideBits ()
dxGeom getId ()
 Returns the underlying dGeomID.
VBase3 getLengths ()
Point3 getOffsetPosition ()
Quat getOffsetQuaternion ()
Mat3 getOffsetRotation ()
float getPointDepth (float x, float y, float z)
float getPointDepth (Point3 const p)
Point3 getPosition ()
Quat getQuaternion ()
Mat3 getRotation ()
OdeSpace getSpace ()
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 ()
 setBody (OdeBody body)
 setCategoryBits (BitMaskunsigned int, 32 const bits)
 setCollideBits (BitMaskunsigned int, 32 const bits)
 setLengths (VBase3 const size)
 setLengths (float lx, float ly, float lz)
 setOffsetPosition (VBase3 const pos)
 setOffsetPosition (float x, float y, float z)
 setOffsetQuaternion (Quat const q)
 setOffsetRotation (Mat3 const r)
 setOffsetWorldPosition (VBase3 const pos)
 setOffsetWorldPosition (float x, float y, float z)
 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)
 write (ostream out)
 write (ostream out, unsigned int indent)
 write ()

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

OdeBoxGeom ( OdeSpace  space,
VBase3 const  size 
)
OdeBoxGeom ( OdeSpace  space,
float  lx,
float  ly,
float  lz 
)
OdeBoxGeom ( float  lx,
float  ly,
float  lz 
)

Member Function Documentation

clearOffset ( ) [inherited]
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 ( ) [inherited]

Reimplemented in OdeTriMeshGeom.

disable ( ) [inherited]
enable ( ) [inherited]
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]
dxGeom getId ( ) [inherited]

Returns the underlying dGeomID.

VBase3 getLengths ( )
Point3 getOffsetPosition ( ) [inherited]
Quat getOffsetQuaternion ( ) [inherited]
Mat3 getOffsetRotation ( ) [inherited]
float getPointDepth ( Point3 const  p)
float getPointDepth ( float  x,
float  y,
float  z 
)
Point3 getPosition ( ) [inherited]
Quat getQuaternion ( ) [inherited]
Mat3 getRotation ( ) [inherited]
OdeSpace getSpace ( ) [inherited]
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]
setBody ( OdeBody  body) [inherited]
setCategoryBits ( BitMaskunsigned  int,
32 const  bits 
) [inherited]
setCollideBits ( BitMaskunsigned  int,
32 const  bits 
) [inherited]
setLengths ( float  lx,
float  ly,
float  lz 
)
setLengths ( VBase3 const  size)
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]
write ( ostream  out) [inherited]
write ( ostream  out,
unsigned int  indent 
) [inherited]
write ( ) [inherited]

Member Data Documentation

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