
| Public Attributes | |
| MeshXspLoader * | m_data | 
| WriteOnlyAccessor< decltype(m_data->d_positions)> | m_positions | 
| WriteOnlyAccessor< decltype(m_data->d_edges)> | m_edges | 
| Public Member Functions | |
| MeshXspLoadDataHook (MeshXspLoader *data) | |
| ~MeshXspLoadDataHook () override | |
| void | setNumMasses (size_t n) override | 
| Called by the XspLoader to specify before loading the number of masses.  More... | |
| void | setNumSprings (size_t n) override | 
| Called by the XspLoader to specify before loading the number of springs.  More... | |
| void | finalizeLoading (bool isOk) override | 
| Called by the XspLoader when the loading is done.  More... | |
| void | addMass (SReal px, SReal py, SReal pz, SReal, SReal, SReal, SReal, SReal, bool, bool) override | 
| Add a new mass.  More... | |
| void | addSpring (size_t index1, size_t index2, SReal, SReal, SReal) override | 
| Add a new spring.  More... | |
| void | addVectorSpring (size_t m1, size_t m2, SReal ks, SReal kd, SReal initpos, SReal, SReal, SReal) override | 
| Add an extended spring.  More... | |
|  Public Member Functions inherited from sofa::helper::io::XspLoaderDataHook | |
| virtual | ~XspLoaderDataHook () | 
| Destructor, does nothing special.  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... | |
| MeshXspLoader* sofa::component::io::mesh::MeshXspLoadDataHook::m_data | 
| WriteOnlyAccessor<decltype(m_data->d_edges)> sofa::component::io::mesh::MeshXspLoadDataHook::m_edges | 
| WriteOnlyAccessor<decltype(m_data->d_positions)> sofa::component::io::mesh::MeshXspLoadDataHook::m_positions | 
| sofa::component::io::mesh::MeshXspLoadDataHook::MeshXspLoadDataHook | ( | MeshXspLoader * | data | ) | 
| 
 | override | 
| 
 | inlineoverridevirtual | 
Add a new mass.
| px,py,pz | 3D position. | 
| vx,vz,vz | 3D velocity. | 
| mass. | |
| elastic | property. | 
| fixed | boolean indicates that the mass is "static". | 
| surface | indicates that the mass is on the surface. | 
Reimplemented from sofa::helper::io::XspLoaderDataHook.
| 
 | inlineoverridevirtual | 
Add a new spring.
Reimplemented from sofa::helper::io::XspLoaderDataHook.
| 
 | inlineoverridevirtual | 
Add an extended spring.
Reimplemented from sofa::helper::io::XspLoaderDataHook.
| 
 | inlineoverridevirtual | 
Called by the XspLoader when the loading is done.
This method is called by the XspLoader when the loading is done. Overriding this method allows client-code to implement post-loading checking.
| isOk | is set to false this means that the loading code detected a problem and that the loaded information are invalid and should be removed from the container. | 
Reimplemented from sofa::helper::io::XspLoaderDataHook.
| 
 | inlineoverridevirtual | 
Called by the XspLoader to specify before loading the number of masses.
| n | number of massses. | 
Reimplemented from sofa::helper::io::XspLoaderDataHook.
| 
 | inlineoverridevirtual | 
Called by the XspLoader to specify before loading the number of springs.
| n | number of springs. | 
Reimplemented from sofa::helper::io::XspLoaderDataHook.