Panda3D
|
Repellant force. More...
#include "linearSourceForce.h"
Public Member Functions | |
LinearSourceForce (const LPoint3 &p, FalloffType f, PN_stdfloat r, PN_stdfloat a=1.0f, bool mass=true) | |
Simple constructor. | |
LinearSourceForce () | |
Simple constructor. | |
LinearSourceForce (const LinearSourceForce ©) | |
copy constructor | |
virtual | ~LinearSourceForce () |
Simple 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>. | |
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. |
Repellant force.
Definition at line 24 of file linearSourceForce.h.
LinearSourceForce::LinearSourceForce | ( | const LPoint3 & | p, |
FalloffType | f, | ||
PN_stdfloat | r, | ||
PN_stdfloat | a = 1.0f , |
||
bool | mass = true |
||
) |
Simple constructor.
Definition at line 25 of file linearSourceForce.cxx.
Simple constructor.
Definition at line 36 of file linearSourceForce.cxx.
LinearSourceForce::LinearSourceForce | ( | const LinearSourceForce & | copy | ) |
copy constructor
Definition at line 47 of file linearSourceForce.cxx.
LinearSourceForce::~LinearSourceForce | ( | ) | [virtual] |
Simple destructor.
Definition at line 57 of file linearSourceForce.cxx.
static void LinearSourceForce::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 LinearDistanceForce.
Definition at line 43 of file linearSourceForce.h.
References LinearDistanceForce::init_type().
void LinearSourceForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearDistanceForce.
Definition at line 87 of file linearSourceForce.cxx.
void LinearSourceForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearDistanceForce.
Definition at line 100 of file linearSourceForce.cxx.