X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_ExternalPointsMgr.cpp;h=11350c8202dc8cc7d83ac52495a2f7b830877f40;hb=06e7f5859095193fc7f498bd89a7d28009794f53;hp=3de84434e2dd3942e87e923eca84b6aa602c5bf9;hpb=dc7d4d86b58b81684abc9b5a2be8ec30f210c2da;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_ExternalPointsMgr.cpp b/src/PartSet/PartSet_ExternalPointsMgr.cpp index 3de84434e..11350c820 100644 --- a/src/PartSet/PartSet_ExternalPointsMgr.cpp +++ b/src/PartSet/PartSet_ExternalPointsMgr.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2017 CEA/DEN, EDF R&D +// Copyright (C) 2017-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // File: PartSet_ExternalPointsMgr.cpp @@ -27,6 +26,8 @@ #include "PartSet_Tools.h" #include +#include +#include #include #include @@ -43,6 +44,10 @@ #include #include +#ifdef WIN32 +#pragma warning(disable : 4456) // for nested foreach +#endif + PartSet_ExternalPointsMgr::PartSet_ExternalPointsMgr(ModuleBase_IWorkshop* theWorkshop, const CompositeFeaturePtr& theSketch) : QObject(theWorkshop), myWorkshop(theWorkshop), mySketch(theSketch) @@ -97,6 +102,13 @@ QList> PartSet_ExternalPointsMgr::findCirc continue; ResultPtr aResObj = std::dynamic_pointer_cast(aObj); + + // Do not use Fields and groups in selection in sketcher + if (!aResObj.get() || + (aResObj->groupName() == ModelAPI_ResultField::group()) || + (aResObj->groupName() == ModelAPI_ResultGroup::group())) + continue; + if (aResObj.get()) { GeomShapePtr aShape = aResObj->shape(); if (aShape.get()) { @@ -179,7 +191,7 @@ void PartSet_ExternalPointsMgr::updateCenterPresentations() else myPresentations[aPrs->object()] = aList; foreach(AISObjectPtr anAIS, aList) { - aDisplayer->displayAIS(anAIS, false); + aDisplayer->displayAIS(anAIS, false, 0, false); aWorkshop->selectionActivate()->activateAIS(anAIS->impl(), TopAbs_VERTEX, false); }