Panda3D
|
pure virtual base class for all forces that could POSSIBLY exist. More...
#include "baseForce.h"
Public Member Functions | |
virtual | ~BaseForce () |
destructor | |
virtual TypeHandle | force_init_type () |
bool | get_active () const |
ForceNode * | get_force_node () const |
NodePath | get_force_node_path () const |
virtual TypeHandle | get_type () const |
virtual bool | is_linear () const =0 |
virtual void | output (ostream &out) const |
Write a string representation of this instance to <out>. | |
void | set_active (bool active) |
virtual void | write (ostream &out, int indent_level=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 | |
BaseForce (bool active=true) | |
constructor | |
BaseForce (const BaseForce ©) | |
copy constructor | |
Friends | |
class | ForceNode |
pure virtual base class for all forces that could POSSIBLY exist.
Definition at line 32 of file baseForce.h.
BaseForce::~BaseForce | ( | ) | [virtual] |
destructor
Definition at line 51 of file baseForce.cxx.
BaseForce::BaseForce | ( | bool | active = true | ) | [protected] |
constructor
Definition at line 26 of file baseForce.cxx.
BaseForce::BaseForce | ( | const BaseForce & | copy | ) | [protected] |
copy constructor
Definition at line 38 of file baseForce.cxx.
static void BaseForce::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 TypedReferenceCount.
Reimplemented in LinearDistanceForce, LinearForce, LinearCylinderVortexForce, LinearNoiseForce, LinearControlForce, LinearVectorForce, LinearUserDefinedForce, AngularVectorForce, LinearRandomForce, AngularForce, LinearFrictionForce, LinearSinkForce, LinearSourceForce, and LinearJitterForce.
Definition at line 59 of file baseForce.h.
References TypedReferenceCount::init_type().
Referenced by AngularForce::init_type(), and LinearForce::init_type().
void BaseForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented in LinearCylinderVortexForce, LinearControlForce, LinearDistanceForce, LinearForce, LinearUserDefinedForce, LinearVectorForce, AngularVectorForce, LinearFrictionForce, AngularForce, LinearNoiseForce, LinearSinkForce, LinearSourceForce, LinearJitterForce, and LinearRandomForce.
Definition at line 61 of file baseForce.cxx.
void BaseForce::write | ( | ostream & | out, |
int | indent_level = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Definition at line 72 of file baseForce.cxx.