parameters: (self, viewState)
docstring: Restore view parameters from 'viewState', and redraw
docstring_summary: Restore view parameters from 'viewState', and redraw
docstring_tokens: Restore view parameters from viewState and redraw
function: def restoreViewState(self, viewState):
          """Restore view parameters from 'viewState', and redraw"""
          self._dataModel.viewSettings.cameraPrim = viewState["_cameraPrim"]
          self._stageIsZup = viewState["_stageIsZup"]
          self._overrideNear = viewState["_overrideNear"]
          self._overrideFar = viewState["_overrideFar"]
  
          restoredCamera = viewState["_freeCamera"]
          # Detach our freeCamera from the given viewState, to
          # insulate against changes to viewState by caller
          self._dataModel.viewSettings.freeCamera = restoredCamera.clone() if restoredCamera else None
  
          self.update()
function_tokens: def restoreViewState ( self , viewState ) : self . _dataModel . viewSettings . cameraPrim = viewState [ "_cameraPrim" ] self . _stageIsZup = viewState [ "_stageIsZup" ] self . _overrideNear = viewState [ "_overrideNear" ] self . _overrideFar = viewState [ "_overrideFar" ] restoredCamera = viewState [ "_freeCamera" ] # Detach our freeCamera from the given viewState, to # insulate against changes to viewState by caller self . _dataModel . viewSettings . freeCamera = restoredCamera . clone ( ) if restoredCamera else None self . update ( )