gsdview.qt4draw

Drawing components for Qt4.

Classes

DrawEllipseMode([parent])
DrawLineMode([parent])
DrawPointMode
DrawRectMode([parent])
GraphicsItemGroup([parent, scene]) Qt graphics item group with common style.
GraphicsPointItem([x, y, radius, parent, scene]) Qt graphics item for point merkers.
MouseMode Base class for mouse mode desctiptors.
class gsdview.qt4draw.DrawEllipseMode(parent=None)[source]

Bases: gsdview.mousemanager.MouseMode

cursor = 2
dragmode = 0
icon = ':/trolltech/styles/commonstyle/images/standardbutton-no-128.png'
label = 'Draw Ellipse'
name = 'drawEllipse'
sceneEventFilter(obj, event)[source]
class gsdview.qt4draw.DrawLineMode(parent=None)[source]

Bases: gsdview.mousemanager.MouseMode

cursor = 2
dragmode = 0
icon = ':/trolltech/dialogs/qprintpreviewdialog/images/fit-width-24.png'
label = 'Draw Line'
name = 'drawLine'
sceneEventFilter(obj, event)[source]
class gsdview.qt4draw.DrawPointMode[source]

Bases: gsdview.mousemanager.MouseMode

cursor = 2
dragmode = 0
icon = ':/trolltech/styles/commonstyle/images/standardbutton-yes-128.png'
label = 'Draw Point'
name = 'drawPoint'
sceneEventFilter(obj, event)[source]
class gsdview.qt4draw.DrawRectMode(parent=None)[source]

Bases: gsdview.mousemanager.MouseMode

cursor = 2
dragmode = 0
icon = ':/trolltech/styles/commonstyle/images/media-stop-32.png'
label = 'Draw Rect'
name = 'drawRect'
sceneEventFilter(obj, event)[source]
class gsdview.qt4draw.GraphicsItemGroup(parent=None, scene=None, **kargs)[source]

Bases: PyQt4.QtGui.QGraphicsItemGroup

Qt graphics item group with common style.

Type = 65637
addToGroup(item)[source]
brush()[source]
pen()[source]
setBrush(brush)[source]
setPen(pen)[source]
class gsdview.qt4draw.GraphicsPointItem(x=None, y=None, radius=None, parent=None, scene=None, **kargs)[source]

Bases: PyQt4.QtGui.QAbstractGraphicsShapeItem

Qt graphics item for point merkers.

Draw a symbol that scales its size according to the zoom level in order to keep approximatively constant size. Original size and maximum scaling factor are configurable.

Note

currently the only symbol supported is a filled circle (pen and brush are configurable).

Note

this class don’t depends on OGR so it can be moved in a module out of the gdalbackend.

Type = 65636
boundingRect()[source]
maxFactor()[source]
paint(painter, option, widget)[source]
radius()[source]
setMaxFactor(maxfact)[source]
setRadius(radius)[source]
type()[source]

Get GSDView at SourceForge.net. Fast, secure and Free Open Source software downloads

Previous topic

gsdview.pluginmanager

Next topic

gsdview.qt4support

This Page