this class defines the newElement, deleteElement, and resize method of a class that derives from CPSForceIntensity And that don't add per paerticle attribute More...
#include <ps_force.h>
Inherits NL3D::CPSForce, and NL3D::CPSForceIntensity.
Inherited by NL3D::CPSBrownianForce, NL3D::CPSCentralGravity, NL3D::CPSCylindricVortex, NL3D::CPSDirectionnalForce, NL3D::CPSGravity, and NL3D::CPSSpring.
Public Member Functions | |
| void | serial (NLMISC::IStream &f) throw (NLMISC::EStream) |
| Serial the force definition. MUST be called by deriver during their serialisation. | |
Protected Member Functions | |
| virtual CPSLocated * | getForceIntensityOwner (void) |
| deriver must return the located that own them here | |
| virtual void | newElement (const CPSEmitterInfo &info) |
| Generate a new element for this bindable. | |
| 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. | |
| virtual void | resize (uint32 size) |
| Resize the bindable attributes containers DERIVERS SHOULD CALL THEIR PARENT VERSION should not be called directly. | |
this class defines the newElement, deleteElement, and resize method of a class that derives from CPSForceIntensity And that don't add per paerticle attribute
Definition at line 216 of file ps_force.h.
| virtual void NL3D::CPSForceIntensityHelper::deleteElement | ( | uint32 | index | ) | [inline, protected, virtual] |
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.
Implements NL3D::CPSForce.
Reimplemented in NL3D::CPSBrownianForce, and NL3D::CPSCylindricVortex.
Definition at line 224 of file ps_force.h.
References NL3D::CPSForceIntensity::deleteForceIntensityElement().
| virtual CPSLocated* NL3D::CPSForceIntensityHelper::getForceIntensityOwner | ( | void | ) | [inline, protected, virtual] |
deriver must return the located that own them here
Implements NL3D::CPSForceIntensity.
Reimplemented in NL3D::CPSBrownianForce, and NL3D::CPSCylindricVortex.
Definition at line 222 of file ps_force.h.
References NL3D::CPSLocatedBindable::_Owner.
| virtual void NL3D::CPSForceIntensityHelper::newElement | ( | const CPSEmitterInfo & | info | ) | [inline, protected, virtual] |
Generate a new element for this bindable.
They are generated according to the propertie of the class
Implements NL3D::CPSForce.
Reimplemented in NL3D::CPSBrownianForce, and NL3D::CPSCylindricVortex.
Definition at line 223 of file ps_force.h.
References NL3D::CPSForceIntensity::newForceIntensityElement().
| virtual void NL3D::CPSForceIntensityHelper::resize | ( | uint32 | size | ) | [inline, protected, virtual] |
Resize the bindable attributes containers DERIVERS SHOULD CALL THEIR PARENT VERSION should not be called directly.
Call CPSLOcated::resize instead
Implements NL3D::CPSForce.
Reimplemented in NL3D::CPSBrownianForce, and NL3D::CPSCylindricVortex.
Definition at line 225 of file ps_force.h.
References NL3D::CPSForceIntensity::resizeForceIntensity().
| void NL3D::CPSForceIntensityHelper::serial | ( | NLMISC::IStream & | f | ) | throw (NLMISC::EStream) [virtual] |
Serial the force definition. MUST be called by deriver during their serialisation.
Reimplemented from NL3D::CPSForce.
Reimplemented in NL3D::CPSDirectionnalForce, NL3D::CPSGravity, NL3D::CPSCentralGravity, NL3D::CPSSpring, NL3D::CPSBrownianForce, NL3D::CPSCylindricVortex, and NL3D::CPSMagneticForce.
Definition at line 235 of file ps_force.cpp.
References NL_PS_FUNC, and NL3D::CPSForce::serial().
Referenced by NL3D::CPSBrownianForce::serial(), NL3D::CPSCylindricVortex::serial(), NL3D::CPSSpring::serial(), NL3D::CPSCentralGravity::serial(), NL3D::CPSGravity::serial(), and NL3D::CPSDirectionnalForce::serial().
1.6.1