GRASS Programmer's Manual
6.4.2(2012)
|
Main frame for map display window. More...
Public Member Functions | |
def | __init__ |
Main map display window with toolbars, statusbar and DrawWindow. | |
def | AddToolbar |
Add defined toolbar to the window. | |
def | RemoveToolbar |
Removes defined toolbar from the window. | |
def | OnUpdateProgress |
Update progress bar info. | |
def | OnFocus |
def | OnDraw |
Re-display current map composition. | |
def | OnRender |
Re-render map composition (each map layer) | |
def | OnPointer |
Pointer button clicked. | |
def | OnZoomIn |
def | OnZoomOut |
def | OnZoomBack |
def | OnPan |
def | OnErase |
def | OnZoomRegion |
def | OnAlignRegion |
def | OnToggleRender |
Enable/disable auto-rendering. | |
def | IsAutoRendered |
Check if auto-rendering is enabled. | |
def | OnToggleShowRegion |
Show/Hide extent in map canvas. | |
def | OnToggleResolution |
def | OnToggleStatus |
def | OnChangeMapScale |
def | OnGoTo |
def | StatusbarUpdate |
Update statusbar content. | |
def | StatusbarEnableLongHelp |
Enable/disable toolbars long help. | |
def | StatusbarReposition |
Reposition checkbox in statusbar. | |
def | SaveToFile |
Save map to image. | |
def | PrintMenu |
def | OnCloseWindow |
Window closed. | |
def | GetRender |
Returns current instance of render.Map() | |
def | GetWindow |
Get map window. | |
def | OnNvizQuerySurface |
Query current surface in 3D view mode. | |
def | OnNvizQueryVector |
Query current vector in 3D view mode. | |
def | QueryMap |
Query raster or vector map layers by r/v.what. | |
def | QueryVector |
Query vector map layer features. | |
def | OnQuery |
Query tools menu. | |
def | AddTmpVectorMapLayer |
Add temporal vector map layer to map composition. | |
def | OnAnalyze |
Analysis tools menu. | |
def | OnMeasure |
Init measurement routine that calculates map distance along transect drawn on map display. | |
def | MeasureDist |
Calculate map distance from screen distance and print to output window. | |
def | Profile |
Init profile canvas and tools. | |
def | FormatDist |
Format length numbers and units in a nice way, as a function of length. | |
def | Histogram |
Init histogram display canvas and tools. | |
def | OnDecoration |
Decorations overlay menu. | |
def | OnAddBarscale |
Handler for scale/arrow map decoration menu selection. | |
def | OnAddLegend |
Handler for legend map decoration menu selection. | |
def | OnAddText |
Handler for text decoration menu selection. | |
def | GetOptData |
Callback method for decoration overlay command generated by dialog created in menuform.py. | |
def | OnZoomToMap |
Set display extents to match selected raster (including NULLs) or vector map. | |
def | OnZoomToRaster |
Set display extents to match selected raster map (ignore NULLs) | |
def | OnZoomToWind |
Set display geometry to match computational region settings (set with g.region) | |
def | OnZoomToDefault |
Set display geometry to match default region settings. | |
def | OnZoomToSaved |
Set display geometry to match extents in saved region file. | |
def | OnDisplayToWind |
Set computational region (WIND file) to match display extents. | |
def | SaveDisplayRegion |
Save display extents to named region file. | |
def | OnZoomMenu |
Popup Zoom menu. | |
def | SetProperties |
Set properies of map display window. | |
def | IsStandalone |
Check if Map display is standalone. | |
def | GetLayerManager |
Get reference to Layer Manager. |
Data Fields | |
Map | |
tree | |
page | |
layerbook | |
parent | |
cursors | |
iconsize | |
toolbars | |
statusbar | |
statusbarWin | |
MapWindow2D | |
MapWindow | |
MapWindowVDigit | |
MapWindow3D | |
printopt | |
dialogs | |
decorationDialog | |
height | |
mapScaleValue | |
ppm | |
screen X region problem user should specify ppm | |
tmpreg | |
totaldist | |
profile | |
histogram |
Main frame for map display window.
Drawing takes place in child double buffered drawing window.
Definition at line 77 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.__init__ | ( | self, | |
parent = None , |
|||
id = wx.ID_ANY , |
|||
title = _("GRASS GIS - Map display") , |
|||
style = wx.DEFAULT_FRAME_STYLE , |
|||
toolbars = ["map"] , |
|||
tree = None , |
|||
notebook = None , |
|||
lmgr = None , |
|||
page = None , |
|||
Map = None , |
|||
auimgr = None , |
|||
kwargs | |||
) |
Main map display window with toolbars, statusbar and DrawWindow.
toolbars | array of activated toolbars, e.g. ['map', 'digit'] |
tree | reference to layer tree |
notebook | control book ID in Layer Manager |
lmgr | Layer Manager |
page | notebook page with layer tree |
Map | instance of render.Map |
auimgs | AUI manager |
kwargs | wx.Frame attribures |
Definition at line 84 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, and gui_modules.mapdisp.MapFrame._layerManager.
def gui_modules.mapdisp.MapFrame.AddTmpVectorMapLayer | ( | self, | |
name, | |||
cats, | |||
useId = False , |
|||
addLayer = True |
|||
) |
Add temporal vector map layer to map composition.
name | name of map layer |
useId | use feature id instead of category |
Definition at line 1467 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.QueryVector().
def gui_modules.mapdisp.MapFrame.AddToolbar | ( | self, | |
name | |||
) |
Add defined toolbar to the window.
Currently known toolbars are:
Definition at line 421 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame._addToolbarNviz(), gui_modules.mapdisp.MapFrame._addToolbarVDigit(), gui_modules.histogram.BufferedWindow.Map, gui_modules.layertree.LayerTree.Map, gui_modules.colorrules.ColorTable.Map, gui_modules.gcpmapdisp.MapFrame.Map, gui_modules.mapdisp.MapFrame.Map, gui_modules.gcpmanager.GCPWizard.Map, gui_modules.histogram.HistFrame.Map, gui_modules.colorrules.BufferedWindow.Map, gui_modules.gcpmanager.GCP.Map, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.FormatDist | ( | self, | |
dist | |||
) |
Format length numbers and units in a nice way, as a function of length.
From code by Hamish Bowman Grass Development Team 2006
Definition at line 1647 of file mapdisp.py.
References round.
Referenced by gui_modules.mapdisp.MapFrame.MeasureDist().
def gui_modules.mapdisp.MapFrame.GetLayerManager | ( | self | ) |
Get reference to Layer Manager.
Definition at line 1945 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, and gui_modules.mapdisp.MapFrame._layerManager.
def gui_modules.mapdisp.MapFrame.GetOptData | ( | self, | |
dcmd, | |||
type, | |||
params, | |||
propwin | |||
) |
Callback method for decoration overlay command generated by dialog created in menuform.py.
Definition at line 1844 of file mapdisp.py.
References python.task.grassTask.params, gui_modules.histogram.HistFrame.params, gui_modules.gmodeler.ModelParamDialog.params, and gui_modules.histogram.HistFrame.propwin.
def gui_modules.mapdisp.MapFrame.GetRender | ( | self | ) |
Returns current instance of render.Map()
Definition at line 1210 of file mapdisp.py.
References gui_modules.histogram.BufferedWindow.Map, gui_modules.layertree.LayerTree.Map, gui_modules.colorrules.ColorTable.Map, gui_modules.gcpmapdisp.MapFrame.Map, gui_modules.mapdisp.MapFrame.Map, gui_modules.gcpmanager.GCPWizard.Map, gui_modules.histogram.HistFrame.Map, gui_modules.colorrules.BufferedWindow.Map, and gui_modules.gcpmanager.GCP.Map.
def gui_modules.mapdisp.MapFrame.GetWindow | ( | self | ) |
Get map window.
Definition at line 1215 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.MapWindow, gui_modules.gcpmapdisp.MapFrame.MapWindow, and gui_modules.gcpmanager.GCP.MapWindow.
Referenced by gui_modules.psmap_dialogs.TCValidator.Validate(), and gui_modules.menuform.FloatValidator.Validate().
def gui_modules.mapdisp.MapFrame.Histogram | ( | self, | |
event | |||
) |
Init histogram display canvas and tools.
Definition at line 1697 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnAnalyze().
def gui_modules.mapdisp.MapFrame.IsAutoRendered | ( | self | ) |
Check if auto-rendering is enabled.
Definition at line 702 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.IsStandalone | ( | self | ) |
Check if Map display is standalone.
Definition at line 1938 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, and gui_modules.mapdisp.MapFrame._layerManager.
Referenced by gui_modules.mapdisp.MapFrame.OnQuery(), and gui_modules.mapdisp.MapFrame.QueryMap().
def gui_modules.mapdisp.MapFrame.MeasureDist | ( | self, | |
beginpt, | |||
endpt | |||
) |
Calculate map distance from screen distance and print to output window.
Definition at line 1593 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.FormatDist(), gui_modules.mapdisp.MapFrame.FormatDist(), round, and gui_modules.mapdisp.MapFrame.totaldist.
def gui_modules.mapdisp.MapFrame.OnAddBarscale | ( | self, | |
event | |||
) |
Handler for scale/arrow map decoration menu selection.
Definition at line 1738 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.dialogs, and gui_modules.gcpmapdisp.MapFrame.dialogs.
Referenced by gui_modules.mapdisp.MapFrame.OnDecoration().
def gui_modules.mapdisp.MapFrame.OnAddLegend | ( | self, | |
event | |||
) |
Handler for legend map decoration menu selection.
Definition at line 1770 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.dialogs, and gui_modules.gcpmapdisp.MapFrame.dialogs.
Referenced by gui_modules.mapdisp.MapFrame.OnDecoration().
def gui_modules.mapdisp.MapFrame.OnAddText | ( | self, | |
event | |||
) |
Handler for text decoration menu selection.
Definition at line 1800 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.dialogs, and gui_modules.gcpmapdisp.MapFrame.dialogs.
Referenced by gui_modules.mapdisp.MapFrame.OnDecoration().
def gui_modules.mapdisp.MapFrame.OnAlignRegion | ( | self, | |
event | |||
) |
Align region
Definition at line 686 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnAnalyze | ( | self, | |
event | |||
) |
Analysis tools menu.
Definition at line 1521 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.Histogram(), gui_modules.gcpmapdisp.MapFrame.iconsize, gui_modules.mapdisp.MapFrame.iconsize, gui_modules.mapdisp.MapFrame.OnMeasure(), and gui_modules.mapdisp.MapFrame.Profile().
def gui_modules.mapdisp.MapFrame.OnChangeMapScale | ( | self, | |
event | |||
) |
Map scale changed by user
Definition at line 734 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.mapScaleValue, gui_modules.mapdisp.MapFrame.mapScaleValue, gui_modules.gcpmapdisp.MapFrame.ppm, gui_modules.mapdisp.MapFrame.ppm, gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnCloseWindow | ( | self, | |
event | |||
) |
Window closed.
Also close associated layer tree page
Definition at line 1187 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, gui_modules.mapdisp.MapFrame._layerManager, gui_modules.gcpmapdisp.MapFrame.page, gui_modules.location_wizard.TitledPage.page, gui_modules.mapdisp.MapFrame.page, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.OnDecoration | ( | self, | |
event | |||
) |
Decorations overlay menu.
Definition at line 1710 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.iconsize, gui_modules.mapdisp.MapFrame.iconsize, gui_modules.mapdisp.MapFrame.OnAddBarscale(), gui_modules.mapdisp.MapFrame.OnAddLegend(), and gui_modules.mapdisp.MapFrame.OnAddText().
def gui_modules.mapdisp.MapFrame.OnDisplayToWind | ( | self, | |
event | |||
) |
Set computational region (WIND file) to match display extents.
Definition at line 1883 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.OnDraw | ( | self, | |
event | |||
) |
Re-display current map composition.
Definition at line 551 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnErase | ( | self, | |
event | |||
) |
Erase the canvas
Definition at line 671 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnFocus | ( | self, | |
event | |||
) |
Change choicebook page to match display. Or set display for georectifying
Definition at line 532 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, gui_modules.mapdisp.MapFrame._layerManager, gui_modules.gcpmapdisp.MapFrame.OnPointer(), gui_modules.mapdisp.MapFrame.OnPointer(), gui_modules.gcpmapdisp.MapFrame.page, gui_modules.location_wizard.TitledPage.page, and gui_modules.mapdisp.MapFrame.page.
def gui_modules.mapdisp.MapFrame.OnGoTo | ( | self, | |
event | |||
) |
Go to position
Definition at line 763 of file mapdisp.py.
References gui_modules.render.map, gui_modules.utils.split(), gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnMeasure | ( | self, | |
event | |||
) |
Init measurement routine that calculates map distance along transect drawn on map display.
Definition at line 1549 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnAnalyze().
def gui_modules.mapdisp.MapFrame.OnNvizQuerySurface | ( | self, | |
event | |||
) |
Query current surface in 3D view mode.
Definition at line 1219 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
Referenced by gui_modules.mapdisp.MapFrame.OnQuery().
def gui_modules.mapdisp.MapFrame.OnNvizQueryVector | ( | self, | |
event | |||
) |
Query current vector in 3D view mode.
Definition at line 1230 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
Referenced by gui_modules.mapdisp.MapFrame.OnQuery().
def gui_modules.mapdisp.MapFrame.OnPan | ( | self, | |
event | |||
) |
Panning, set mouse to drag
Definition at line 656 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.cursors, gui_modules.mapdisp.MapFrame.cursors, gui_modules.gmodeler.ModelFrame.cursors, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.OnPointer | ( | self, | |
event | |||
) |
Pointer button clicked.
Definition at line 581 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame._layerManager, gui_modules.mapdisp.MapFrame._layerManager, gui_modules.gcpmapdisp.MapFrame.cursors, gui_modules.mapdisp.MapFrame.cursors, gui_modules.gmodeler.ModelFrame.cursors, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
Referenced by gui_modules.mapdisp.MapFrame.OnFocus().
def gui_modules.mapdisp.MapFrame.OnQuery | ( | self, | |
event | |||
) |
Query tools menu.
Definition at line 1428 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.cursors, gui_modules.mapdisp.MapFrame.cursors, gui_modules.gmodeler.ModelFrame.cursors, gui_modules.gcpmapdisp.MapFrame.IsStandalone(), gui_modules.mapdisp.MapFrame.IsStandalone(), gui_modules.mapdisp.MapFrame.OnNvizQuerySurface(), gui_modules.mapdisp.MapFrame.OnNvizQueryVector(), gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
Referenced by gui_modules.toolbars.VDigitToolbar.OnAdditionalToolMenu().
def gui_modules.mapdisp.MapFrame.OnRender | ( | self, | |
event | |||
) |
Re-render map composition (each map layer)
Definition at line 556 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.StatusbarUpdate(), gui_modules.mapdisp.MapFrame.StatusbarUpdate(), gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
Referenced by gui_modules.mapdisp.MapFrame.OnToggleRender(), gui_modules.mapdisp.MapFrame.OnToggleResolution(), and gui_modules.mapdisp.MapFrame.OnToggleShowRegion().
def gui_modules.mapdisp.MapFrame.OnToggleRender | ( | self, | |
event | |||
) |
Enable/disable auto-rendering.
Definition at line 696 of file mapdisp.py.
References gui_modules.histogram.HistFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.OnRender(), gui_modules.mapdisp.MapFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnToggleResolution | ( | self, | |
event | |||
) |
Use resolution of computation region settings for redering image instead of display resolution
Definition at line 719 of file mapdisp.py.
References gui_modules.histogram.HistFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.OnRender(), gui_modules.mapdisp.MapFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnToggleShowRegion | ( | self, | |
event | |||
) |
Show/Hide extent in map canvas.
Definition at line 706 of file mapdisp.py.
References gui_modules.histogram.HistFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.OnRender(), gui_modules.mapdisp.MapFrame.OnRender(), gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnToggleStatus | ( | self, | |
event | |||
) |
Toggle status text
Definition at line 728 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.StatusbarUpdate(), and gui_modules.mapdisp.MapFrame.StatusbarUpdate().
def gui_modules.mapdisp.MapFrame.OnUpdateProgress | ( | self, | |
event | |||
) |
Update progress bar info.
Definition at line 525 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.OnZoomBack | ( | self, | |
event | |||
) |
Zoom last (previously stored position)
Definition at line 650 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnZoomIn | ( | self, | |
event | |||
) |
Zoom in the map. Set mouse cursor, zoombox attributes, and zoom direction
Definition at line 616 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.cursors, gui_modules.mapdisp.MapFrame.cursors, gui_modules.gmodeler.ModelFrame.cursors, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.OnZoomMenu | ( | self, | |
event | |||
) |
Popup Zoom menu.
Definition at line 1894 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.OnDisplayToWind(), gui_modules.mapdisp.MapFrame.OnDisplayToWind(), gui_modules.gcpmapdisp.MapFrame.OnZoomToDefault(), gui_modules.mapdisp.MapFrame.OnZoomToDefault(), gui_modules.gcpmapdisp.MapFrame.OnZoomToSaved(), gui_modules.mapdisp.MapFrame.OnZoomToSaved(), gui_modules.gcpmapdisp.MapFrame.OnZoomToWind(), gui_modules.mapdisp.MapFrame.OnZoomToWind(), gui_modules.gcpmapdisp.MapFrame.SaveDisplayRegion(), gui_modules.mapdisp.MapFrame.SaveDisplayRegion(), and gui_modules.mapdisp.MapFrame.SetProperties().
def gui_modules.mapdisp.MapFrame.OnZoomOut | ( | self, | |
event | |||
) |
Zoom out the map. Set mouse cursor, zoombox attributes, and zoom direction
Definition at line 633 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.cursors, gui_modules.mapdisp.MapFrame.cursors, gui_modules.gmodeler.ModelFrame.cursors, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.OnZoomRegion | ( | self, | |
event | |||
) |
Zoom to region
Definition at line 677 of file mapdisp.py.
References gui_modules.nviz_mapdisp.GLWindow.UpdateMap(), and gui_modules.mapdisp_window.BufferedWindow.UpdateMap().
def gui_modules.mapdisp.MapFrame.OnZoomToDefault | ( | self, | |
event | |||
) |
Set display geometry to match default region settings.
Definition at line 1872 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.OnZoomToMap | ( | self, | |
event | |||
) |
Set display extents to match selected raster (including NULLs) or vector map.
Definition at line 1855 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnZoomToRaster | ( | self, | |
event | |||
) |
Set display extents to match selected raster map (ignore NULLs)
Definition at line 1861 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.OnZoomToSaved | ( | self, | |
event | |||
) |
Set display geometry to match extents in saved region file.
Definition at line 1877 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.OnZoomToWind | ( | self, | |
event | |||
) |
Set display geometry to match computational region settings (set with g.region)
Definition at line 1866 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.PrintMenu | ( | self, | |
event | |||
) |
Print options and output menu for map display
Definition at line 1163 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.Profile | ( | self, | |
event | |||
) |
Init profile canvas and tools.
Definition at line 1631 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnAnalyze().
def gui_modules.mapdisp.MapFrame.QueryMap | ( | self, | |
x, | |||
y | |||
) |
Query raster or vector map layers by r/v.what.
x,y | coordinates |
Definition at line 1241 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.IsStandalone(), and gui_modules.mapdisp.MapFrame.IsStandalone().
def gui_modules.mapdisp.MapFrame.QueryVector | ( | self, | |
x, | |||
y | |||
) |
Query vector map layer features.
Attribute data of selected vector object are displayed in GUI dialog. Data can be modified (On Submit)
Definition at line 1350 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.AddTmpVectorMapLayer(), gui_modules.mapdisp.MapFrame.dialogs, gui_modules.gcpmapdisp.MapFrame.dialogs, gui_modules.mapdisp.MapFrame.MapWindow, gui_modules.gcpmapdisp.MapFrame.MapWindow, gui_modules.gcpmanager.GCP.MapWindow, and gui_modules.menuform.UpdateDialog().
def gui_modules.mapdisp.MapFrame.RemoveToolbar | ( | self, | |
name | |||
) |
Removes defined toolbar from the window.
Definition at line 465 of file mapdisp.py.
References gui_modules.mapdisp.MapFrame.MapWindow, gui_modules.gcpmapdisp.MapFrame.MapWindow, gui_modules.gcpmanager.GCP.MapWindow, gui_modules.mapdisp.MapFrame.MapWindow2D, gui_modules.mapdisp.MapFrame.MapWindow3D, gui_modules.mapdisp.MapFrame.MapWindowVDigit, gui_modules.gcpmapdisp.MapFrame.statusbarWin, gui_modules.mapdisp.MapFrame.statusbarWin, gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.SaveDisplayRegion | ( | self, | |
event | |||
) |
Save display extents to named region file.
Definition at line 1889 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.SaveToFile | ( | self, | |
event | |||
) |
Save map to image.
Definition at line 1115 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.toolbars, and gui_modules.mapdisp.MapFrame.toolbars.
def gui_modules.mapdisp.MapFrame.SetProperties | ( | self, | |
render = False , |
|||
mode = 0 , |
|||
showCompExtent = False , |
|||
constrainRes = False , |
|||
projection = False |
|||
) |
Set properies of map display window.
Definition at line 1927 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.StatusbarUpdate(), gui_modules.mapdisp.MapFrame.StatusbarUpdate(), gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
Referenced by gui_modules.mapdisp.MapFrame.OnZoomMenu().
def gui_modules.mapdisp.MapFrame.StatusbarEnableLongHelp | ( | self, | |
enable = True |
|||
) |
Enable/disable toolbars long help.
Definition at line 1073 of file mapdisp.py.
def gui_modules.mapdisp.MapFrame.StatusbarReposition | ( | self | ) |
Reposition checkbox in statusbar.
Definition at line 1079 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
def gui_modules.mapdisp.MapFrame.StatusbarUpdate | ( | self | ) |
Update statusbar content.
Definition at line 844 of file mapdisp.py.
References gui_modules.gcpmapdisp.MapFrame.statusbarWin, and gui_modules.mapdisp.MapFrame.statusbarWin.
Referenced by gui_modules.gcpmanager.GCP.AddGCP(), gui_modules.gcpmanager.GCP.AdjustMap(), gui_modules.gcpmanager.GCP.DeleteGCP(), gui_modules.mapdisp.MapFrame.OnRender(), gui_modules.mapdisp.MapFrame.OnToggleStatus(), gui_modules.mapdisp.MapFrame.SetProperties(), and gui_modules.gcpmanager.GCP.UpdateActive().
gui_modules.mapdisp.MapFrame.cursors |
Definition at line 109 of file mapdisp.py.
Referenced by gui_modules.psmap.PsMapBufferedWindow.OnMouse(), gui_modules.mapdisp.MapFrame.OnPan(), gui_modules.mapdisp.MapFrame.OnPointer(), gui_modules.mapdisp.MapFrame.OnQuery(), gui_modules.mapdisp.MapFrame.OnZoomIn(), and gui_modules.mapdisp.MapFrame.OnZoomOut().
gui_modules.mapdisp.MapFrame.decorationDialog |
Definition at line 288 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.dialogs |
Definition at line 282 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnAddBarscale(), gui_modules.mapdisp.MapFrame.OnAddLegend(), gui_modules.mapdisp.MapFrame.OnAddText(), wxgui.GMFrame.OnPreferences(), wxgui.GMFrame.OnShowAttributeTable(), and gui_modules.mapdisp.MapFrame.QueryVector().
gui_modules.mapdisp.MapFrame.height |
gui_modules.mapdisp.MapFrame.histogram |
Definition at line 1700 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.iconsize |
Definition at line 123 of file mapdisp.py.
Referenced by wxgui.GMFrame.OnAboutGRASS(), gui_modules.mapdisp.MapFrame.OnAnalyze(), and gui_modules.mapdisp.MapFrame.OnDecoration().
gui_modules.mapdisp.MapFrame.layerbook |
Definition at line 101 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.Map |
Definition at line 98 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.AddToolbar(), gui_modules.mapdisp.MapFrame.GetRender(), and gui_modules.mapdisp_window.BufferedWindow.OnMouseEnter().
gui_modules.mapdisp.MapFrame.mapScaleValue |
Definition at line 852 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnChangeMapScale().
gui_modules.mapdisp.MapFrame.MapWindow |
Definition at line 238 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.GetWindow(), gui_modules.mapdisp.MapFrame.QueryVector(), and gui_modules.mapdisp.MapFrame.RemoveToolbar().
gui_modules.mapdisp.MapFrame.MapWindow2D |
Definition at line 235 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.RemoveToolbar().
gui_modules.mapdisp.MapFrame.MapWindow3D |
Definition at line 243 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.RemoveToolbar().
gui_modules.mapdisp.MapFrame.MapWindowVDigit |
Definition at line 241 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.RemoveToolbar().
gui_modules.mapdisp.MapFrame.page |
Definition at line 100 of file mapdisp.py.
Referenced by gui_modules.nviz_tools.NvizToolWindow.GselectOnPopup(), gui_modules.mapdisp.MapFrame.OnCloseWindow(), gui_modules.mapdisp.MapFrame.OnFocus(), gui_modules.nviz_preferences.NvizPreferencesDialog.OnSave(), gui_modules.nviz_tools.NvizPreferencesDialog.OnSave(), gui_modules.nviz_tools.NvizToolWindow.PostViewEvent(), and gui_modules.nviz_tools.NvizToolWindow.SetPage().
gui_modules.mapdisp.MapFrame.parent |
Definition at line 102 of file mapdisp.py.
Referenced by gui_modules.wxvdigit.VDigitError.Database(), gui_modules.wxvdigit.VDigitError.DbExecute(), gui_modules.wxvdigit.VDigitError.DbLink(), gui_modules.wxvdigit.VDigitError.DeadLine(), gui_modules.wxvdigit.VDigitError.Driver(), gui_modules.wxvdigit.VDigitError.FeatureType(), gui_modules.wxvdigit.VDigitError.NoMap(), gui_modules.menuform.mainFrame.OnCancel(), gui_modules.menuform.mainFrame.OnDone(), wxgui.GMFrame.OnPsMap(), gui_modules.menuform.mainFrame.OnRun(), gui_modules.toolbars.VDigitToolbar.OnSelectMap(), gui_modules.toolbars.VDigitToolbar.OnSettings(), gui_modules.toolbars.NvizToolbar.OnSettings(), gui_modules.toolbars.AbstractToolbar.OnTool(), gui_modules.menuform.cmdPanel.OnUpdateSelection(), gui_modules.toolbars.VDigitToolbar.OnZBulk(), gui_modules.wxvdigit.VDigitError.ReadLine(), gui_modules.menuform.UpdateQThread.run(), gui_modules.toolbars.VDigitToolbar.StopEditing(), gui_modules.mapdisp_window.BufferedWindow.UpdateMap(), and gui_modules.wxvdigit.VDigitError.WriteLine().
gui_modules.mapdisp.MapFrame.ppm |
screen X region problem user should specify ppm
Definition at line 852 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.OnChangeMapScale().
gui_modules.mapdisp.MapFrame.printopt |
Definition at line 269 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.profile |
Definition at line 1639 of file mapdisp.py.
Referenced by gui_modules.profile.ProfileFrame.DrawPlot(), and gui_modules.profile.ProfileFrame.OnPText().
gui_modules.mapdisp.MapFrame.statusbar |
Definition at line 146 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.statusbarWin |
Definition at line 148 of file mapdisp.py.
Referenced by gui_modules.gcpmanager.GCP.AddGCP(), gui_modules.gcpmanager.GCP.DeleteGCP(), gui_modules.mapdisp.MapFrame.IsAutoRendered(), gui_modules.mapdisp.MapFrame.OnChangeMapScale(), gui_modules.mapdisp.MapFrame.OnGoTo(), gui_modules.mapdisp.MapFrame.OnToggleRender(), gui_modules.mapdisp.MapFrame.OnToggleResolution(), gui_modules.mapdisp.MapFrame.OnToggleShowRegion(), gui_modules.mapdisp.MapFrame.OnUpdateProgress(), gui_modules.mapdisp.MapFrame.RemoveToolbar(), gui_modules.mapdisp.MapFrame.SetProperties(), gui_modules.mapdisp.MapFrame.StatusbarReposition(), and gui_modules.mapdisp.MapFrame.StatusbarUpdate().
gui_modules.mapdisp.MapFrame.tmpreg |
Definition at line 1287 of file mapdisp.py.
gui_modules.mapdisp.MapFrame.toolbars |
Definition at line 135 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.AddToolbar(), gui_modules.mapdisp.MapFrame.OnCloseWindow(), gui_modules.gcpmanager.GCP.OnDispResize(), gui_modules.mapdisp.MapFrame.OnNvizQuerySurface(), gui_modules.mapdisp.MapFrame.OnNvizQueryVector(), gui_modules.mapdisp.MapFrame.OnPan(), gui_modules.mapdisp.MapFrame.OnPointer(), gui_modules.mapdisp.MapFrame.OnQuery(), gui_modules.mapdisp.MapFrame.OnRender(), gui_modules.mapdisp.MapFrame.OnZoomIn(), gui_modules.mapdisp.MapFrame.OnZoomOut(), gui_modules.mapdisp.MapFrame.RemoveToolbar(), gui_modules.mapdisp.MapFrame.SaveToFile(), and gui_modules.gcpmanager.GCP.UpdateActive().
gui_modules.mapdisp.MapFrame.totaldist |
Definition at line 1553 of file mapdisp.py.
Referenced by gui_modules.mapdisp.MapFrame.MeasureDist().
gui_modules.mapdisp.MapFrame.tree |
Definition at line 99 of file mapdisp.py.
Referenced by gui_modules.mapdisp_window.MapWindow.GetLayerByName(), gui_modules.mapdisp_window.MapWindow.GetSelectedLayer(), gui_modules.nviz_mapdisp.GLWindow.LoadDataLayers(), gui_modules.nviz_mapdisp.GLWindow.UnloadDataLayers(), and gui_modules.mapdisp_window.BufferedWindow.UpdateMap().