From d0137667c8648b62129bab49e53725027c5d4baf Mon Sep 17 00:00:00 2001 From: fps Date: Tue, 17 Sep 2013 08:27:20 +0000 Subject: [PATCH] add list of sub shape to import --- src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx b/src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx index 8fca1ad09..838eb02e9 100644 --- a/src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx +++ b/src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx @@ -214,10 +214,10 @@ bool ImportExportGUI_ImportXAODlg::execute(ObjectList& objects) QString fileName = ledFileName->text(); GEOM::GEOM_Object_var shape; - GEOM::ListOfGO_var groups, fields; + GEOM::ListOfGO_var groups, fields, subShapes; GEOM::GEOM_IImportExportOperations_var ieOp = GEOM::GEOM_IImportExportOperations::_narrow(getOperation()); - res = ieOp->ImportXAO(fileName.toStdString().c_str(), shape, groups, fields); + res = ieOp->ImportXAO(fileName.toStdString().c_str(), shape, subShapes, groups, fields); if (!shape->_is_nil()) { @@ -229,6 +229,10 @@ bool ImportExportGUI_ImportXAODlg::execute(ObjectList& objects) m_mainShape = NULL; } + for (int i = 0; i < subShapes->length(); i++) + { + objects.push_back(GEOM::GEOM_Object::_duplicate(subShapes[i])); + } for (int i = 0; i < groups->length(); i++) { objects.push_back(GEOM::GEOM_Object::_duplicate(groups[i])); -- 2.39.2