Panda3D
Public Member Functions | Static Public Member Functions
PhysxForceFieldShape Class Reference

Abstract base class for force field shapes. More...

#include "physxForceFieldShape.h"

Inheritance diagram for PhysxForceFieldShape:
PhysxObject PhysxEnums TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase PhysxBoxForceFieldShape PhysxCapsuleForceFieldShape PhysxConvexForceFieldShape PhysxSphereForceFieldShape

List of all members.

Public Member Functions

virtual TypeHandle force_init_type ()
PhysxForceFieldget_force_field () const
 Returns the owning force field if this is a shape of an include group, else NULL will be returned.
LMatrix4f get_mat () const
 Returns the force field shape's transform.
const char * get_name () const
 Returns the name string.
LPoint3f get_pos () const
 Returns the force field shape's translation.
PhysxForceFieldShapeGroupget_shape_group () const
 Returns the owning force field shape group.
virtual TypeHandle get_type () const
virtual void link (NxForceFieldShape *shapePtr)=0
void ls () const
void ls (ostream &out, int indent_level=0) const
virtual NxForceFieldShape * ptr () const =0
void release ()
void set_mat (const LMatrix4f &mat)
 Sets the force field shape's transform.
void set_name (const char *name)
 Sets a name string for this object.
void set_pos (const LPoint3f &pos)
 Sets the force field shape's translation.
virtual void unlink ()=0

Static Public Member Functions

static PhysxForceFieldShapefactory (NxShapeType shapeType)
static TypeHandle get_class_type ()
static void init_type ()
 This function is declared non-inline to work around a compiler bug in g++ 2.96.

Detailed Description

Abstract base class for force field shapes.

Definition at line 33 of file physxForceFieldShape.h.


Member Function Documentation

Returns the owning force field if this is a shape of an include group, else NULL will be returned.

Definition at line 74 of file physxForceFieldShape.cxx.

Returns the force field shape's transform.

Definition at line 143 of file physxForceFieldShape.cxx.

References PhysxManager::nxMat34_to_mat4(), and LMatrix4f::zeros_mat().

const char * PhysxForceFieldShape::get_name ( ) const

Returns the name string.

Definition at line 118 of file physxForceFieldShape.cxx.

Returns the force field shape's translation.

Definition at line 171 of file physxForceFieldShape.cxx.

References PhysxManager::nxVec3_to_point3(), and LPoint3f::zero().

Returns the owning force field shape group.

Definition at line 91 of file physxForceFieldShape.cxx.

static void PhysxForceFieldShape::init_type ( ) [inline, static]

This function is declared non-inline to work around a compiler bug in g++ 2.96.

Making it inline seems to cause problems in the optimizer.

Reimplemented from PhysxObject.

Reimplemented in PhysxCapsuleForceFieldShape, PhysxSphereForceFieldShape, PhysxBoxForceFieldShape, and PhysxConvexForceFieldShape.

Definition at line 71 of file physxForceFieldShape.h.

References PhysxObject::init_type().

Referenced by PhysxConvexForceFieldShape::init_type(), PhysxBoxForceFieldShape::init_type(), PhysxSphereForceFieldShape::init_type(), and PhysxCapsuleForceFieldShape::init_type().

Sets the force field shape's transform.

Definition at line 130 of file physxForceFieldShape.cxx.

References PhysxManager::mat4_to_nxMat34().

void PhysxForceFieldShape::set_name ( const char *  name)

Sets a name string for this object.

The name can be retrieved again with get_name().

Definition at line 104 of file physxForceFieldShape.cxx.

void PhysxForceFieldShape::set_pos ( const LPoint3f pos)

Sets the force field shape's translation.

Definition at line 156 of file physxForceFieldShape.cxx.

References PhysxManager::point3_to_nxVec3().


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations