|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSCylindricVortex Class Referencea cylindric vortex.
More...
#include <ps_force.h>
Inheritance diagram for NL3D::CPSCylindricVortex:
List of all members.
Public Methods |
virtual void | performDynamic (TAnimationTime ellapsedTime) |
| Compute the force on the targets. More...
|
virtual void | show (TAnimationTime ellapsedTime) |
| Show the force (edition mode). More...
|
| CPSCylindricVortex (float intensity=1.f) |
virtual bool | supportUniformScaling (void) const |
| Send back true if uniform scaling can be applied If it sends false, uniform scaling leads to undefine results. More...
|
virtual bool | supportNonUniformScaling (void) const |
| Send back true if non-uniform scaling can be applied If it sends false, non-uniform scaling leads to undefine results (default has no effect). More...
|
virtual void | setScale (uint32 k, float scale) |
virtual NLMISC::CVector | getScale (uint32 k) const |
virtual bool | onlyStoreNormal (void) const |
| some object may not store a whole matrix (e.g planes) this return true if only a normal is needed to set the orientation of the object. More...
|
virtual NLMISC::CVector | getNormal (uint32 index) |
| if the object only needs a normal, this return the normal. If not, is return (0, 0, 0). More...
|
virtual void | setNormal (uint32 index, NLMISC::CVector n) |
| if the object only stores a normal, this set the normal of the object. Otherwise it has no effect. More...
|
virtual void | setMatrix (uint32 index, const NLMISC::CMatrix &m) |
virtual NLMISC::CMatrix | getMatrix (uint32 index) const |
void | setRadialViscosity (float v) |
float | getRadialViscosity (void) const |
void | setTangentialViscosity (float v) |
float | getTangentialViscosity (void) const |
| NLMISC_DECLARE_CLASS (CPSCylindricVortex) |
virtual void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| Serial the force definition. MUST be called by deriver during their serialisation. More...
|
Protected Methods |
virtual CPSLocated * | getForceIntensityOwner (void) |
| inherited from CPSForceIntensity. 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 |
CPSAttrib< NLMISC::CVector > | _Normal |
TPSAttribFloat | _Radius |
float | _RadialViscosity |
float | _TangentialViscosity |
Detailed Description
a cylindric vortex.
It has a limited extend It has unlimited extension in the z direction The model is aimed at tunability rather than realism
Definition at line 729 of file ps_force.h.
Constructor & Destructor Documentation
NL3D::CPSCylindricVortex::CPSCylindricVortex |
( |
float |
intensity = 1.f |
) |
[inline] |
|
Member Function Documentation
void NL3D::CPSCylindricVortex::deleteElement |
( |
uint32 |
index |
) |
[protected, virtual] |
|
virtual CPSLocated* NL3D::CPSCylindricVortex::getForceIntensityOwner |
( |
void |
|
) |
[inline, protected, virtual] |
|
CMatrix NL3D::CPSCylindricVortex::getMatrix |
( |
uint32 |
index |
) |
const [virtual] |
|
|
if the object only needs a normal, this return the normal. If not, is return (0, 0, 0).
Reimplemented from NL3D::IPSMover.
Definition at line 751 of file ps_force.h.
References _Normal, and index. |
float NL3D::CPSCylindricVortex::getRadialViscosity |
( |
void |
|
) |
const [inline] |
|
float NL3D::CPSCylindricVortex::getTangentialViscosity |
( |
void |
|
) |
const [inline] |
|
void NL3D::CPSCylindricVortex::newElement |
( |
CPSLocated * |
emitterLocated, |
|
|
uint32 |
emitterIndex |
|
) |
[protected, virtual] |
|
NL3D::CPSCylindricVortex::NLMISC_DECLARE_CLASS |
( |
CPSCylindricVortex |
|
) |
|
|
virtual bool NL3D::CPSCylindricVortex::onlyStoreNormal |
( |
void |
|
) |
const [inline, virtual] |
|
|
some object may not store a whole matrix (e.g planes) this return true if only a normal is needed to set the orientation of the object.
Reimplemented from NL3D::IPSMover.
Definition at line 750 of file ps_force.h. |
void NL3D::CPSCylindricVortex::performDynamic |
( |
TAnimationTime |
ellapsedTime |
) |
[virtual] |
|
void NL3D::CPSCylindricVortex::resize |
( |
uint32 |
size |
) |
[protected, virtual] |
|
|
if the object only stores a normal, this set the normal of the object. Otherwise it has no effect.
Reimplemented from NL3D::IPSMover.
Definition at line 752 of file ps_force.h.
References _Normal, and index. |
void NL3D::CPSCylindricVortex::setRadialViscosity |
( |
float |
v |
) |
[inline] |
|
virtual void NL3D::CPSCylindricVortex::setScale |
( |
uint32 |
k, |
|
|
float |
scale |
|
) |
[inline, virtual] |
|
void NL3D::CPSCylindricVortex::setTangentialViscosity |
( |
float |
v |
) |
[inline] |
|
void NL3D::CPSCylindricVortex::show |
( |
TAnimationTime |
ellapsedTime |
) |
[virtual] |
|
|
Show the force (edition mode).
Implements NL3D::CPSForce.
Definition at line 907 of file ps_force.cpp.
References _Normal, NL3D::CPSLocatedBindable::_Owner, _Radius, NL3D::CPSForce::CPSLocated, NL3D::CPSLocatedBindable::CPSLocatedBindable, NL3D::CPSLocatedBindable::getDriver, NL3D::CPSLocatedBindable::getFontGenerator, NL3D::CPSLocatedBindable::getFontManager, index, nlassert, NL3D::CPSLocatedBindable::setupDriverModelMatrix, and NL3D::TAnimationTime. |
virtual bool NL3D::CPSCylindricVortex::supportNonUniformScaling |
( |
void |
|
) |
const [inline, virtual] |
|
|
Send back true if non-uniform scaling can be applied If it sends false, non-uniform scaling leads to undefine results (default has no effect).
Reimplemented from NL3D::IPSMover.
Definition at line 747 of file ps_force.h. |
virtual bool NL3D::CPSCylindricVortex::supportUniformScaling |
( |
void |
|
) |
const [inline, virtual] |
|
|
Send back true if uniform scaling can be applied If it sends false, uniform scaling leads to undefine results.
Reimplemented from NL3D::IPSMover.
Definition at line 746 of file ps_force.h. |
Member Data Documentation
float NL3D::CPSCylindricVortex::_RadialViscosity [protected]
|
|
float NL3D::CPSCylindricVortex::_TangentialViscosity [protected]
|
|
The documentation for this class was generated from the following files:
|
|