Home | nevrax.com |
|
NL3D::CIsotropicForceT Class Template Referencea helper class to create isotropic force : they are independant of the basis, and have no position (fluid friction for example) To use this class you should provide to it a functor class that define the () operator with 3 parameters param1 = a const reference to the position of the particle param2 = a reference to the position, that must be updated param3 = a float giving the inverse of the mass param4 = the ellapsed time, in second (has the TAnimationTime type). More...
Inheritance diagram for NL3D::CIsotropicForceT:
Detailed Descriptiontemplate<class T>
a helper class to create isotropic force : they are independant of the basis, and have no position (fluid friction for example) To use this class you should provide to it a functor class that define the () operator with 3 parameters param1 = a const reference to the position of the particle param2 = a reference to the position, that must be updated param3 = a float giving the inverse of the mass param4 = the ellapsed time, in second (has the TAnimationTime type).
|
|
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::CPSFluidFriction. Definition at line 314 of file ps_force.h. |
|
Generate a new element for this bindable. They are generated according to the propertie of the class Implements NL3D::CPSForce. Reimplemented in NL3D::CPSFluidFriction. Definition at line 313 of file ps_force.h. |
|
Compute the force on the targets.
Implements NL3D::CPSForce. Definition at line 325 of file ps_force.h. References _F, NL3D::CPSLocatedBindable::_Owner, NL3D::CPSTargetLocatedBindable::_Targets, setupFunctor, and NL3D::TAnimationTime. |
|
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::CPSFluidFriction. Definition at line 315 of file ps_force.h. |
|
serialization.
Reimplemented from NL3D::CPSForce. Reimplemented in NL3D::CPSFluidFriction. Definition at line 287 of file ps_force.h. |
|
setup the functor object. The default does nothing.
Reimplemented in NL3D::CPSFluidFriction. Definition at line 304 of file ps_force.h. Referenced by performDynamic. |
|
Show the force (edition mode). The default does nothing TODO later Implements NL3D::CPSForce. Definition at line 299 of file ps_force.h. |
|
the functor object.
Definition at line 309 of file ps_force.h. Referenced by performDynamic, and NL3D::CIsotropicForceT< CPSFluidFrictionFunctor >::serial. |