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

0028162: Draw Harness - eliminate usage of deprecated Local Context

Create a general draw command 'VRelation' and drop the old 'relation' commands.
Add test cases for new draw command "vrelation".
Add two new methods: Activate and Deactivate which activate/deactivate the given selection mode for all displayed objects.
Eliminate deprecated local context methods in ObjectCommands, QABugs.
Eliminate deprecated local context methods in mfc standard sample and qt samples.
This commit is contained in:
isk
2016-11-28 12:11:43 +03:00
committed by apn
parent 0a8630615d
commit 404c893694
55 changed files with 1886 additions and 3290 deletions

View File

@@ -512,8 +512,12 @@ static Standard_Integer mdisplay
di << "The context is null\n";
else
{
if( aContext->HasOpenedContext() )
Standard_DISABLE_DEPRECATION_WARNINGS
if (aContext->HasOpenedContext())
{
aContext->CloseLocalContext();
}
Standard_ENABLE_DEPRECATION_WARNINGS
aContext->Display( aMesh );
}
@@ -538,8 +542,12 @@ static Standard_Integer merase
di << "The context is null\n";
else
{
if( aContext->HasOpenedContext() )
Standard_DISABLE_DEPRECATION_WARNINGS
if (aContext->HasOpenedContext())
{
aContext->CloseLocalContext();
}
Standard_ENABLE_DEPRECATION_WARNINGS
aContext->Erase( aMesh );
}