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:
@@ -1693,7 +1693,8 @@ void AIS_InteractiveContext::redisplayPrsRecModes (const Handle(AIS_InteractiveO
|
||||
{
|
||||
if (theIObj->RecomputeEveryPrs())
|
||||
{
|
||||
theIObj->Redisplay();
|
||||
theIObj->Update (Standard_True);
|
||||
theIObj->UpdateSelection();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1719,7 +1720,8 @@ void AIS_InteractiveContext::redisplayPrsModes (const Handle(AIS_InteractiveObje
|
||||
{
|
||||
if (theIObj->RecomputeEveryPrs())
|
||||
{
|
||||
theIObj->Redisplay();
|
||||
theIObj->Update (Standard_True);
|
||||
theIObj->UpdateSelection();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1904,7 +1906,8 @@ void AIS_InteractiveContext::SetAngleAndDeviation (const Handle(AIS_InteractiveO
|
||||
|
||||
if (theIObj->RecomputeEveryPrs())
|
||||
{
|
||||
theIObj->Redisplay();
|
||||
theIObj->Update (Standard_True);
|
||||
theIObj->UpdateSelection();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -173,9 +173,13 @@ is
|
||||
-- be implemented when the main mode is not mode 0.
|
||||
|
||||
|
||||
Redisplay (me:mutable; AllModes:Boolean from Standard =Standard_False);
|
||||
---Purpose: Updates the active presentation; if <AllModes> = Standard_True
|
||||
-- all the presentations inside are recomputed.
|
||||
Redisplay (me:mutable; AllModes:Boolean from Standard =Standard_False);
|
||||
---Purpose: Updates the active presentation; if <AllModes> = Standard_True
|
||||
-- all the presentations inside are recomputed.
|
||||
-- IMPORTANT: It is preferable to call Redisplay method of
|
||||
-- corresponding AIS_InteractiveContext instance for cases when it
|
||||
-- is accessible. This method just redirects call to myCTXPtr,
|
||||
-- so this class field must be up to date for proper result.
|
||||
|
||||
|
||||
SetInfiniteState(me:mutable;aFlag:Boolean from Standard = Standard_True);
|
||||
|
@@ -68,13 +68,14 @@ mystate(0)
|
||||
|
||||
//=======================================================================
|
||||
//function : Redisplay
|
||||
//purpose :
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
void AIS_InteractiveObject::Redisplay(const Standard_Boolean AllModes)
|
||||
void AIS_InteractiveObject::Redisplay (const Standard_Boolean AllModes)
|
||||
{
|
||||
Update(AllModes);
|
||||
UpdateSelection();
|
||||
if (myCTXPtr == NULL)
|
||||
return;
|
||||
|
||||
myCTXPtr->Redisplay (this, Standard_False, AllModes);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
Reference in New Issue
Block a user