]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
add list of sub shape to import
authorfps <fps@opencascade.com>
Tue, 17 Sep 2013 08:27:20 +0000 (08:27 +0000)
committerfps <fps@opencascade.com>
Tue, 17 Sep 2013 08:27:20 +0000 (08:27 +0000)
src/ImportExportGUI/ImportExportGUI_ImportXAODlg.cxx

index 8fca1ad097e0b06adbcfb5fa2427f15ef400e171..838eb02e965fd984fa17ac3a106316fc20ce8a95 100644 (file)
@@ -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]));