mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0028407: Visualization - remove ::UpdateMode() from Graphic3d_StructureManager
This commit is contained in:
@@ -619,24 +619,10 @@ void Graphic3d_Structure::SetVisual (const Graphic3d_TypeOfStructure theVisual)
|
||||
}
|
||||
else
|
||||
{
|
||||
Aspect_TypeOfUpdate anUpdateMode = myStructureManager->UpdateMode();
|
||||
if (anUpdateMode == Aspect_TOU_WAIT)
|
||||
{
|
||||
Erase();
|
||||
myVisual = theVisual;
|
||||
SetComputeVisual (theVisual);
|
||||
Display();
|
||||
}
|
||||
else {
|
||||
// To avoid calling method : Update ()
|
||||
// Not useful and can be costly.
|
||||
myStructureManager->SetUpdateMode (Aspect_TOU_WAIT);
|
||||
Erase();
|
||||
myVisual = theVisual;
|
||||
SetComputeVisual (theVisual);
|
||||
myStructureManager->SetUpdateMode (anUpdateMode);
|
||||
Display();
|
||||
}
|
||||
Erase();
|
||||
myVisual = theVisual;
|
||||
SetComputeVisual (theVisual);
|
||||
Display();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1254,8 +1240,7 @@ void Graphic3d_Structure::Update (const bool theUpdateLayer) const
|
||||
return;
|
||||
}
|
||||
|
||||
myStructureManager->Update (myStructureManager->UpdateMode(),
|
||||
theUpdateLayer ? myCStructure->ZLayer() : Graphic3d_ZLayerId_UNKNOWN);
|
||||
myStructureManager->Update (theUpdateLayer ? myCStructure->ZLayer() : Graphic3d_ZLayerId_UNKNOWN);
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Reference in New Issue
Block a user