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:
@@ -171,7 +171,6 @@ void V3d_PositionLight::Display (const Handle(V3d_View)& theView, const V3d_Type
|
||||
Standard_Real DXRef,DYRef,DZRef,DXini,DYini,DZini;
|
||||
Standard_Real R1,G1,B1;
|
||||
V3d_TypeOfRepresentation Pres;
|
||||
V3d_TypeOfUpdate UpdSov;
|
||||
|
||||
// Creation of a structure of markable elements (position of the
|
||||
// light, and the domain of lighting represented by a circle)
|
||||
@@ -180,8 +179,6 @@ void V3d_PositionLight::Display (const Handle(V3d_View)& theView, const V3d_Type
|
||||
|
||||
Pres = theTPres;
|
||||
Handle(V3d_Viewer) TheViewer = theView->Viewer();
|
||||
UpdSov = TheViewer->UpdateMode();
|
||||
TheViewer->SetUpdateMode(V3d_WAIT);
|
||||
if (!myGraphicStructure.IsNull()) {
|
||||
myGraphicStructure->Disconnect(myGraphicStructure1);
|
||||
myGraphicStructure->Clear();
|
||||
@@ -289,7 +286,6 @@ void V3d_PositionLight::Display (const Handle(V3d_View)& theView, const V3d_Type
|
||||
myGraphicStructure->Connect(myGraphicStructure1,Graphic3d_TOC_DESCENDANT);
|
||||
myTypeOfRepresentation = Pres;
|
||||
myGraphicStructure->Display();
|
||||
TheViewer->SetUpdateMode(UpdSov);
|
||||
}
|
||||
|
||||
// =======================================================================
|
||||
|
Reference in New Issue
Block a user