Panda3D
Public Member Functions | Static Public Member Functions
LinearCylinderVortexForce Class Reference

Defines a cylinder inside of which all forces are tangential to the theta of the particle wrt the z-axis in local coord. More...

#include "linearCylinderVortexForce.h"

Inheritance diagram for LinearCylinderVortexForce:
LinearForce BaseForce TypedReferenceCount TypedObject ReferenceCount MemoryBase MemoryBase

List of all members.

Public Member Functions

 LinearCylinderVortexForce (PN_stdfloat radius=1.0f, PN_stdfloat length=0.0f, PN_stdfloat coef=1.0f, PN_stdfloat a=1.0f, bool md=false)
 Simple Constructor.
 LinearCylinderVortexForce (const LinearCylinderVortexForce &copy)
 copy Constructor
virtual ~LinearCylinderVortexForce ()
 Destructor.
virtual TypeHandle force_init_type ()
PN_stdfloat get_coef () const
PN_stdfloat get_length () const
PN_stdfloat get_radius () const
virtual TypeHandle get_type () const
virtual void output (ostream &out) const
 Write a string representation of this instance to <out>.
void set_coef (PN_stdfloat coef)
void set_length (PN_stdfloat length)
void set_radius (PN_stdfloat radius)
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

Defines a cylinder inside of which all forces are tangential to the theta of the particle wrt the z-axis in local coord.

space. This happens by assigning the force a node by which the cylinder is transformed. Be warned- this will suck anything that it can reach directly into orbit and will NOT let go.

Definition at line 30 of file linearCylinderVortexForce.h.


Constructor & Destructor Documentation

LinearCylinderVortexForce::LinearCylinderVortexForce ( PN_stdfloat  radius = 1.0f,
PN_stdfloat  length = 0.0f,
PN_stdfloat  coef = 1.0f,
PN_stdfloat  a = 1.0f,
bool  md = false 
)

Simple Constructor.

Definition at line 28 of file linearCylinderVortexForce.cxx.

copy Constructor

Definition at line 40 of file linearCylinderVortexForce.cxx.

Destructor.

Definition at line 53 of file linearCylinderVortexForce.cxx.


Member Function Documentation

static void LinearCylinderVortexForce::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 LinearForce.

Definition at line 64 of file linearCylinderVortexForce.h.

References LinearForce::init_type().

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

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

Reimplemented from LinearForce.

Definition at line 137 of file linearCylinderVortexForce.cxx.

void LinearCylinderVortexForce::write ( ostream &  out,
unsigned int  indent = 0 
) const [virtual]

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

Reimplemented from LinearForce.

Definition at line 150 of file linearCylinderVortexForce.cxx.


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