Panda3D
Public Member Functions | Static Public Member Functions | Protected Member Functions
LinearForce Class Reference

A force that acts on a PhysicsObject by way of an Integrator. More...

#include "linearForce.h"

Inheritance diagram for LinearForce:
BaseForce TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase LinearControlForce LinearCylinderVortexForce LinearDistanceForce LinearFrictionForce LinearRandomForce LinearUserDefinedForce LinearVectorForce LinearSinkForce LinearSourceForce LinearJitterForce LinearNoiseForce

List of all members.

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 LinearForcemake_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)
 copy constructor

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

static void LinearForce::init_type ( ) [inline, static]
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]

The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations