diff --git a/SofaGLFW/src/SofaGLFW/SofaGLFWBaseGUI.cpp b/SofaGLFW/src/SofaGLFW/SofaGLFWBaseGUI.cpp index 99a29bd7b5..b976b8ed56 100644 --- a/SofaGLFW/src/SofaGLFW/SofaGLFWBaseGUI.cpp +++ b/SofaGLFW/src/SofaGLFW/SofaGLFWBaseGUI.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -520,11 +521,11 @@ void SofaGLFWBaseGUI::initVisual() if (!visualStyle) { visualStyle = sofa::core::objectmodel::New(); - visualStyle->setName(helper::NameDecoder::getShortName()); + visualStyle->setName(sofa::core::objectmodel::BaseClassNameHelper::getShortName()); DisplayFlags* displayFlags = visualStyle->d_displayFlags.beginEdit(); displayFlags->setShowVisualModels(tristate::true_value); - visualStyle->displayFlags.endEdit(); + visualStyle->d_displayFlags.endEdit(); m_groot->addObject(visualStyle); visualStyle->init(); diff --git a/SofaGLFW/src/SofaGLFW/SofaGLFWGUI.cpp b/SofaGLFW/src/SofaGLFW/SofaGLFWGUI.cpp index 3e618ac02a..7e09023d2e 100644 --- a/SofaGLFW/src/SofaGLFW/SofaGLFWGUI.cpp +++ b/SofaGLFW/src/SofaGLFW/SofaGLFWGUI.cpp @@ -95,9 +95,9 @@ void SofaGLFWGUI::centerWindow() void SofaGLFWGUI::setViewerConfiguration(sofa::component::setting::ViewerSetting* viewerConf) { - const type::Vec<2, int>& res = viewerConf->resolution.getValue(); + const type::Vec<2, int>& res = viewerConf->d_resolution.getValue(); - if (viewerConf->fullscreen.getValue()) + if (viewerConf->d_fullscreen.getValue()) { m_bCreateWithFullScreen = true; } diff --git a/SofaImGui/src/SofaImGui/windows/Plugins.cpp b/SofaImGui/src/SofaImGui/windows/Plugins.cpp index 9d08afcb16..f82e10adf0 100644 --- a/SofaImGui/src/SofaImGui/windows/Plugins.cpp +++ b/SofaImGui/src/SofaImGui/windows/Plugins.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -98,7 +99,7 @@ namespace windows ImGui::TextWrapped("%s", pluginIt->second.getModuleDescription()); ImGui::Spacing(); ImGui::TextDisabled("Components:"); - ImGui::TextWrapped("%s", pluginIt->second.getModuleComponentList()); + ImGui::TextWrapped("%s", sofa::core::ObjectFactory::getInstance()->listClassesFromTarget(pluginIt->second.getModuleName()).c_str()); ImGui::Spacing(); ImGui::TextDisabled("Path:"); ImGui::TextWrapped("%s", selectedPlugin.c_str()); diff --git a/exe/Main.cpp b/exe/Main.cpp index 4cd4cffd18..09e8c71043 100644 --- a/exe/Main.cpp +++ b/exe/Main.cpp @@ -105,13 +105,13 @@ int main(int argc, char** argv) groot->get(viewerConf, sofa::core::objectmodel::BaseContext::SearchRoot); if (viewerConf) { - if (viewerConf->fullscreen.getValue()) + if (viewerConf->d_fullscreen.getValue()) { isFullScreen = true; } else { - resolution = viewerConf->resolution.getValue(); + resolution = viewerConf->d_resolution.getValue(); } }