SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::mass::DiagonalMass< DataTypes, TMassType >::Loader Class Reference
Inheritance diagram for sofa::component::mass::DiagonalMass< DataTypes, TMassType >::Loader:

Public Attributes

DiagonalMass< DataTypes, MassType > * dest
 

Public Member Functions

 Loader (DiagonalMass< DataTypes, MassType > *dest)
 
void addMass (SReal, SReal, SReal, SReal, SReal, SReal, SReal mass, SReal, bool, bool) override
 Add a new mass. More...
 
- Public Member Functions inherited from sofa::helper::io::XspLoaderDataHook
virtual ~XspLoaderDataHook ()
 Destructor, does nothing special. More...
 
virtual void finalizeLoading (bool isOk)
 Called by the XspLoader when the loading is done. More...
 
virtual void setNumMasses (size_t)
 Called by the XspLoader to specify before loading the number of masses. More...
 
virtual void setNumSprings (size_t)
 Called by the XspLoader to specify before loading the number of springs. More...
 
virtual void setGravity (SReal, SReal, SReal)
 Called by the XspLoader to specify the directional gravity. More...
 
virtual void setViscosity (SReal)
 Called by the XspLoader to specify the viscosity. More...
 
virtual void addSpring (size_t, size_t, SReal, SReal, SReal)
 Add a new spring. More...
 
virtual void addVectorSpring (size_t m1, size_t m2, SReal ks, SReal kd, SReal initpos, SReal, SReal, SReal)
 Add an extended spring. More...
 

Attribute details

template<class DataTypes, class TMassType>
DiagonalMass<DataTypes, MassType>* sofa::component::mass::DiagonalMass< DataTypes, TMassType >::Loader::dest

Constructor details

template<class DataTypes, class TMassType>
sofa::component::mass::DiagonalMass< DataTypes, TMassType >::Loader::Loader ( DiagonalMass< DataTypes, MassType > *  dest)
inline

Function details

template<class DataTypes, class TMassType>
void sofa::component::mass::DiagonalMass< DataTypes, TMassType >::Loader::addMass ( SReal  ,
SReal  ,
SReal  ,
SReal  ,
SReal  ,
SReal  ,
SReal  ,
SReal  ,
bool  ,
bool   
)
inlineoverridevirtual

Add a new mass.

Parameters
px,py,pz3D position.
vx,vz,vz3D velocity.
mass.
elasticproperty.
fixedboolean indicates that the mass is "static".
surfaceindicates that the mass is on the surface.

Reimplemented from sofa::helper::io::XspLoaderDataHook.