2020* Contact information: contact@sofa-framework.org *
2121******************************************************************************/
2222#include < Registration/config.h>
23+ #include < sofa/core/ObjectFactory.h>
24+ #include < sofa/helper/system/PluginManager.h>
2325
2426namespace sofa ::component
2527{
@@ -28,11 +30,15 @@ namespace sofa::component
2830namespace sofa ::component::engine
2931{
3032 extern void registerGroupwiseRegistrationEngine (sofa::core::ObjectFactory* factory);
33+ #ifdef REGISTRATION_USES_IMAGE
3134 extern void registerIntensityProfileCreator (sofa::core::ObjectFactory* factory);
35+ #endif
3236}
3337namespace sofa ::component::forcefield
3438{
39+ #ifdef REGISTRATION_USES_IMAGE
3540 extern void registerIntensityProfileRegistrationForceField (sofa::core::ObjectFactory* factory);
41+ #endif
3642 extern void registerClosestPointRegistrationForceField (sofa::core::ObjectFactory* factory);
3743}
3844namespace sofa ::component::interactionforcefield
@@ -94,8 +100,10 @@ namespace registration
94100 {
95101 sofa::component::registerInertiaAlign (factory);
96102 sofa::component::engine::registerGroupwiseRegistrationEngine ( factory);
103+ #ifdef REGISTRATION_USES_IMAGE
97104 sofa::component::engine::registerIntensityProfileCreator (factory);
98105 sofa::component::forcefield::registerIntensityProfileRegistrationForceField (factory);
106+ #endif
99107 sofa::component::forcefield::registerClosestPointRegistrationForceField (factory);
100108 sofa::component::interactionforcefield::registerRegistrationContactForceField (factory);
101109 sofa::component::misc::registerRegistrationExporter (factory);
0 commit comments