Panda3D
Public Types | Public Member Functions | Static Public Member Functions | List of all members
OdeGeom Class Reference
Inheritance diagram for OdeGeom:
TypedObject MemoryBase OdeBoxGeom OdeCappedCylinderGeom OdeCylinderGeom OdePlaneGeom OdeRayGeom OdeSphereGeom OdeTriMeshGeom

Public Types

enum  GeomClass {
  GC_sphere = 0, GC_box = 1, GC_capped_cylinder = 2, GC_cylinder = 3,
  GC_plane = 4, GC_ray = 5, GC_tri_mesh = 8, GC_simple_space = 10,
  GC_hash_space = 11, GC_quad_tree_space = 12
}
 

Public Member Functions

 clearOffset ()
 
int compareTo (const OdeGeom other)
 
object convert ()
 
OdeBoxGeom convertToBox ()
 
OdeCappedCylinderGeom convertToCappedCylinder ()
 
OdeCylinderGeom convertToCylinder ()
 OdeConvexGeom convert_to_convex() const;. More...
 
OdeHashSpace convertToHashSpace ()
 
OdePlaneGeom convertToPlane ()
 OdeHeightfieldGeom convert_to_heightfield() const;. More...
 
OdeQuadTreeSpace convertToQuadTreeSpace ()
 
OdeRayGeom convertToRay ()
 
OdeSimpleSpace convertToSimpleSpace ()
 
OdeSphereGeom convertToSphere ()
 
OdeTriMeshGeom convertToTriMesh ()
 
 destroy ()
 
 disable ()
 
 enable ()
 
 getAABB (LVecBase3f min, LVecBase3f max)
 
object getAABounds ()
 
OdeBody getBody ()
 
BitMask32 getCategoryBits ()
 
int getClass ()
 
BitMask32 getCollideBits ()
 
object getConvertedSpace ()
 
DGeomID getId ()
 Returns the underlying dGeomID. More...
 
LPoint3f getOffsetPosition ()
 
LQuaternionf getOffsetQuaternion ()
 
LMatrix3f getOffsetRotation ()
 
LPoint3f getPosition ()
 
LQuaternionf getQuaternion ()
 
LMatrix3f getRotation ()
 
OdeSpace getSpace ()
 
bool hasBody ()
 
bool isEmpty ()
 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. More...
 
int isEnabled ()
 
int isOffset ()
 
int isSpace ()
 
 setBody (OdeBody body)
 INLINE void set_data(void* data);. More...
 
 setCategoryBits (const BitMask32 bits)
 
 setCollideBits (const BitMask32 bits)
 
 setOffsetPosition (const LVecBase3f pos)
 
 setOffsetPosition (DReal x, DReal y, DReal z)
 
 setOffsetQuaternion (const LQuaternionf q)
 
 setOffsetRotation (const LMatrix3f r)
 
 setOffsetWorldPosition (const LVecBase3f pos)
 
 setOffsetWorldPosition (DReal x, DReal y, DReal z)
 
 setOffsetWorldQuaternion (const LQuaternionf q)
 
 setOffsetWorldRotation (const LMatrix3f r)
 
 setPosition (const LVecBase3f pos)
 
 setPosition (DReal x, DReal y, DReal z)
 
 setQuaternion (const LQuaternionf q)
 
 setRotation (const LMatrix3f r)
 
 write (Ostream out, unsigned int indent)
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 Derived classes should override this function to return get_class_type(). More...
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Member Enumeration Documentation

◆ GeomClass

enum GeomClass
Enumerator
GC_sphere 
GC_box 
GC_capped_cylinder 
GC_cylinder 
GC_plane 
GC_ray 
GC_tri_mesh 

GC_convex, GC_geom_transform,.

GC_simple_space 
GC_hash_space 
GC_quad_tree_space 

Member Function Documentation

◆ clearOffset()

clearOffset ( )

◆ compareTo()

int compareTo ( const OdeGeom  other)

◆ convert()

object convert ( )

◆ convertToBox()

OdeBoxGeom convertToBox ( )

◆ convertToCappedCylinder()

OdeCappedCylinderGeom convertToCappedCylinder ( )

◆ convertToCylinder()

OdeCylinderGeom convertToCylinder ( )

OdeConvexGeom convert_to_convex() const;.

◆ convertToHashSpace()

OdeHashSpace convertToHashSpace ( )

◆ convertToPlane()

OdePlaneGeom convertToPlane ( )

OdeHeightfieldGeom convert_to_heightfield() const;.

◆ convertToQuadTreeSpace()

OdeQuadTreeSpace convertToQuadTreeSpace ( )

◆ convertToRay()

OdeRayGeom convertToRay ( )

◆ convertToSimpleSpace()

OdeSimpleSpace convertToSimpleSpace ( )

◆ convertToSphere()

OdeSphereGeom convertToSphere ( )

◆ convertToTriMesh()

OdeTriMeshGeom convertToTriMesh ( )

◆ destroy()

destroy ( )

◆ disable()

disable ( )

◆ enable()

enable ( )

◆ getAABB()

getAABB ( LVecBase3f  min,
LVecBase3f  max 
)

◆ getAABounds()

object getAABounds ( )

◆ getBody()

OdeBody getBody ( )

◆ getCategoryBits()

BitMask32 getCategoryBits ( )

◆ getClass()

int getClass ( )

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getCollideBits()

BitMask32 getCollideBits ( )

◆ getConvertedSpace()

object getConvertedSpace ( )

◆ getId()

DGeomID getId ( )

Returns the underlying dGeomID.

◆ getOffsetPosition()

LPoint3f getOffsetPosition ( )

◆ getOffsetQuaternion()

LQuaternionf getOffsetQuaternion ( )

◆ getOffsetRotation()

LMatrix3f getOffsetRotation ( )

◆ getPosition()

LPoint3f getPosition ( )

◆ getQuaternion()

LQuaternionf getQuaternion ( )

◆ getRotation()

LMatrix3f getRotation ( )

◆ getSpace()

OdeSpace getSpace ( )

◆ hasBody()

bool hasBody ( )

◆ isEmpty()

bool isEmpty ( )

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.

◆ isEnabled()

int isEnabled ( )

◆ isOffset()

int isOffset ( )

◆ isSpace()

int isSpace ( )

◆ setBody()

setBody ( OdeBody  body)

INLINE void set_data(void* data);.

◆ setCategoryBits()

setCategoryBits ( const BitMask32  bits)

◆ setCollideBits()

setCollideBits ( const BitMask32  bits)

◆ setOffsetPosition() [1/2]

setOffsetPosition ( const LVecBase3f  pos)

◆ setOffsetPosition() [2/2]

setOffsetPosition ( DReal  x,
DReal  y,
DReal  z 
)

◆ setOffsetQuaternion()

setOffsetQuaternion ( const LQuaternionf  q)

◆ setOffsetRotation()

setOffsetRotation ( const LMatrix3f  r)

◆ setOffsetWorldPosition() [1/2]

setOffsetWorldPosition ( const LVecBase3f  pos)

◆ setOffsetWorldPosition() [2/2]

setOffsetWorldPosition ( DReal  x,
DReal  y,
DReal  z 
)

◆ setOffsetWorldQuaternion()

setOffsetWorldQuaternion ( const LQuaternionf  q)

◆ setOffsetWorldRotation()

setOffsetWorldRotation ( const LMatrix3f  r)

◆ setPosition() [1/2]

setPosition ( const LVecBase3f  pos)

◆ setPosition() [2/2]

setPosition ( DReal  x,
DReal  y,
DReal  z 
)

◆ setQuaternion()

setQuaternion ( const LQuaternionf  q)

◆ setRotation()

setRotation ( const LMatrix3f  r)

◆ write()

write ( Ostream  out,
unsigned int  indent 
)