aLights.Append (anActiveLightIter.Value()->Light());
}
myView->SetLights (aLights);
- Update();
}
//=============================================================================
//! Returns True is The View is empty
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;
//! Sets the automatic z-fit mode and its parameters.
Handle(V3d_Light) aLightOld;
Standard_Boolean isGlobal = Standard_True;
Standard_Boolean toCreate = Standard_False;
+ ViewerTest_AutoUpdater anUpdateTool (ViewerTest::GetAISContext(), aView);
for (Standard_Integer anArgIt = 1; anArgIt < theArgsNb; ++anArgIt)
{
Handle(V3d_Light) aLightCurr = aLightNew.IsNull() ? aLightOld : aLightNew;
const TCollection_AsciiString anArg (theArgVec[anArgIt]);
TCollection_AsciiString anArgCase (anArg);
anArgCase.UpperCase();
+ if (anUpdateTool.parseRedrawMode (anArg))
+ {
+ continue;
+ }
+
if (anArgCase.IsEqual ("NEW")
|| anArgCase.IsEqual ("ADD")
|| anArgCase.IsEqual ("CREATE"))