X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationPrs.cpp;h=f27f35f1910f58dcb960a425dba5781c233621f7;hb=f421ab3932a5e09ae8082215c3eaaa8cc4944e02;hp=445c4ad8c8500baaa4f99278c7018aba828bece0;hpb=5a82acff74697623112b76b67c0200945a3e9976;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp old mode 100755 new mode 100644 index 445c4ad8c..f27f35f19 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2019 CEA/DEN, EDF R&D // // 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 // #include "PartSet_OperationPrs.h" @@ -128,6 +127,9 @@ void PartSet_OperationPrs::Compute( // change deviation coefficient to provide more precise circle // as there is no result, the shape is processed to correct deviation. To be unified ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aDrawer); + Handle(Prs3d_Drawer) aHighlightDrawer = DynamicHilightAttributes(); + if (!aHighlightDrawer.IsNull()) + ModuleBase_Tools::setDefaultDeviationCoefficient(aShape, aHighlightDrawer); if (myUseAISWidth) { Handle(AIS_InteractiveObject) anIO = anIter.Value(); @@ -236,7 +238,8 @@ void PartSet_OperationPrs::appendShapeIfVisible(ModuleBase_IWorkshop* theWorksho QMap >& theObjectShapes) { XGUI_Displayer* aDisplayer = XGUI_Tools::workshop(theWorkshop)->displayer(); - if (XGUI_Displayer::isVisible(aDisplayer, theObject)) { + // VSV: Do not use isVisible checking because it can be used when state "Show Only" is ON + //if (XGUI_Displayer::isVisible(aDisplayer, theObject)) { if (theGeomShape.get()) { if (theObjectShapes.contains(theObject)) theObjectShapes[theObject].append(theGeomShape); @@ -251,7 +254,7 @@ void PartSet_OperationPrs::appendShapeIfVisible(ModuleBase_IWorkshop* theWorksho .arg(ModuleBase_Tools::objectInfo(theObject)).toStdString().c_str()); #endif } - } + //} } void PartSet_OperationPrs::getFeatureShapes(const FeaturePtr& theFeature,