1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0029470: Samples - eliminate references to deprecated Local Context from MFC sample

AIS_InteractiveContext::MoveTo(), ::Select(), ::ShiftSelect() now throw
an exception on invalid V3d_View argument instead of returning empty results.
AIS_InteractiveContext::DetectedShape() and ::BeginImmediateDraw() now can
be called without opened Local Context.

Draw Harness - removed unused commands vsetam, vunsetam.
Removed unused methods ViewerTest::StandardModeActivation(), ::PickObject(), PickObjects().
Interactive input of Selection modes 0..7 now redirects to vselmode
instead of removed ViewerTest::StandardModeActivation().
This commit is contained in:
kgv
2018-03-11 13:21:01 +03:00
committed by bugmaster
parent d9ca2e0cb1
commit 8c088c52fc
22 changed files with 374 additions and 939 deletions

View File

@@ -531,13 +531,6 @@ static Standard_Integer mdisplay
di << "The context is null\n";
else
{
Standard_DISABLE_DEPRECATION_WARNINGS
if (aContext->HasOpenedContext())
{
aContext->CloseLocalContext();
}
Standard_ENABLE_DEPRECATION_WARNINGS
aContext->Display (aMesh, Standard_True);
}
}
@@ -561,13 +554,6 @@ static Standard_Integer merase
di << "The context is null\n";
else
{
Standard_DISABLE_DEPRECATION_WARNINGS
if (aContext->HasOpenedContext())
{
aContext->CloseLocalContext();
}
Standard_ENABLE_DEPRECATION_WARNINGS
aContext->Erase (aMesh, Standard_True);
}
}