X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_AISObject.cpp;h=aea1179d62076fc4aaddd0a1c44f53950acf8787;hb=60e95a5502a6940c6c27ce5d561b3c684b0b0a4f;hp=a2b39e45217fcb1ae3427531db1eb20ffab599a0;hpb=7bf19255421b34594c7b0a76d0ce28166d0ce895;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index a2b39e452..aea1179d6 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -253,6 +253,14 @@ void GeomAPI_AISObject::createFixed(std::shared_ptr theShape, } } +void GeomAPI_AISObject::redisplay() +{ + Handle(AIS_InteractiveObject) anAIS = impl(); + if (!anAIS.IsNull()) { + Handle(AIS_InteractiveContext) aContext = anAIS->GetContext(); + aContext->Redisplay(anAIS, false); + } +} void GeomAPI_AISObject::setColor(const int& theColor) @@ -274,6 +282,7 @@ void GeomAPI_AISObject::setWidth(const double& theWidth) if (anAIS.IsNull()) return; anAIS->SetWidth(theWidth); + anAIS->Redisplay(); } void GeomAPI_AISObject::setColor(int theR, int theG, int theB)