Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Registration/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@
#cmakedefine01 REGISTRATION_HAVE_SOFADISTANCEGRID
#cmakedefine01 REGISTRATION_HAVE_SOFA_GL

#cmakedefine01 REGISTRATION_HAVE_IMAGE
#cmakedefine REGISTRATION_USES_IMAGE
#cmakedefine REGISTRATION_HAVE_IMAGE

#ifdef SOFA_BUILD_REGISTRATION
# define SOFA_TARGET Registration
Expand Down
6 changes: 3 additions & 3 deletions src/Registration/initRegistration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ namespace sofa::component
namespace sofa::component::engine
{
extern void registerGroupwiseRegistrationEngine(sofa::core::ObjectFactory* factory);
#ifdef REGISTRATION_USES_IMAGE
#ifdef REGISTRATION_HAVE_IMAGE
extern void registerIntensityProfileCreator(sofa::core::ObjectFactory* factory);
#endif
}
namespace sofa::component::forcefield
{
#ifdef REGISTRATION_USES_IMAGE
#ifdef REGISTRATION_HAVE_IMAGE
extern void registerIntensityProfileRegistrationForceField(sofa::core::ObjectFactory* factory);
#endif
extern void registerClosestPointRegistrationForceField(sofa::core::ObjectFactory* factory);
Expand Down Expand Up @@ -100,7 +100,7 @@ namespace registration
{
sofa::component::registerInertiaAlign(factory);
sofa::component::engine::registerGroupwiseRegistrationEngine( factory);
#ifdef REGISTRATION_USES_IMAGE
#ifdef REGISTRATION_HAVE_IMAGE
sofa::component::engine::registerIntensityProfileCreator(factory);
sofa::component::forcefield::registerIntensityProfileRegistrationForceField(factory);
#endif
Expand Down
Loading