Box that allows internal scaling/panning of children by mouse drag. Not really compatible with GraphicsView having the same functionality.
Return the transform that maps from child(item in the childGroup) coordinates to local coordinates. (This maps from inside the viewbox to outside)
Return the bounding rect of all children. Returns None if there are no bounded children
Return the bounding rect of the item in view coordinates
This routine should capture key presses in the current view box. Key presses are used only when self.useLeftButtonPan is false The following events are implemented: ctrl-A : zooms out to the default “full” view of the plot ctrl-+ : moves forward in the zooming stack (if it exists) ctrl– : moves backward in the zooming stack (if it exists)
Maps from the coordinate system displayed inside the ViewBox to the local coordinates of the ViewBox
Maps from scene coordinates to the coordinate system displayed inside the ViewBox
Maps from the local coordinates of the ViewBox to the coordinate system displayed inside the ViewBox
Maps from the coordinate system displayed inside the ViewBox to scene coordinates
Scale by s around given center point (or center of view)
If the aspect ratio is locked, view scaling is always forced to be isotropic. By default, the ratio is set to 1; x and y both have the same scaling. This ratio can be overridden (width/height), or use None to lock in the current ratio.
Set the visible range of the ViewBox. Can be called with a QRectF:
setRange(QRectF(x, y, w, h))
Return the region which has been requested to be visible. (this is not necessarily the same as the region that is actually visible)
Return a QRectF bounding the region visible within the ViewBox