mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0029285: Visualization, V3d_View::UpdateLights() - eliminate implicit redraw
This commit is contained in:
parent
dd1ae9df09
commit
761d880766
@ -384,7 +384,6 @@ void V3d_View::UpdateLights() const
|
|||||||
aLights.Append (anActiveLightIter.Value()->Light());
|
aLights.Append (anActiveLightIter.Value()->Light());
|
||||||
}
|
}
|
||||||
myView->SetLights (aLights);
|
myView->SetLights (aLights);
|
||||||
Update();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
@ -169,7 +169,7 @@ public:
|
|||||||
//! Returns True is The View is empty
|
//! Returns True is The View is empty
|
||||||
Standard_EXPORT Standard_Boolean IsEmpty() const;
|
Standard_EXPORT Standard_Boolean IsEmpty() const;
|
||||||
|
|
||||||
//! Updates the lights of the view. The view is redrawn.
|
//! Updates the lights of the view.
|
||||||
Standard_EXPORT void UpdateLights() const;
|
Standard_EXPORT void UpdateLights() const;
|
||||||
|
|
||||||
//! Sets the automatic z-fit mode and its parameters.
|
//! Sets the automatic z-fit mode and its parameters.
|
||||||
|
@ -9318,6 +9318,7 @@ static int VLight (Draw_Interpretor& theDi,
|
|||||||
Handle(V3d_Light) aLightOld;
|
Handle(V3d_Light) aLightOld;
|
||||||
Standard_Boolean isGlobal = Standard_True;
|
Standard_Boolean isGlobal = Standard_True;
|
||||||
Standard_Boolean toCreate = Standard_False;
|
Standard_Boolean toCreate = Standard_False;
|
||||||
|
ViewerTest_AutoUpdater anUpdateTool (ViewerTest::GetAISContext(), aView);
|
||||||
for (Standard_Integer anArgIt = 1; anArgIt < theArgsNb; ++anArgIt)
|
for (Standard_Integer anArgIt = 1; anArgIt < theArgsNb; ++anArgIt)
|
||||||
{
|
{
|
||||||
Handle(V3d_Light) aLightCurr = aLightNew.IsNull() ? aLightOld : aLightNew;
|
Handle(V3d_Light) aLightCurr = aLightNew.IsNull() ? aLightOld : aLightNew;
|
||||||
@ -9330,6 +9331,11 @@ static int VLight (Draw_Interpretor& theDi,
|
|||||||
const TCollection_AsciiString anArg (theArgVec[anArgIt]);
|
const TCollection_AsciiString anArg (theArgVec[anArgIt]);
|
||||||
TCollection_AsciiString anArgCase (anArg);
|
TCollection_AsciiString anArgCase (anArg);
|
||||||
anArgCase.UpperCase();
|
anArgCase.UpperCase();
|
||||||
|
if (anUpdateTool.parseRedrawMode (anArg))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (anArgCase.IsEqual ("NEW")
|
if (anArgCase.IsEqual ("NEW")
|
||||||
|| anArgCase.IsEqual ("ADD")
|
|| anArgCase.IsEqual ("ADD")
|
||||||
|| anArgCase.IsEqual ("CREATE"))
|
|| anArgCase.IsEqual ("CREATE"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user