PyANGGui.G2DViewWindow

class G2DViewWindow

A window that contains a 2D View.

Details

A window that contains a 2D View and some extra controls to modify the following view settings: - mode: current GKViewMode used by the view (can be None: no mode) - time: current time in the view used by time dependant drawers - master view property: set a view (and only one view among all the view in the GGui ) as the master view. - tool tip activation: activate object information using a tool tip (if on a tool tip will appear over the object bellow the mouse pointer).

Inheritance diagram of PyANGGui.G2DViewWindow

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

class G2DViewTimeWidgetMode
__init__(agui, amodel, parent, caption[, wflags=Qt.WindowFlags()])
Parameters:
getCurrentMasterZoom()
Return type:

float

getMode()
Return type:

GKViewMode

Returns the active view mode in the view, NULL if no mode is active.

getOriginator()
Return type:

GKObject

Returns the originator for the active view mode in the view, null if no mode is active or if the originator is null.

getRefreshInterval()
Return type:

GKTimeDuration

getRefreshSpeed()
Return type:

int

invalidate()

Invalidates the G2DView

panAndZoomTheRest(aPanPoint, aZoomCoord[, aKeepRatio=false])
Parameters:
  • aPanPointGKPoint

  • aZoomCoord – float

  • aKeepRatio – bool

panTheRest(point)
Parameters:

pointGKPoint

setMode(amode, dataSource, additionalContents)
Parameters:

Set the mode to be use in the view.

setTimer(aStep, msegs)
Parameters:

Timer programming: It’s an automatic timer that moves the Now (in the time context) from the begining to the end of the period (in the time context) in steps of “aStep” every “msegs” miliseconds.

setViewModeContents(arg__1)
Parameters:

arg__1GKContents