|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSBrownianForce Class ReferenceA Brownian motion.
More...
#include <ps_force.h>
Inheritance diagram for NL3D::CPSBrownianForce:
List of all members.
Public Methods |
| CPSBrownianForce (float intensity=1.f) |
| ==========================================================. More...
|
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| =======================================================================. More...
|
virtual bool | isIntegrable (void) const |
| ==========================================================. More...
|
virtual void | integrate (float date, CPSLocated *src, uint32 startIndex, uint32 numObjects, NLMISC::CVector *destPos=NULL, NLMISC::CVector *destSpeed=NULL, bool accumulate=false, uint posStride=sizeof(NLMISC::CVector), uint speedStride=sizeof(NLMISC::CVector)) |
| ==========================================================. More...
|
virtual void | integrateSingle (float startDate, float deltaT, uint numStep, CPSLocated *src, uint32 indexInLocated, NLMISC::CVector *destPos, bool accumulate=false, uint posStride=sizeof(NLMISC::CVector)) |
| ==========================================================. More...
|
void | setIntensity (float value) |
| ==========================================================. More...
|
void | setIntensityScheme (CPSAttribMaker< float > *scheme) |
| ==========================================================. More...
|
virtual void | performDynamic (TAnimationTime ellapsedTime) |
| ==========================================================. More...
|
void | show (TAnimationTime ellapsedTime) |
| Show the force (edition mode). More...
|
void | setParametricFactor (float factor) |
| When used with parametric integration, this tells factor tells how fast the force acts on particle (how fast it go through the lookup table in fact). More...
|
float | getParametricFactor () const |
Static Public Methods |
void | initPrecalc () |
| ==========================================================. More...
|
Protected Methods |
virtual CPSLocated * | getForceIntensityOwner (void) |
| deriver must return the located that own them here. More...
|
virtual void | newElement (CPSLocated *emitterLocated, uint32 emitterIndex) |
| Generate a new element for this bindable. More...
|
virtual void | deleteElement (uint32 index) |
| Delete an element given its index Attributes of the located that hold this bindable are still accessible for of the index given index out of range -> nl_assert. More...
|
virtual void | resize (uint32 size) |
| Resize the bindable attributes containers DERIVERS SHOULD CALL THEIR PARENT VERSION should not be called directly. More...
|
Protected Attributes |
float | _ParametricFactor |
Static Protected Attributes |
NLMISC::CVector | PrecomputedPos [] |
| used to avoid to have to call rand for each particle the force applies on... More...
|
NLMISC::CVector | PrecomputedSpeed [] |
NLMISC::CVector | PrecomputedImpulsions [] |
| various impulsion for normal motion. More...
|
Detailed Description
A Brownian motion.
Definition at line 576 of file ps_force.h.
Constructor & Destructor Documentation
NL3D::CPSBrownianForce::CPSBrownianForce |
( |
float |
intensity = 1.f |
) |
|
|
Member Function Documentation
virtual void NL3D::CPSBrownianForce::deleteElement |
( |
uint32 |
index |
) |
[inline, protected, virtual] |
|
virtual CPSLocated* NL3D::CPSBrownianForce::getForceIntensityOwner |
( |
void |
|
) |
[inline, protected, virtual] |
|
float NL3D::CPSBrownianForce::getParametricFactor |
( |
|
) |
const [inline] |
|
void NL3D::CPSBrownianForce::initPrecalc |
( |
|
) |
[static] |
|
|
==========================================================.
Reimplemented from NL3D::CPSForce.
Definition at line 1057 of file ps_force.cpp.
References NL3D::CPSForceIntensity::_K, _ParametricFactor, NL3D::BFNumPredefinedPos, index, PrecomputedPos, PrecomputedSpeed, NLMISC::CVector::set, src, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
|
==========================================================.
Reimplemented from NL3D::CPSForce.
Definition at line 1171 of file ps_force.cpp.
References NL3D::CPSForceIntensity::_K, _ParametricFactor, NL3D::BFNumPredefinedPos, NL3D::BFPredefinedNumInterp, NL3D::FillBufUsingSubdiv, index, nlassert, PrecomputedPos, NL3D::ScaleFloatGE, src, stride, NLMISC::CVector::x, NLMISC::CVector::y, and NLMISC::CVector::z. |
bool NL3D::CPSBrownianForce::isIntegrable |
( |
void |
|
) |
const [virtual] |
|
virtual void NL3D::CPSBrownianForce::newElement |
( |
CPSLocated * |
emitterLocated, |
|
|
uint32 |
emitterIndex |
|
) |
[inline, protected, virtual] |
|
void NL3D::CPSBrownianForce::performDynamic |
( |
TAnimationTime |
ellapsedTime |
) |
[virtual] |
|
virtual void NL3D::CPSBrownianForce::resize |
( |
uint32 |
size |
) |
[inline, protected, virtual] |
|
void NL3D::CPSBrownianForce::setIntensity |
( |
float |
value |
) |
[virtual] |
|
void NL3D::CPSBrownianForce::setIntensityScheme |
( |
CPSAttribMaker< float > * |
scheme |
) |
[virtual] |
|
void NL3D::CPSBrownianForce::setParametricFactor |
( |
float |
factor |
) |
[inline] |
|
|
When used with parametric integration, this tells factor tells how fast the force acts on particle (how fast it go through the lookup table in fact).
Definition at line 615 of file ps_force.h.
References _ParametricFactor. |
void NL3D::CPSBrownianForce::show |
( |
TAnimationTime |
ellapsedTime |
) |
[inline, virtual] |
|
Member Data Documentation
float NL3D::CPSBrownianForce::_ParametricFactor [protected]
|
|
NLMISC::CVector NL3D::CPSBrownianForce::PrecomputedImpulsions [static, protected]
|
|
NLMISC::CVector NL3D::CPSBrownianForce::PrecomputedSpeed [static, protected]
|
|
The documentation for this class was generated from the following files:
|
|