diff --git a/src/Cosserat/constraint/CosseratActuatorConstraint.cpp b/src/Cosserat/constraint/CosseratActuatorConstraint.cpp index b59a3f21..f35e53da 100644 --- a/src/Cosserat/constraint/CosseratActuatorConstraint.cpp +++ b/src/Cosserat/constraint/CosseratActuatorConstraint.cpp @@ -42,12 +42,6 @@ using namespace sofa::defaulttype; using namespace sofa::helper; using namespace sofa::core; -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template - void registerCosseratActuatorConstraint(sofa::core::ObjectFactory* factory) { factory->registerObjects(sofa::core::ObjectRegistrationData("Simulate cable actuation.") diff --git a/src/Cosserat/constraint/CosseratNeedleSlidingConstraint.cpp b/src/Cosserat/constraint/CosseratNeedleSlidingConstraint.cpp index e3c527be..5fc6afd9 100644 --- a/src/Cosserat/constraint/CosseratNeedleSlidingConstraint.cpp +++ b/src/Cosserat/constraint/CosseratNeedleSlidingConstraint.cpp @@ -38,12 +38,6 @@ using sofa::defaulttype::Rigid3Types; using namespace sofa::helper; using namespace sofa::core; -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template - void registerCosseratNeedleSlidingConstraint( sofa::core::ObjectFactory *factory) { factory->registerObjects(sofa::core::ObjectRegistrationData("Simulate sliding contraints for needle insertion.") @@ -51,4 +45,4 @@ void registerCosseratNeedleSlidingConstraint( } -} // namespace sofa \ No newline at end of file +} // namespace sofa diff --git a/src/Cosserat/constraint/QPSlidingConstraint.cpp b/src/Cosserat/constraint/QPSlidingConstraint.cpp index bf605fa1..512e0582 100644 --- a/src/Cosserat/constraint/QPSlidingConstraint.cpp +++ b/src/Cosserat/constraint/QPSlidingConstraint.cpp @@ -76,18 +76,6 @@ void SlidingForceConstraintResolution::resolution(int line, double **w, namespace Cosserat { -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template - -void registerQPSlidingConstraint(sofa::core::ObjectFactory* factory) -{ - factory->registerObjects(sofa::core::ObjectRegistrationData("Simulate cable actuation.") - .add< sofa::component::constraintset::QPSlidingConstraint >(true)); -} - //////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/Cosserat/forcefield/BeamHookeLawForceField.cpp b/src/Cosserat/forcefield/BeamHookeLawForceField.cpp index 9af9cd14..d0015135 100644 --- a/src/Cosserat/forcefield/BeamHookeLawForceField.cpp +++ b/src/Cosserat/forcefield/BeamHookeLawForceField.cpp @@ -174,14 +174,6 @@ template class BeamHookeLawForceField; namespace Cosserat { -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template - - - void registerBeamHookeLawForceField(sofa::core::ObjectFactory* factory) { diff --git a/src/Cosserat/forcefield/BeamHookeLawForceFieldRigid.cpp b/src/Cosserat/forcefield/BeamHookeLawForceFieldRigid.cpp index f8ce8333..26b49970 100644 --- a/src/Cosserat/forcefield/BeamHookeLawForceFieldRigid.cpp +++ b/src/Cosserat/forcefield/BeamHookeLawForceFieldRigid.cpp @@ -37,12 +37,6 @@ using namespace sofa::defaulttype; namespace Cosserat { -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template - void registerBeamHookeLawForceFieldRigid(sofa::core::ObjectFactory *factory) { factory->registerObjects( sofa::core::ObjectRegistrationData( diff --git a/src/Cosserat/forcefield/CosseratInternalActuation.cpp b/src/Cosserat/forcefield/CosseratInternalActuation.cpp index 7737604a..8a45eaac 100644 --- a/src/Cosserat/forcefield/CosseratInternalActuation.cpp +++ b/src/Cosserat/forcefield/CosseratInternalActuation.cpp @@ -33,11 +33,7 @@ namespace Cosserat { -//////////////////////////////////////////// FACTORY ////////////////////////////////////////////// -// Registering the component -// see: http://wiki.sofa-framework.org/wiki/ObjectFactory -// 1-RegisterObject("description") + .add<> : Register the component -// 2-.add<>(true) : Set default template + using namespace sofa::defaulttype; void registerCosseratInternalActuation(sofa::core::ObjectFactory *factory) {