SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::component::solidmechanics::spring::SpringForceField< DataTypes >::Loader Class Reference
Inheritance diagram for sofa::component::solidmechanics::spring::SpringForceField< DataTypes >::Loader:

Public Attributes

SpringForceField< DataTypes > * dest
 

Public Member Functions

 Loader (SpringForceField< DataTypes > *dest)
 
void addSpring (size_t m1, size_t m2, SReal ks, SReal kd, SReal initpos) override
 Add a new spring. 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 addMass (SReal, SReal, SReal, SReal, SReal, SReal, SReal, SReal, bool, bool)
 Add a new mass. 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

◆ dest

Constructor details

◆ Loader()

template<class DataTypes >
sofa::component::solidmechanics::spring::SpringForceField< DataTypes >::Loader::Loader ( SpringForceField< DataTypes > *  dest)
inline

Function details

◆ addSpring()

template<class DataTypes >
void sofa::component::solidmechanics::spring::SpringForceField< DataTypes >::Loader::addSpring ( size_t  ,
size_t  ,
SReal  ,
SReal  ,
SReal   
)
inlineoverridevirtual

Add a new spring.

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