V3d_Viewer methods ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues,
RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane
do not redraw viewer anymore.
The argument theUpdateMode has been removed from methods Graphic3d_CView::Display(), Erase(), Update().
Method Graphic3d_CView::Update() does not redraw the view and does not re-compute structures anymore.
+The following Grid management methods within class V3d_Viewer do not implicitly redraw the viewer:
+ ActivateGrid, DeactivateGrid, SetRectangularGridValues, SetCircularGridValues,
+ RectangularGridGraphicValues, CircularGridGraphicValues, SetPrivilegedPlane, DisplayPrivilegedPlane.
+
@subsection upgrade_720_Result_Of_BOP_On_Containers Result of Boolean operations on containers
* The result of Boolean operations on arguments of collection types (WIRE/SHELL/COMPSOLID) is now filtered from duplicating containers.
if(myDisplayPlane)
DisplayPrivilegedPlane(Standard_True,myDisplayPlaneLength);
- else
- Update();
}
/*----------------------------------------------------------------------*/
/*----------------------------------------------------------------------*/
void V3d_Viewer::DisplayPrivilegedPlane(const Standard_Boolean OnOff, const Quantity_Length aSize)
{
- Standard_Boolean Change = (myDisplayPlane != OnOff);
myDisplayPlane = OnOff;
myDisplayPlaneLength = aSize;
{
if( !myPlaneStructure.IsNull() ) myPlaneStructure->Erase();
}
- if(Change) Update();
}
/*----------------------------------------------------------------------*/
{
anActiveViewIter.Value()->SetGrid (myPrivilegedPlane, Grid());
}
- Update();
}
// =======================================================================
myGridEchoStructure->Erase();
}
}
- Update();
}
// =======================================================================
{
anActiveViewIter.Value()->SetGrid (myPrivilegedPlane, myRGrid);
}
- Update();
}
// =======================================================================
{
anActiveViewIter.Value()->SetGrid (myPrivilegedPlane, myCGrid);
}
- Update();
}
// =======================================================================
const Quantity_Length theOffSet)
{
myRGrid->SetGraphicValues (theXSize, theYSize, theOffSet);
- Update();
}
// =======================================================================
const Quantity_Length theOffSet)
{
myCGrid->SetGraphicValues (theRadius, theOffSet);
- Update();
}
// =======================================================================
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;
}