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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user