GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
A Buffered window extended for vector digitizer. More...
Public Member Functions | |
def | __init__ |
def | GetDisplay |
def | SetToolbar |
Set up related toolbar. More... | |
def | OnKeyDown |
Key pressed. More... | |
def | OnLeftDownAddLine |
Left mouse button pressed - add new feature. More... | |
def | OnLeftDownEditLine |
Left mouse button pressed - edit linear feature - add new vertex. More... | |
def | OnLeftDownMoveLine |
Left mouse button pressed - vector digitizer move feature/vertex, edit linear feature. More... | |
def | OnLeftDownDisplayCA |
Left mouse button pressed - vector digitizer display categories or attributes action. More... | |
def | OnLeftDownCopyCA |
Left mouse button pressed - vector digitizer copy categories or attributes action. More... | |
def | OnLeftDownCopyLine |
Left mouse button pressed - vector digitizer copy lines action. More... | |
def | OnLeftDownBulkLine |
Left mouse button pressed - vector digitizer label 3D vector lines. More... | |
def | OnLeftDownUndo |
Left mouse button pressed with control key - vector digitizer undo functionality. More... | |
def | OnLeftUpVarious |
Left mouse button released - vector digitizer various actions. More... | |
def | OnLeftUpModifyLine |
Left mouse button released - vector digitizer split line, add/remove vertex action. More... | |
def | OnLeftUpCopyLine |
Left mouse button released - vector digitizer copy feature action. More... | |
def | OnLeftUpBulkLine |
Left mouse button released - vector digitizer z-bulk line action. More... | |
def | OnLeftUpConnectLine |
Left mouse button released - vector digitizer connect line action. More... | |
Public Member Functions inherited from mapwindow.BufferedWindow | |
def | __init__ |
def | Draw |
Draws map and overlay decorations. More... | |
def | TextBounds |
Return text boundary data. More... | |
def | OnPaint |
Draw PseudoDC's to buffered paint DC. More... | |
def | OnSize |
Scale map image so that it is the same size as the Window. More... | |
def | OnIdle |
Only re-render a composite map image from GRASS during idle time instead of multiple times during resizing. More... | |
def | SaveToFile |
This draws the pseudo DC to a buffer that can be saved to a file. More... | |
def | GetOverlay |
Converts rendered overlay files to wx.Image. More... | |
def | GetImage |
Converts redered map files to wx.Image. More... | |
def | UpdateMap |
Updates the canvas anytime there is a change to the underlaying images or to the geometry of the canvas. More... | |
def | DrawCompRegionExtent |
Draw computational region extent in the display. More... | |
def | IsInRegion |
Test if 'region' is inside of 'refRegion'. More... | |
def | EraseMap |
Erase map canvas. More... | |
def | DragMap |
Drag the entire map image for panning. More... | |
def | DragItem |
Drag an overlay decoration item. More... | |
def | MouseDraw |
Mouse box or line from 'begin' to 'end'. More... | |
def | DrawLines |
Draw polyline in PseudoDC. More... | |
def | DrawCross |
Draw cross in PseudoDC. More... | |
def | MouseActions |
Mouse motion and button click notifier. More... | |
def | OnMouseWheel |
Mouse wheel moved. More... | |
def | OnDragging |
Mouse dragging. More... | |
def | OnLeftDown |
Left mouse button pressed. More... | |
def | OnLeftUp |
Left mouse button released. More... | |
def | OnButtonDClick |
Mouse button double click. More... | |
def | OnRightDown |
Right mouse button pressed. More... | |
def | OnRightUp |
Right mouse button released. More... | |
def | OnMiddleDown |
Middle mouse button pressed. More... | |
def | OnMiddleUp |
Middle mouse button released. More... | |
def | OnMouseEnter |
Mouse entered window and no mouse buttons were pressed. More... | |
def | OnMouseMoving |
Motion event and no mouse buttons were pressed. More... | |
def | ClearLines |
Clears temporary drawn lines from PseudoDC. More... | |
def | Pixel2Cell |
Convert image coordinates to real word coordinates. More... | |
def | Cell2Pixel |
Convert real word coordinates to image coordinates. More... | |
def | ResizeLegend |
def | Zoom |
Calculates new region while (un)zoom/pan-ing. More... | |
def | ZoomBack |
Zoom to previous extents in zoomhistory list. More... | |
def | ZoomHistory |
Manages a list of last 10 zoom extents. More... | |
def | ResetZoomHistory |
Reset zoom history. More... | |
def | ZoomToMap |
Set display extents to match selected raster or vector map(s). More... | |
def | ZoomToWind |
Set display geometry to match computational region settings (set with g.region) More... | |
def | ZoomToDefault |
Set display geometry to match default region settings. More... | |
def | GoTo |
def | DisplayToWind |
Set computational region (WIND file) to match display extents. More... | |
def | ZoomToSaved |
Set display geometry to match extents in saved region file. More... | |
def | SaveRegion |
Save display extents/compulational region to named region file. More... | |
def | Distance |
Calculete distance. More... | |
Public Member Functions inherited from mapwindow.MapWindow | |
def | __init__ |
def | RegisterMouseEventHandler |
Binds event handler. More... | |
def | UnregisterMouseEventHandler |
Unbinds event handler a restores previous state. More... | |
def | Pixel2Cell |
def | Cell2Pixel |
def | OnMotion |
Tracks mouse motion and update statusbar. More... | |
def | GetLastEN |
Returns last coordinates of mouse cursor. More... | |
def | GetLayerByName |
Get layer from layer tree by nam. More... | |
def | GetSelectedLayer |
Get selected layer from layer tree. More... | |
Data Fields | |
pdcVector | |
toolbar | |
digit | |
redrawAll | |
moveInfo | |
pen | |
polypen | |
copyCatsList | |
copyCatsIds | |
copyIds | |
layerTmp | |
polycoords | |
Data Fields inherited from mapwindow.BufferedWindow | |
resize | |
dragimg | |
pen | |
polypen | |
polycoords | |
lineid | |
plineid | |
processMouse | |
mapfile | |
img | |
overlays | |
imagedict | |
select | |
textdict | |
currtxtid | |
zoomhistory | |
currzoom | |
zoomtype | |
hitradius | |
dialogOffset | |
redrawAll | |
self.OnSize(None) More... | |
dragid | |
lastpos | |
pdc | |
pdcVector | |
pdcDec | |
pdcTmp | |
bufferLast | |
buffer | |
self.Map.AlignExtentFromDisplay() More... | |
regionCoords | |
idlist | |
Data Fields inherited from mapwindow.MapWindow | |
parent | |
Map | |
tree | |
lmgr | |
mouse | |
lastEN | |
A Buffered window extended for vector digitizer.
Definition at line 28 of file vdigit/mapwindow.py.
def mapwindow.VDigitWindow.__init__ | ( | self, | |
parent, | |||
id = wx.ID_ANY , |
|||
Map = None , |
|||
tree = None , |
|||
lmgr = None , |
|||
style = wx.NO_FULL_REPAINT_ON_RESIZE , |
|||
kwargs | |||
) |
Definition at line 33 of file vdigit/mapwindow.py.
def mapwindow.VDigitWindow.GetDisplay | ( | self | ) |
Definition at line 43 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow.digit, dialogs.VDigitCategoryDialog.digit, and mapdisplay.MapFrame.digit.
def mapwindow.VDigitWindow.OnKeyDown | ( | self, | |
event | |||
) |
Key pressed.
Definition at line 81 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow.toolbar, frame.PsMapFrame.toolbar, frame.ModelFrame.toolbar, and histogram.HistogramFrame.toolbar.
def mapwindow.VDigitWindow.OnLeftDownAddLine | ( | self, | |
event | |||
) |
Left mouse button pressed - add new feature.
Definition at line 131 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow._geomAttrb(), mapwindow.VDigitWindow._updateATM(), mapwindow.BufferedWindow.dialogOffset, mapwindow.BufferedWindow.DrawLines(), mapwindow.MapWindow.mouse, mapwindow.BufferedWindow.pdcTmp, mapwindow.MapWindow.Pixel2Cell(), gcmd.RunCommand(), and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownBulkLine | ( | self, | |
event | |||
) |
Left mouse button pressed - vector digitizer label 3D vector lines.
Definition at line 406 of file vdigit/mapwindow.py.
References mapwindow.BufferedWindow.polycoords.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownCopyCA | ( | self, | |
event | |||
) |
Left mouse button pressed - vector digitizer copy categories or attributes action.
Definition at line 388 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownCopyLine | ( | self, | |
event | |||
) |
Left mouse button pressed - vector digitizer copy lines action.
Definition at line 398 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownDisplayCA | ( | self, | |
event | |||
) |
Left mouse button pressed - vector digitizer display categories or attributes action.
Definition at line 304 of file vdigit/mapwindow.py.
References mapwindow.BufferedWindow.dialogOffset, mapwindow.MapWindow.mouse, mapwindow.MapWindow.Pixel2Cell(), forms.UpdateDialog(), and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownEditLine | ( | self, | |
event | |||
) |
Left mouse button pressed - edit linear feature - add new vertex.
Definition at line 278 of file vdigit/mapwindow.py.
References mapwindow.BufferedWindow.DrawLines(), mapwindow.MapWindow.mouse, mapwindow.VDigitWindow.moveInfo, mapwindow.BufferedWindow.pdcTmp, and mapwindow.MapWindow.Pixel2Cell().
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownMoveLine | ( | self, | |
event | |||
) |
Left mouse button pressed - vector digitizer move feature/vertex, edit linear feature.
Definition at line 286 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().
def mapwindow.VDigitWindow.OnLeftDownUndo | ( | self, | |
event | |||
) |
Left mouse button pressed with control key - vector digitizer undo functionality.
Definition at line 423 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow.copyCatsIds, mapwindow.VDigitWindow.copyCatsList, mapwindow.VDigitWindow.copyIds, mapwindow.VDigitWindow.layerTmp, mapwindow.MapWindow.mouse, mapwindow.VDigitWindow.moveInfo, mapwindow.VDigitWindow.OnLeftDownAddLine(), mapwindow.VDigitWindow.OnLeftDownBulkLine(), mapwindow.VDigitWindow.OnLeftDownCopyCA(), mapwindow.VDigitWindow.OnLeftDownCopyLine(), mapwindow.VDigitWindow.OnLeftDownDisplayCA(), mapwindow.VDigitWindow.OnLeftDownEditLine(), mapwindow.VDigitWindow.OnLeftDownMoveLine(), mapwindow.BufferedWindow.pen, mapwindow.BufferedWindow.polycoords, mapwindow.BufferedWindow.polypen, mapwindow.BufferedWindow.redrawAll, mapwindow.VDigitWindow.toolbar, frame.PsMapFrame.toolbar, frame.ModelFrame.toolbar, histogram.HistogramFrame.toolbar, and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.BufferedWindow.OnLeftDown().
def mapwindow.VDigitWindow.OnLeftUpBulkLine | ( | self, | |
event | |||
) |
Left mouse button released - vector digitizer z-bulk line action.
Definition at line 756 of file vdigit/mapwindow.py.
References mapwindow.BufferedWindow.DrawLines(), mapwindow.BufferedWindow.pdcTmp, mapwindow.BufferedWindow.polycoords, and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().
def mapwindow.VDigitWindow.OnLeftUpConnectLine | ( | self, | |
event | |||
) |
Left mouse button released - vector digitizer connect line action.
Definition at line 772 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow._geomAttrb(), mapwindow.VDigitWindow._geomAttrbUpdate(), mapwindow.VDigitWindow._updateATM(), mapwindow.MapWindow.Cell2Pixel(), mapwindow.BufferedWindow.ClearLines(), mapwindow.VDigitWindow.copyCatsIds, mapwindow.VDigitWindow.copyCatsList, mapwindow.VDigitWindow.copyIds, mapwindow.BufferedWindow.dialogOffset, mapwindow.BufferedWindow.DrawLines(), mapwindow.VDigitWindow.layerTmp, mapwindow.MapWindow.mouse, mapwindow.BufferedWindow.MouseDraw(), mapwindow.VDigitWindow.moveInfo, mapwindow.VDigitWindow.OnLeftUpBulkLine(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), mapwindow.VDigitWindow.OnLeftUpCopyLine(), mapwindow.VDigitWindow.OnLeftUpModifyLine(), mapwindow.VDigitWindow.OnLeftUpVarious(), mapwindow.BufferedWindow.pdcTmp, mapwindow.MapWindow.Pixel2Cell(), mapwindow.BufferedWindow.polycoords, mapwindow.BufferedWindow.redrawAll, gcmd.RunCommand(), and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().
def mapwindow.VDigitWindow.OnLeftUpCopyLine | ( | self, | |
event | |||
) |
Left mouse button released - vector digitizer copy feature action.
Definition at line 709 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow.copyIds, mapwindow.VDigitWindow.layerTmp, utils.ListOfCatsToRange(), mapwindow.MapWindow.mouse, mapwindow.MapWindow.Pixel2Cell(), and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().
def mapwindow.VDigitWindow.OnLeftUpModifyLine | ( | self, | |
event | |||
) |
Left mouse button released - vector digitizer split line, add/remove vertex action.
Definition at line 677 of file vdigit/mapwindow.py.
References mapwindow.MapWindow.Cell2Pixel(), mapwindow.BufferedWindow.DrawCross(), mapwindow.MapWindow.mouse, mapwindow.BufferedWindow.pdcTmp, mapwindow.MapWindow.Pixel2Cell(), and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().
def mapwindow.VDigitWindow.OnLeftUpVarious | ( | self, | |
event | |||
) |
Left mouse button released - vector digitizer various actions.
Definition at line 550 of file vdigit/mapwindow.py.
References mapwindow.VDigitWindow.copyCatsIds, mapwindow.VDigitWindow.copyCatsList, mapwindow.BufferedWindow.dialogOffset, mapwindow.MapWindow.mouse, mapwindow.VDigitWindow.moveInfo, mapwindow.MapWindow.Pixel2Cell(), mapwindow.BufferedWindow.polycoords, and mapwindow.BufferedWindow.UpdateMap().
Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().
def mapwindow.VDigitWindow.SetToolbar | ( | self, | |
toolbar | |||
) |
Set up related toolbar.
Definition at line 48 of file vdigit/mapwindow.py.
References mapwindow.BufferedWindow.Distance(), mapwindow.BufferedWindow.polycoords, tools.range, mapwindow.VDigitWindow.toolbar, frame.PsMapFrame.toolbar, frame.ModelFrame.toolbar, and histogram.HistogramFrame.toolbar.
mapwindow.VDigitWindow.copyCatsIds |
Definition at line 395 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), and mapwindow.VDigitWindow.OnLeftUpVarious().
mapwindow.VDigitWindow.copyCatsList |
Definition at line 393 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), and mapwindow.VDigitWindow.OnLeftUpVarious().
mapwindow.VDigitWindow.copyIds |
Definition at line 403 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), and mapwindow.VDigitWindow.OnLeftUpCopyLine().
mapwindow.VDigitWindow.digit |
Definition at line 39 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.GetDisplay(), toolbars.VDigitToolbar.OnSettings(), toolbars.VDigitToolbar.OnTool(), toolbars.VDigitToolbar.StartEditing(), and toolbars.VDigitToolbar.StopEditing().
mapwindow.VDigitWindow.layerTmp |
Definition at line 404 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownUndo(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), and mapwindow.VDigitWindow.OnLeftUpCopyLine().
mapwindow.VDigitWindow.moveInfo |
Definition at line 290 of file vdigit/mapwindow.py.
Referenced by mapwindow.VDigitWindow.OnLeftDownEditLine(), mapwindow.VDigitWindow.OnLeftDownUndo(), mapwindow.VDigitWindow.OnLeftUpConnectLine(), and mapwindow.VDigitWindow.OnLeftUpVarious().
mapwindow.VDigitWindow.pdcVector |
Definition at line 37 of file vdigit/mapwindow.py.
mapwindow.VDigitWindow.pen |
Definition at line 300 of file vdigit/mapwindow.py.
mapwindow.VDigitWindow.polycoords |
Definition at line 411 of file vdigit/mapwindow.py.
mapwindow.VDigitWindow.polypen |
Definition at line 300 of file vdigit/mapwindow.py.
mapwindow.VDigitWindow.redrawAll |
Definition at line 117 of file vdigit/mapwindow.py.
mapwindow.VDigitWindow.toolbar |
Definition at line 38 of file vdigit/mapwindow.py.
Referenced by mapwindow.BufferedWindow.OnDragging(), mapwindow.VDigitWindow.OnKeyDown(), mapwindow.VDigitWindow.OnLeftDownUndo(), and mapwindow.VDigitWindow.SetToolbar().