From: ngo Date: Mon, 14 Jan 2013 15:33:35 +0000 (+0000) Subject: Initial step for subshapes IDS X-Git-Tag: siman1_BR_V7_main_Field~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94f7859f4f3c36ddd930e4657e4e9a5544fb155c;p=modules%2Fgeom.git Initial step for subshapes IDS --- diff --git a/src/XAOExport/XAOExport.cxx b/src/XAOExport/XAOExport.cxx index ed36cb0ec..777cf4cd6 100644 --- a/src/XAOExport/XAOExport.cxx +++ b/src/XAOExport/XAOExport.cxx @@ -135,18 +135,8 @@ XAOEXPORT_EXPORT //nameShape = GEOMBase::GetName( anObj.get() ); nameShape = anObj->GetName(); - GEOM_Engine* anEngine = GEOM_Engine::GetEngine(); - GEOMImpl_Gen* aGen = (GEOMImpl_Gen*)anEngine; - if (aGen) { - /*GEOM::GEOM_IShapesOperations_var aShOp = anEngine->GetIShapesOperations(anObj->GetStudyID()); - aSubShapesId = aShOp->SubShapeAllIDs(anObj->GetMainObject(), TopAbs_VERTEX, false);*/ - GEOMImpl_IShapesOperations* anIShapesOperations = aGen->GetIShapesOperations(anObj->GetStudyID()); - aSubShapesId = anIShapesOperations->SubShapeAllIDs(anObj->GetMainShape()->GetImpl(), TopAbs_VERTEX, false); - } - //GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine(); - /*GEOM::GEOM_IShapesOperations_var aShOp = GEOMBase_Helper::getGeomEngine()->GetIShapesOperations(anObj->GetStudyID()); - aSubShapesId = aShOp->SubShapeAllIDs(anObj->GetMainObject(), TopAbs_VERTEX, false);*/ - + GEOM::GEOM_IShapesOperations_var aShOp = GeometryGUI::GetGeomGen()->GetIShapesOperations(anObj->GetStudyID()); + aSubShapesId = aShOp->SubShapeAllIDs(anObj, TopAbs_VERTEX, false); } }