|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
Data Structures | |
| class | ModelFrame |
| class | ModelCanvas |
| Canvas where model is drawn. More... | |
| class | ModelEvtHandler |
| Model event handler class. More... | |
| class | VariablePanel |
| class | ItemPanel |
| class | PythonPanel |
| class | GMFrame |
| Layer Manager frame with notebook widget for controlling GRASS GIS. More... | |
| class | MapFrame |
| Main frame for map display window. More... | |
| class | PsMapFrame |
| class | PsMapBufferedWindow |
| A buffered window class. More... | |
Functions | |
| def | main |
| def | getFile |
| busy.Destroy() | |
| def | OnInstructionFile |
| def | OnLoadFile |
| Load file and read instructions. | |
| def | OnPageSetup |
| Specify paper size, margins and orientation. | |
| def | OnPointer |
| def | OnPan |
| def | OnZoomIn |
| def | OnZoomOut |
| def | OnZoomAll |
| def | OnAddMap |
| Add or edit map frame. | |
| def | OnAddRaster |
| Add raster map. | |
| def | OnAddVect |
| Add vector map. | |
| def | OnAddScalebar |
| Add scalebar. | |
| def | OnAddLegend |
| Add raster or vector legend. | |
| def | OnAddMapinfo |
| def | OnAddImage |
| Show dialog for image adding and editing. | |
| def | OnAddNorthArrow |
| Show dialog for north arrow adding and editing. | |
| def | OnAddText |
| Show dialog for text adding and editing. | |
| def | OnAddPoint |
| Add point action selected. | |
| def | AddPoint |
| Add point and open property dialog. | |
| def | OnAddLine |
| Add line action selected. | |
| def | AddLine |
| Add line and open property dialog. | |
| def | OnAddRectangle |
| Add rectangle action selected. | |
| def | AddRectangle |
| Add rectangle and open property dialog. | |
| def | getModifiedTextBounds |
| computes bounding box of rotated text, not very precisely | |
| def | makePSFont |
| creates a wx.Font object from selected postscript font. | |
| def | getTextExtent |
| Estimates bounding rectangle of text. | |
| def | getInitMap |
| Create default map frame when no map is selected, needed for coordinates in map units. | |
| def | OnDelete |
| def | deleteObject |
| Deletes object, his id and redraws. | |
| def | DialogDataChanged |
| def | OnPageChanged |
| Flatnotebook page has changed. | |
| def | OnPageChanging |
| Flatnotebook page is changing. | |
| def | OnHelp |
| Show help. | |
| def | OnAbout |
| Display About window. | |
| def | OnCloseWindow |
| Close window. | |
| def | DrawImage |
| Draw preview image to pseudoDC. | |
| def | DrawPaper |
| Draw paper and margins. | |
| def | ImageRect |
| Returns image centered in canvas, computes scale. | |
| def | RedrawSelectBox |
| Redraws select box when selected object changes its size. | |
| def | UpdateMapLabel |
| Updates map frame label. | |
| def | UpdateLabel |
| def | OnSize |
| Init image size to match window size. | |
| def | OnIdle |
| Only re-render a image during idle time instead of multiple times during resizing. | |
| def | ScaleRect |
| Scale rectangle. | |
Variables | |
| haveCtypes = False | |
| tuple | im = PILImage.open(event.userData['filename']) |
| wx.BusyInfo does not display the message busy = wx.BusyInfo(message = "Generating preview, wait please", parent = self) | |
| tuple | message = _("Unable to generate preview. %s") |
| tuple | rect = self.previewCanvas.ImageRect() |
| tuple | dlg |
| dlg = MapDialog(parent = self, id = id, settings = self.instruction, notebook = notebook) dlg.ShowModal() | |
| tuple | fn = self.parent.makePSFont(textDict) |
| if textDict['border'] != 'none' and not rot: units = UnitConversion(self) borderWidth = units.convert(value = textDict['width'], fromUnit = 'point', toUnit = 'pixel' ) * self.currScale pdc.SetPen(wx.Pen(colour = convertRGB(textDict['border']), width = borderWidth)) pdc.DrawRectangle(*bounds) | |
| instruction | |
| objectId | |
| pageId | |
| mouseOld | |
| currentPage | |
| cursorOld | |
| actionOld | |
| currScale | |
| dragId | |
| _buffer | |
| resize | |
| def frame.AddLine | ( | self, | |
id = None, |
|||
coordinates = None |
|||
| ) |
Add line and open property dialog.
| id | id line id (None if creating new line) |
| coordinates | coordinates of new line |
Definition at line 691 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.AddPoint | ( | self, | |
id = None, |
|||
coordinates = None |
|||
| ) |
Add point and open property dialog.
| id | id point id (None if creating new point) |
| coordinates | coordinates of new point |
Definition at line 666 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.AddRectangle | ( | self, | |
id = None, |
|||
coordinates = None |
|||
| ) |
Add rectangle and open property dialog.
| id | id rectangle id (None if creating new rectangle) |
| coordinates | coordinates of new rectangle |
Definition at line 716 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.deleteObject | ( | self, | |
| id | |||
| ) |
Deletes object, his id and redraws.
Definition at line 851 of file psmap/frame.py.
| def frame.DialogDataChanged | ( | self, | |
| id | |||
| ) |
Definition at line 863 of file psmap/frame.py.
References gcmd.RunCommand(), utils.SetResolution(), utils.split(), dialogs.type, and dialogs.updateDialog().
| def frame.DrawImage | ( | self, | |
| rect | |||
| ) |
Draw preview image to pseudoDC.
Definition at line 2016 of file psmap/frame.py.
| def frame.DrawPaper | ( | self, | |
| rect | |||
| ) |
Draw paper and margins.
Definition at line 2033 of file psmap/frame.py.
| def frame.getFile | ( | self, | |
| wildcard | |||
| ) |
| def frame.getInitMap | ( | self | ) |
Create default map frame when no map is selected, needed for coordinates in map units.
Definition at line 812 of file psmap/frame.py.
References utils.GetMapBounds().
| def frame.getModifiedTextBounds | ( | self, | |
| x, | |||
| y, | |||
| textExtent, | |||
| rotation | |||
| ) |
computes bounding box of rotated text, not very precisely
Definition at line 736 of file psmap/frame.py.
| def frame.getTextExtent | ( | self, | |
| textDict | |||
| ) |
Estimates bounding rectangle of text.
Definition at line 798 of file psmap/frame.py.
| def frame.ImageRect | ( | self | ) |
Returns image centered in canvas, computes scale.
Definition at line 2058 of file psmap/frame.py.
| def frame.main | ( | void | ) |
Definition at line 1613 of file gmodeler/frame.py.
Referenced by ScaleRect().
| def frame.makePSFont | ( | self, | |
| textDict | |||
| ) |
creates a wx.Font object from selected postscript font.
To be used for estimating bounding rectangle of text
Definition at line 752 of file psmap/frame.py.
References utils.split().
| def frame.OnAbout | ( | self, | |
| event | |||
| ) |
Display About window.
Definition at line 1013 of file psmap/frame.py.
| def frame.OnAddImage | ( | self, | |
| event, | |||
id = None |
|||
| ) |
Show dialog for image adding and editing.
Definition at line 624 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.OnAddLegend | ( | self, | |
| event, | |||
page = 0 |
|||
| ) |
Add raster or vector legend.
Definition at line 598 of file psmap/frame.py.
Referenced by goutput.GMConsole.RunCmd().
| def frame.OnAddLine | ( | self, | |
| event | |||
| ) |
Add line action selected.
Definition at line 686 of file psmap/frame.py.
| def frame.OnAddMap | ( | self, | |
| event, | |||
notebook = False |
|||
| ) |
Add or edit map frame.
Definition at line 467 of file psmap/frame.py.
| def frame.OnAddMapinfo | ( | self, | |
| event | |||
| ) |
Definition at line 614 of file psmap/frame.py.
| def frame.OnAddNorthArrow | ( | self, | |
| event, | |||
id = None |
|||
| ) |
Show dialog for north arrow adding and editing.
Definition at line 637 of file psmap/frame.py.
| def frame.OnAddPoint | ( | self, | |
| event | |||
| ) |
Add point action selected.
Definition at line 661 of file psmap/frame.py.
| def frame.OnAddRaster | ( | self, | |
| event | |||
| ) |
Add raster map.
Definition at line 537 of file psmap/frame.py.
| def frame.OnAddRectangle | ( | self, | |
| event | |||
| ) |
Add rectangle action selected.
Definition at line 711 of file psmap/frame.py.
| def frame.OnAddScalebar | ( | self, | |
| event | |||
| ) |
| def frame.OnAddText | ( | self, | |
| event, | |||
id = None |
|||
| ) |
Show dialog for text adding and editing.
Definition at line 648 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.OnAddVect | ( | self, | |
| event | |||
| ) |
Add vector map.
Definition at line 561 of file psmap/frame.py.
| def frame.OnCloseWindow | ( | self, | |
| event | |||
| ) |
Close window.
Definition at line 1026 of file psmap/frame.py.
| def frame.OnDelete | ( | self, | |
| event | |||
| ) |
Definition at line 842 of file psmap/frame.py.
| def frame.OnHelp | ( | self, | |
| event | |||
| ) |
| def frame.OnIdle | ( | self, | |
| event | |||
| ) |
Only re-render a image during idle time instead of multiple times during resizing.
Definition at line 2146 of file psmap/frame.py.
| def frame.OnInstructionFile | ( | self, | |
| event | |||
| ) |
Definition at line 375 of file psmap/frame.py.
| def frame.OnLoadFile | ( | self, | |
| event | |||
| ) |
Load file and read instructions.
Definition at line 382 of file psmap/frame.py.
| def frame.OnPageChanged | ( | self, | |
| event | |||
| ) |
Flatnotebook page has changed.
Definition at line 992 of file psmap/frame.py.
| def frame.OnPageChanging | ( | self, | |
| event | |||
| ) |
Flatnotebook page is changing.
Definition at line 997 of file psmap/frame.py.
| def frame.OnPageSetup | ( | self, | |
event = None |
|||
| ) |
Specify paper size, margins and orientation.
Definition at line 412 of file psmap/frame.py.
| def frame.OnPan | ( | self, | |
| event | |||
| ) |
Definition at line 430 of file psmap/frame.py.
| def frame.OnPointer | ( | self, | |
| event | |||
| ) |
Definition at line 424 of file psmap/frame.py.
| def frame.OnSize | ( | self, | |
| event | |||
| ) |
Init image size to match window size.
Definition at line 2137 of file psmap/frame.py.
| def frame.OnZoomAll | ( | self, | |
| event | |||
| ) |
Definition at line 448 of file psmap/frame.py.
| def frame.OnZoomIn | ( | self, | |
| event | |||
| ) |
Definition at line 436 of file psmap/frame.py.
| def frame.OnZoomOut | ( | self, | |
| event | |||
| ) |
Definition at line 442 of file psmap/frame.py.
| def frame.RedrawSelectBox | ( | self, | |
| id | |||
| ) |
Redraws select box when selected object changes its size.
Definition at line 2073 of file psmap/frame.py.
| def frame.ScaleRect | ( | self, | |
| rect, | |||
| scale | |||
| ) |
| def frame.UpdateLabel | ( | self, | |
| itype, | |||
| id | |||
| ) |
Definition at line 2130 of file psmap/frame.py.
| def frame.UpdateMapLabel | ( | self | ) |
Definition at line 2155 of file psmap/frame.py.
Definition at line 471 of file psmap/frame.py.
Definition at line 450 of file psmap/frame.py.
Definition at line 2064 of file psmap/frame.py.
Definition at line 451 of file psmap/frame.py.
| tuple frame.dlg |
dlg = MapDialog(parent = self, id = id, settings = self.instruction, notebook = notebook) dlg.ShowModal()
dlg = MainVectorDialog(self, id = id, settings = self.instruction) dlg.ShowModal()
dlg = RasterDialog(self, id = id, settings = self.instruction) dlg.ShowModal()
Definition at line 515 of file psmap/frame.py.
Definition at line 2075 of file psmap/frame.py.
| tuple frame.fn = self.parent.makePSFont(textDict) |
if textDict['border'] != 'none' and not rot: units = UnitConversion(self) borderWidth = units.convert(value = textDict['width'], fromUnit = 'point', toUnit = 'pixel' ) * self.currScale pdc.SetPen(wx.Pen(colour = convertRGB(textDict['border']), width = borderWidth)) pdc.DrawRectangle(*bounds)
Definition at line 2006 of file psmap/frame.py.
Referenced by forms.CmdPanel.OnUpdateDialog(), and Vect_net_shortest_path_coor2().
| frame.haveCtypes = False |
Definition at line 56 of file mapdisp/frame.py.
| tuple frame.im = PILImage.open(event.userData['filename']) |
wx.BusyInfo does not display the message busy = wx.BusyInfo(message = "Generating preview, wait please", parent = self)
Definition at line 316 of file psmap/frame.py.
Referenced by chouse(), chousv(), class_discont(), and hconj().
Definition at line 401 of file psmap/frame.py.
| tuple frame.message = _("Unable to generate preview. %s") |
Definition at line 324 of file psmap/frame.py.
Definition at line 449 of file psmap/frame.py.
Definition at line 402 of file psmap/frame.py.
Definition at line 403 of file psmap/frame.py.
| tuple frame.rect = self.previewCanvas.ImageRect() |
Definition at line 328 of file psmap/frame.py.
Definition at line 2157 of file psmap/frame.py.