myMainPM->SetVisibility (theIObj, aDispModeIter.Value(), Standard_False);
}
+ if (aStatus->IsHilighted()
+ && theIObj->HasHilightMode())
+ {
+ myMainPM->Unhighlight (theIObj, aDispMode);
+ }
+
+ if (!myLastPicked.IsNull()
+ && myLastPicked->Selectable() == theIObj)
+ {
+ myMainPM->ClearImmediateDraw();
+ }
+
if (IsSelected (theIObj)
&& !aStatus->IsDModeIn (aDispMode))
{
myMainPM->Clear (theIObj, aDispModeIter.Value());
}
+ if (aStatus->IsHilighted()
+ && theIObj->HasHilightMode())
+ {
+ myMainPM->Unhighlight (theIObj, theIObj->HilightMode());
+ }
+
// Object removes from Detected sequence
for(Standard_Integer aDetIter = 1; aDetIter < myAISDetectedSeq.Length(); ++aDetIter)
{
--- /dev/null
+puts "========"
+puts "CR27621_1"
+puts "========"
+puts ""
+###################################################################
+puts "Highlighting with color remains visible when shape is erased"
+###################################################################
+
+vclear
+vinit View1
+
+box b 1 2 3
+vdisplay b -dispmode 1
+vfit
+vmoveto 250 250
+
+vdump $imagedir/${casename}_highlighted.png
+
+verase b
+
+vdump $imagedir/${casename}_erased.png
--- /dev/null
+puts "========"
+puts "CR27621_2"
+puts "========"
+puts ""
+###################################################################
+puts "Highlighting with color remains visible when shape is erased"
+###################################################################
+
+vclear
+vinit View1
+
+box b 1 2 3
+vdisplay b -dispmode 1
+vfit
+vmoveto 250 250
+
+vdump $imagedir/${casename}_highlighted.png
+
+vclear
+
+vdump $imagedir/${casename}_erased.png