Panda3D
|
Repeating noise force vector. More...
#include "linearNoiseForce.h"
Public Member Functions | |
LinearNoiseForce (PN_stdfloat a=1.0f, bool m=false) | |
constructor | |
LinearNoiseForce (const LinearNoiseForce ©) | |
copy constructor | |
virtual | ~LinearNoiseForce () |
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_noise_tables () |
One-time config function, sets up the PRN lattice. | |
static void | init_type () |
This function is declared non-inline to work around a compiler bug in g++ 2.96. | |
Static Public Attributes | |
static ConfigVariableInt | _random_seed |
Repeating noise force vector.
Definition at line 26 of file linearNoiseForce.h.
LinearNoiseForce::LinearNoiseForce | ( | PN_stdfloat | a = 1.0f , |
bool | m = false |
||
) |
LinearNoiseForce::LinearNoiseForce | ( | const LinearNoiseForce & | copy | ) |
copy constructor
Definition at line 73 of file linearNoiseForce.cxx.
LinearNoiseForce::~LinearNoiseForce | ( | ) | [virtual] |
destructor
Definition at line 83 of file linearNoiseForce.cxx.
void LinearNoiseForce::init_noise_tables | ( | ) | [static] |
One-time config function, sets up the PRN lattice.
Definition at line 38 of file linearNoiseForce.cxx.
References LinearRandomForce::random_unit_vector().
Referenced by LinearNoiseForce().
static void LinearNoiseForce::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 LinearRandomForce.
Definition at line 62 of file linearNoiseForce.h.
References LinearRandomForce::init_type().
void LinearNoiseForce::output | ( | ostream & | out | ) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearRandomForce.
Definition at line 157 of file linearNoiseForce.cxx.
void LinearNoiseForce::write | ( | ostream & | out, |
unsigned int | indent = 0 |
||
) | const [virtual] |
Write a string representation of this instance to <out>.
Reimplemented from LinearRandomForce.
Definition at line 170 of file linearNoiseForce.cxx.