void updateNs(Layout *layout) { layout->setSBMLNamespaces(layoutNs); updateNs(layout->getDimensions()); updateNs(layout->getListOfAdditionalGraphicalObjects()); updateNs(layout->getListOfCompartmentGlyphs()); updateNs(layout->getListOfReactionGlyphs()); updateNs(layout->getListOfSpeciesGlyphs()); updateNs(layout->getListOfTextGlyphs()); #ifdef CONVERT_RENDER RenderLayoutPlugin* layoutPlugin = (RenderLayoutPlugin*)layout->getPlugin("render"); if (layoutPlugin != NULL) { updateNs(layoutPlugin->getListOfLocalRenderInformation()); layoutPlugin->setElementNamespace(renderNsUri); } #endif }
LIBSBML_CPP_NAMESPACE_USE void deleteRenderInformationFromLayout(LayoutModelPlugin *lPlugin) { if (lPlugin == NULL) return; RenderListOfLayoutsPlugin *lolPlugin = (RenderListOfLayoutsPlugin*)lPlugin->getListOfLayouts()->getPlugin("render"); if (lolPlugin != NULL) { lolPlugin->getListOfGlobalRenderInformation()->clear(); } for (int i = 0; i < lPlugin->getNumLayouts(); i++) { Layout* current = lPlugin->getLayout(i); if (current == NULL) continue; RenderLayoutPlugin *rPlugins = (RenderLayoutPlugin*) current->getPlugin("render"); if (rPlugins == NULL) continue; rPlugins->getListOfLocalRenderInformation()->clear(); } }