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

0028405: Visualization, V3d_Viewer - changes to Grid immediately updates view

V3d_Viewer methods ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues,
RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane
do not redraw viewer anymore.
This commit is contained in:
kgv
2017-02-05 11:33:39 +03:00
committed by bugmaster
parent 18c066908f
commit 224f48fa0e
4 changed files with 10 additions and 12 deletions

View File

@@ -4951,12 +4951,16 @@ static int VGrid (Draw_Interpretor& /*theDI*/,
Aspect_GridType aType = aViewer->GridType();
Aspect_GridDrawMode aMode = aViewer->GridDrawMode();
ViewerTest_AutoUpdater anUpdateTool (ViewerTest::GetAISContext(), aView);
Standard_Integer anIter = 1;
for (; anIter < theArgNb; ++anIter)
{
const char* aValue = theArgVec[anIter];
if (*aValue == 'r')
if (anUpdateTool.parseRedrawMode (aValue))
{
continue;
}
else if (*aValue == 'r')
{
aType = Aspect_GT_Rectangular;
}