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
GKViewModeused 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 theGGui) 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).Synopsis¶
Methods¶
def
__init__()def
getMode()def
getOriginator()def
invalidate()def
panTheRest()def
setMode()def
setTimer()
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:
agui –
GGuiamodel –
GKModelparent –
QWidgetcaption – str
wflags – Combination of
WindowType
- getMode()¶
- Return type:
Returns the active view mode in the view, NULL if no mode is active.
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:
- invalidate()¶
Invalidates the
G2DView- panAndZoomTheRest(aPanPoint, aZoomCoord[, aKeepRatio=false])¶
- Parameters:
aPanPoint –
GKPointaZoomCoord – float
aKeepRatio – bool
- setMode(amode, dataSource, additionalContents)¶
- Parameters:
amode –
GKViewModedataSource –
GKObjectadditionalContents –
GKContents
Set the mode to be use in the view.
- setTimer(aStep, msegs)¶
- Parameters:
aStep –
GKTimeDurationmsegs – int
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__1 –
GKContents