X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_InteractiveContext.hxx;h=1638c213068bc4b750cfba87937da5caef1e41a3;hb=731c9b5bc0ac747c48f8c66de935befce25c5618;hpb=a8232603a065cf91e448d3e70dab2ff056769a59 diff --git a/src/AIS/AIS_InteractiveContext.hxx b/src/AIS/AIS_InteractiveContext.hxx index 33327459e4..1638c21306 100644 --- a/src/AIS/AIS_InteractiveContext.hxx +++ b/src/AIS/AIS_InteractiveContext.hxx @@ -1730,6 +1730,22 @@ protected: return myDefaultDrawer->DisplayMode(); } + //! Removes dynamic highlight draw + void clearDynamicHighlight() const + { + if (myLastinMain.IsNull()) + return; + + if (myLastinMain->IsAutoHilight()) + { + myMainPM->ClearImmediateDraw(); + } + else + { + myLastinMain->Selectable()->ClearDynamicHighlight (myMainPM); + } + } + protected: AIS_DataMapOfIOStatus myObjects;