#include <SphereLoader.h>
Inherit this class to load data from sphere description.  
 More...
Inherit this class to load data from sphere description. 
To connect client-code data structure with the XspLoader you need to Inherit from this class and override the virtual methods to you fill your structures from the SphereLoader events. 
- See also
- SphereLoader for an example of use. 
◆ ~SphereLoaderDataHook()
  
  | 
        
          | virtual sofa::helper::io::SphereLoaderDataHook::~SphereLoaderDataHook | ( |  | ) |  |  | inlinevirtual | 
 
 
◆ addSphere()
  
  | 
        
          | virtual void sofa::helper::io::SphereLoaderDataHook::addSphere | ( | const | SReal, |  
          |  |  | const | SReal, |  
          |  |  | const | SReal, |  
          |  |  | const | SReal |  
          |  | ) |  |  |  | inlinevirtual | 
 
 
◆ finalizeLoading()
  
  | 
        
          | virtual void sofa::helper::io::SphereLoaderDataHook::finalizeLoading | ( | const bool | isOk | ) |  |  | inlinevirtual | 
 
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. 
- Parameters
- 
  
    | 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. |  
 
 
 
◆ setNumSpheres()
  
  | 
        
          | virtual void sofa::helper::io::SphereLoaderDataHook::setNumSpheres | ( | const int | n | ) |  |  | inlinevirtual | 
 
Called by the XspLoader to specify before loading the number of spheres. 
- Parameters
-