Panda3D
Public Member Functions | Static Public Member Functions

LinearSinkForce Class Reference

Attractor force. More...

#include "linearSinkForce.h"

Inheritance diagram for LinearSinkForce:
LinearDistanceForce LinearForce BaseForce TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 LinearSinkForce (const LPoint3 &p, FalloffType f, PN_stdfloat r, PN_stdfloat a=1.0f, bool m=true)
 Simple constructor.
 LinearSinkForce ()
 Simple constructor.
 LinearSinkForce (const LinearSinkForce &copy)
 copy constructor
virtual ~LinearSinkForce ()
 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.

Detailed Description

Attractor force.

Think black hole.

Definition at line 24 of file linearSinkForce.h.


Constructor & Destructor Documentation

LinearSinkForce::LinearSinkForce ( const LPoint3 p,
FalloffType  f,
PN_stdfloat  r,
PN_stdfloat  a = 1.0f,
bool  m = true 
)

Simple constructor.

Definition at line 25 of file linearSinkForce.cxx.

LinearSinkForce::LinearSinkForce ( )

Simple constructor.

Definition at line 36 of file linearSinkForce.cxx.

LinearSinkForce::LinearSinkForce ( const LinearSinkForce copy)

copy constructor

Definition at line 47 of file linearSinkForce.cxx.

LinearSinkForce::~LinearSinkForce ( ) [virtual]

Simple destructor.

Definition at line 57 of file linearSinkForce.cxx.


Member Function Documentation

static void LinearSinkForce::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 linearSinkForce.h.

References LinearDistanceForce::init_type().

void LinearSinkForce::output ( ostream &  out) const [virtual]

Write a string representation of this instance to <out>.

Reimplemented from LinearDistanceForce.

Definition at line 87 of file linearSinkForce.cxx.

void LinearSinkForce::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 linearSinkForce.cxx.


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