Pans (scrolls) a SimView to follow mouse movements. See SimView Panning in SimController.



center_screen_: Vector

center of simRect in panMap screen coords

panMap_: CoordMap

SimView's initial CoordMap at mouse down event, for SimView panning. We keep the initial coordmap because later we will do SimView.setSimRect which will change the SimView's coordmap.

start_screen_: Vector

initial mouse down location in LabCanvas screen coords

view_: SimView

the SimView being panned


  • Modifies the SimView so it is translated by the distance and direction the mouse has moved since the initial mouse down.


    • loc_screen: Vector

      current mouse position in screen coordinates

    Returns void

Generated using TypeDoc