|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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 | OnAddRaster |
| Add raster map. More... | |
| def | OnAddVect |
| Add vector map. More... | |
| def | OnAddScalebar |
| Add scalebar. More... | |
| def | OnAddLegend |
| Add raster or vector legend. More... | |
| def | OnAddMapinfo |
| def | OnAddImage |
| Show dialog for image adding and editing. More... | |
| def | OnAddNorthArrow |
| Show dialog for north arrow adding and editing. More... | |
| def | OnAddText |
| Show dialog for text adding and editing. More... | |
| def | OnAddPoint |
| Add point action selected. More... | |
| def | AddPoint |
| Add point and open property dialog. More... | |
| def | OnAddLine |
| Add line action selected. More... | |
| def | AddLine |
| Add line and open property dialog. More... | |
| def | OnAddRectangle |
| Add rectangle action selected. More... | |
| def | AddRectangle |
| Add rectangle and open property dialog. More... | |
| def | getModifiedTextBounds |
| computes bounding box of rotated text, not very precisely More... | |
| def | makePSFont |
| creates a wx.Font object from selected postscript font. More... | |
| def | getTextExtent |
| Estimates bounding rectangle of text. More... | |
| def | getInitMap |
| Create default map frame when no map is selected, needed for coordinates in map units. More... | |
| def | OnDelete |
| def | deleteObject |
| Deletes object, his id and redraws. More... | |
| def | DialogDataChanged |
| def | OnPageChanged |
| Flatnotebook page has changed. More... | |
| def | OnPageChanging |
| Flatnotebook page is changing. More... | |
| def | OnHelp |
| Show help. More... | |
| def | OnAbout |
| Display About window. More... | |
| def | OnCloseWindow |
| Close window. More... | |
| def | DrawImage |
| Draw preview image to pseudoDC. More... | |
| def | DrawPaper |
| Draw paper and margins. More... | |
| def | ImageRect |
| Returns image centered in canvas, computes scale. More... | |
| def | RedrawSelectBox |
| Redraws select box when selected object changes its size. More... | |
| def | UpdateMapLabel |
| Updates map frame label. More... | |
| def | UpdateLabel |
| def | OnSize |
| Init image size to match window size. More... | |
| def | OnIdle |
| Only re-render a image during idle time instead of multiple times during resizing. More... | |
| def | ScaleRect |
| Scale rectangle. More... | |
Variables | |
| haveCtypes = False | |
| tuple | dlg |
| dlg = MapDialog(parent = self, id = id, settings = self.instruction, notebook = notebook) dlg.ShowModal() More... | |
| 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) More... | |
| currentPage | |
| 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 723 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 698 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 748 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.deleteObject | ( | self, | |
| id | |||
| ) |
Deletes object, his id and redraws.
Definition at line 883 of file psmap/frame.py.
| def frame.DialogDataChanged | ( | self, | |
| id | |||
| ) |
Definition at line 895 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 2069 of file psmap/frame.py.
| def frame.DrawPaper | ( | self, | |
| rect | |||
| ) |
Draw paper and margins.
Definition at line 2086 of file psmap/frame.py.
| def frame.getInitMap | ( | self | ) |
Create default map frame when no map is selected, needed for coordinates in map units.
Definition at line 844 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 768 of file psmap/frame.py.
| def frame.getTextExtent | ( | self, | |
| textDict | |||
| ) |
Estimates bounding rectangle of text.
Definition at line 830 of file psmap/frame.py.
| def frame.ImageRect | ( | self | ) |
Returns image centered in canvas, computes scale.
Definition at line 2111 of file psmap/frame.py.
| def frame.main | ( | void | ) |
Definition at line 1658 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 784 of file psmap/frame.py.
References utils.split().
| def frame.OnAbout | ( | self, | |
| event | |||
| ) |
Display About window.
Definition at line 1050 of file psmap/frame.py.
| def frame.OnAddImage | ( | self, | |
| event, | |||
id = None |
|||
| ) |
Show dialog for image adding and editing.
Definition at line 656 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.OnAddLegend | ( | self, | |
| event, | |||
page = 0 |
|||
| ) |
Add raster or vector legend.
Definition at line 630 of file psmap/frame.py.
| def frame.OnAddLine | ( | self, | |
| event | |||
| ) |
Add line action selected.
Definition at line 718 of file psmap/frame.py.
| def frame.OnAddMapinfo | ( | self, | |
| event | |||
| ) |
Definition at line 646 of file psmap/frame.py.
| def frame.OnAddNorthArrow | ( | self, | |
| event, | |||
id = None |
|||
| ) |
Show dialog for north arrow adding and editing.
Definition at line 669 of file psmap/frame.py.
| def frame.OnAddPoint | ( | self, | |
| event | |||
| ) |
Add point action selected.
Definition at line 693 of file psmap/frame.py.
| def frame.OnAddRaster | ( | self, | |
| event | |||
| ) |
Add raster map.
Definition at line 569 of file psmap/frame.py.
| def frame.OnAddRectangle | ( | self, | |
| event | |||
| ) |
Add rectangle action selected.
Definition at line 743 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 680 of file psmap/frame.py.
References dialogs.OnApply().
| def frame.OnAddVect | ( | self, | |
| event | |||
| ) |
Add vector map.
Definition at line 593 of file psmap/frame.py.
| def frame.OnCloseWindow | ( | self, | |
| event | |||
| ) |
Close window.
Definition at line 1063 of file psmap/frame.py.
| def frame.OnDelete | ( | self, | |
| event | |||
| ) |
Definition at line 874 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 2199 of file psmap/frame.py.
| def frame.OnPageChanged | ( | self, | |
| event | |||
| ) |
Flatnotebook page has changed.
Definition at line 1024 of file psmap/frame.py.
| def frame.OnPageChanging | ( | self, | |
| event | |||
| ) |
Flatnotebook page is changing.
Definition at line 1034 of file psmap/frame.py.
| def frame.OnSize | ( | self, | |
| event | |||
| ) |
Init image size to match window size.
Definition at line 2190 of file psmap/frame.py.
| def frame.RedrawSelectBox | ( | self, | |
| id | |||
| ) |
Redraws select box when selected object changes its size.
Definition at line 2126 of file psmap/frame.py.
| def frame.ScaleRect | ( | self, | |
| rect, | |||
| scale | |||
| ) |
| def frame.UpdateLabel | ( | self, | |
| itype, | |||
| id | |||
| ) |
Definition at line 2183 of file psmap/frame.py.
| def frame.UpdateMapLabel | ( | self | ) |
| frame._buffer |
Definition at line 2208 of file psmap/frame.py.
| frame.currentPage |
Definition at line 875 of file psmap/frame.py.
| frame.currScale |
Definition at line 2117 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 547 of file psmap/frame.py.
| frame.dragId |
Definition at line 2128 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 2056 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.
| frame.resize |
Definition at line 2210 of file psmap/frame.py.