Panda3D
|
A force that acts on a PhysicsObject by way of an Integrator. More...
#include "linearForce.h"
Public Member Functions | |
~LinearForce () | |
Destructor. | |
virtual TypeHandle | force_init_type () |
PN_stdfloat | get_amplitude () const |
bool | get_mass_dependent () const |
virtual TypeHandle | get_type () const |
LVector3 | get_vector (const PhysicsObject *po) |
LVector3 | get_vector_masks () |
virtual bool | is_linear () const |
virtual LinearForce * | make_copy ()=0 |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_amplitude (const PN_stdfloat a) |
void | set_mass_dependent (bool m) |
void | set_vector_masks (bool x, bool y, bool z) |
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. | |
Protected Member Functions | |
LinearForce (PN_stdfloat a, bool mass) | |
Default/component-based constructor. | |
LinearForce (const LinearForce ©) | |
copy constructor |
A force that acts on a PhysicsObject by way of an Integrator.
This is a pure virtual base class.
Definition at line 25 of file linearForce.h.
Destructor.
Definition at line 57 of file linearForce.cxx.
LinearForce::LinearForce | ( | PN_stdfloat | a, |
bool | mass | ||
) | [protected] |
Default/component-based constructor.
Definition at line 30 of file linearForce.cxx.
LinearForce::LinearForce | ( | const LinearForce & | copy | ) | [protected] |
copy constructor
Definition at line 42 of file linearForce.cxx.
static void LinearForce::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 BaseForce.
Reimplemented in LinearDistanceForce, LinearCylinderVortexForce, LinearNoiseForce, LinearControlForce, LinearVectorForce, LinearUserDefinedForce, LinearRandomForce, LinearFrictionForce, LinearSinkForce, LinearSourceForce, and LinearJitterForce.
Definition at line 65 of file linearForce.h.
References BaseForce::init_type().
Referenced by LinearFrictionForce::init_type(), LinearRandomForce::init_type(), LinearVectorForce::init_type(), LinearControlForce::init_type(), LinearCylinderVortexForce::init_type(), and LinearDistanceForce::init_type().
void LinearForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from BaseForce.
Reimplemented in LinearCylinderVortexForce, LinearControlForce, LinearDistanceForce, LinearUserDefinedForce, LinearVectorForce, LinearFrictionForce, LinearNoiseForce, LinearSinkForce, LinearSourceForce, LinearJitterForce, and LinearRandomForce.
Definition at line 97 of file linearForce.cxx.
void LinearForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in LinearCylinderVortexForce, LinearControlForce, LinearDistanceForce, LinearUserDefinedForce, LinearVectorForce, LinearFrictionForce, LinearNoiseForce, LinearSinkForce, LinearSourceForce, LinearJitterForce, and LinearRandomForce.
Definition at line 110 of file linearForce.cxx.