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

0025933: Visualization - Forward AIS_InteractiveObject::Redisplay() execution to AIS_InteractiveContext

AIS_InteractiveObject::Redisplay now redirects the execution to interactive context;
All calls to AIS_InteractiveObject::Redisplay were replaced by AIS_InteractiveContext::Redisplay

Small correction of test case
This commit is contained in:
vpa
2015-03-19 16:02:42 +03:00
committed by bugmaster
parent a79f67f8d8
commit 36132a2ec8
6 changed files with 27 additions and 19 deletions

View File

@@ -2182,7 +2182,7 @@ static Standard_Integer VAspects (Draw_Interpretor& /*theDI*/,
}
else if (!aColoredPrs.IsNull())
{
aColoredPrs->Redisplay();
aCtx->Redisplay (aColoredPrs, Standard_False);
}
}
else

View File

@@ -893,7 +893,7 @@ static int VHLR (Draw_Interpretor& di, Standard_Integer argc, const char** argv)
{
continue;
}
aShape->Redisplay();
ViewerTest::GetAISContext()->Redisplay (aShape, Standard_False);
}
}
}
@@ -939,7 +939,7 @@ static int VHLRType (Draw_Interpretor& di, Standard_Integer argc, const char** a
if (aShape->TypeOfHLR() != aTypeOfHLR)
aShape->SetTypeOfHLR (aTypeOfHLR);
if (MyHLRIsOn)
aShape->Redisplay();
ViewerTest::GetAISContext()->Redisplay (aShape, Standard_False);
}
ViewerTest::CurrentView()->Update();
return 0;
@@ -962,7 +962,7 @@ static int VHLRType (Draw_Interpretor& di, Standard_Integer argc, const char** a
continue;
anAISObject->SetTypeOfHLR (aTypeOfHLR);
if (MyHLRIsOn)
anAISObject->Redisplay();
ViewerTest::GetAISContext()->Redisplay (anAISObject, Standard_False);
}
ViewerTest::CurrentView()->Update();
}
@@ -1386,7 +1386,7 @@ void VT_ProcessKeyPress (const char* buf_ret)
aShape->SetTypeOfHLR (Prs3d_TOH_Algo);
else
aShape->SetTypeOfHLR (Prs3d_TOH_PolyAlgo);
aShape->Redisplay();
aContext->Redisplay (aShape, Standard_False);
}
}
else
@@ -1400,7 +1400,7 @@ void VT_ProcessKeyPress (const char* buf_ret)
aShape->SetTypeOfHLR (Prs3d_TOH_Algo);
else
aShape->SetTypeOfHLR (Prs3d_TOH_PolyAlgo);
aShape->Redisplay();
aContext->Redisplay (aShape, Standard_False);
}
}