# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSSpring Class Reference

a spring class. More...

#include <ps_force.h>

Inheritance diagram for NL3D::CPSSpring:

NL3D::CPSForceIntensityHelper NL3D::CPSForce NL3D::CPSForceIntensity NL3D::CPSTargetLocatedBindable NL3D::CPSLocatedBindable NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Methods

 CPSSpring (float k=1.0f)
 ctor : k is the coefficient of the spring. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 serialization. More...

virtual void performDynamic (TAnimationTime ellapsedTime)
 Compute the force on the targets. More...

virtual void show (TAnimationTime ellapsedTime)
 Show the force (edition mode). More...

 NLMISC_DECLARE_CLASS (CPSSpring)

Detailed Description

a spring class.

Definition at line 466 of file ps_force.h.


Constructor & Destructor Documentation

NL3D::CPSSpring::CPSSpring float    k = 1.0f [inline]
 

ctor : k is the coefficient of the spring.

Definition at line 471 of file ps_force.h.

References NL3D::CPSLocatedBindable::_Name, and NL3D::CPSForceIntensity::setIntensity.


Member Function Documentation

NL3D::CPSSpring::NLMISC_DECLARE_CLASS CPSSpring   
 

void NL3D::CPSSpring::performDynamic TAnimationTime    ellapsedTime [virtual]
 

Compute the force on the targets.

Implements NL3D::CPSForce.

Definition at line 762 of file ps_force.cpp.

References NL3D::CPSForceIntensity::_IntensityScheme, NL3D::CPSForceIntensity::_K, NL3D::CPSLocatedBindable::_Owner, NL3D::CPSTargetLocatedBindable::_Targets, and NL3D::TAnimationTime.

void NL3D::CPSSpring::serial NLMISC::IStream   f throw (NLMISC::EStream) [virtual]
 

serialization.

Reimplemented from NL3D::CPSForceIntensityHelper.

Definition at line 794 of file ps_force.cpp.

void NL3D::CPSSpring::show TAnimationTime    ellapsedTime [virtual]
 

Show the force (edition mode).

Implements NL3D::CPSForce.

Definition at line 802 of file ps_force.cpp.

References NL3D::CPSLocatedBindable::displayIcon2d, and NL3D::TAnimationTime.


The documentation for this class was generated from the following files: