PyANGGui.G2DDrawContext

class G2DDrawContext

The drawing context for a 2D View

Details

This class holds the main information about an existing 2D View

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

PyANGGui.G2DDrawContext.view
PyANGGui.G2DDrawContext.wRect
PyANGGui.G2DDrawContext.context
PyANGGui.G2DDrawContext.printing
PyANGGui.G2DDrawContext.mapMode
PyANGGui.G2DDrawContext.mapModePass
PyANGGui.G2DDrawContext.mapModeDivider
PyANGGui.G2DDrawContext.penMultiplier
PyANGGui.G2DDrawContext.fontMultiplier
PyANGGui.G2DDrawContext.diagramMultiplier
PyANGGui.G2DDrawContext.modeObject
PyANGGui.G2DDrawContext.modelConnection
PyANGGui.G2DDrawContext.roadSide
__init__(_context)
Parameters:

_contextG2DDrawContext

__init__(v, w, c)
Parameters:
getActiveScenario()
Return type:

GKGenericScenario

Returns the current view’s active scenario

getMode()
Return type:

GKViewMode

Returns the current view mode, if any. Otherwise returns an empty view mode