Panda3D
|
a programmable force that takes an evaluator fn. More...
#include "linearUserDefinedForce.h"
Public Member Functions | |
LinearUserDefinedForce (LVector3(*proc)(const PhysicsObject *)=NULL, PN_stdfloat a=1.0f, bool md=false) | |
constructor | |
LinearUserDefinedForce (const LinearUserDefinedForce ©) | |
copy constructor | |
virtual | ~LinearUserDefinedForce () |
destructor | |
virtual TypeHandle | force_init_type () |
virtual TypeHandle | get_type () const |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_proc (LVector3(*proc)(const PhysicsObject *)) |
virtual void | write (ostream &out, unsigned int indent=0) const |
Write a string representation of this instance to <out>. | |
Static Public Member Functions | |
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. |
a programmable force that takes an evaluator fn.
NOTE : AS OF Interrogate => Squeak, this class does NOT get FFI'd due to the function pointer bug, and is currently NOT getting interrogated. Change this in the makefile when the time is right or this class becomes needed...
Definition at line 30 of file linearUserDefinedForce.h.
LinearUserDefinedForce::LinearUserDefinedForce | ( | LVector3(*)(const PhysicsObject *) | proc = NULL , |
PN_stdfloat | a = 1.0f , |
||
bool | md = false |
||
) |
constructor
Definition at line 25 of file linearUserDefinedForce.cxx.
LinearUserDefinedForce::LinearUserDefinedForce | ( | const LinearUserDefinedForce & | copy | ) |
copy constructor
Definition at line 38 of file linearUserDefinedForce.cxx.
LinearUserDefinedForce::~LinearUserDefinedForce | ( | ) | [virtual] |
destructor
Definition at line 49 of file linearUserDefinedForce.cxx.
static void LinearUserDefinedForce::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 LinearForce.
Definition at line 53 of file linearUserDefinedForce.h.
void LinearUserDefinedForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 79 of file linearUserDefinedForce.cxx.
void LinearUserDefinedForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearForce.
Definition at line 92 of file linearUserDefinedForce.cxx.