mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0028895: Visualization, V3d_View::SetComputedMode() - HLR calculation is performed multiple times when 'hlr on' has been called
V3d_View::SetComputedMode() - removed implicit View update. Graphic3d_CView::SetComputedMode(), ::ReCompute() - fixed uninitialized bounding box of Computed structure. PrsMgr_Presentation::Compute() - fixed computation of Computed structure with transformation within Connected presentation. StdPrs_HLRPolyShape::Add() now creates Graphic3d_ArrayOfSegments instead of inefficient Graphic3d_ArrayOfPolylines with boundaries at every segment. Fixed error in test case bugs/vis/bug24388_1.
This commit is contained in:
@@ -204,6 +204,7 @@ void View::hlrOff()
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
myHlrModeIsOn = Standard_False;
|
||||
myView->SetComputedMode (myHlrModeIsOn);
|
||||
myView->Redraw();
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
@@ -212,6 +213,7 @@ void View::hlrOn()
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
myHlrModeIsOn = Standard_True;
|
||||
myView->SetComputedMode (myHlrModeIsOn);
|
||||
myView->Redraw();
|
||||
QApplication::restoreOverrideCursor();
|
||||
}
|
||||
|
||||
@@ -742,7 +744,11 @@ void View::onRButtonUp( Qt::MouseButtons /*nFlags*/, const QPoint point )
|
||||
QApplication::setOverrideCursor( Qt::WaitCursor );
|
||||
// reset tyhe good Degenerated mode according to the strored one
|
||||
// --> dynamic rotation may have change it
|
||||
myView->SetComputedMode (myHlrModeIsOn);
|
||||
if (myHlrModeIsOn)
|
||||
{
|
||||
myView->SetComputedMode (myHlrModeIsOn);
|
||||
myView->Redraw();
|
||||
}
|
||||
QApplication::restoreOverrideCursor();
|
||||
myCurrentMode = CurAction3d_Nothing;
|
||||
}
|
||||
|
Reference in New Issue
Block a user