|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
Textctrl to set coordinates which to focus on. More...


Public Member Functions | |
| def | __init__ |
| def | ReprojectENToMap |
| Reproject east, north from user defined projection. | |
| def | OnGoTo |
| Go to position. | |
| def | GetCenterString |
| Get current map center in appropriate format. | |
| def | SetCenter |
| Set current map center as item value. | |
| def | Update |
| Called when statusbar action is activated (e.g. | |
Data Fields | |
| name | |
| label | |
| widget | |
Textctrl to set coordinates which to focus on.
Requires MapFrame.GetWindow, MapWindow.GoTo method.
Definition at line 541 of file statusbar.py.
| def statusbar.SbGoTo.__init__ | ( | self, | |
| mapframe, | |||
| statusbar, | |||
position = 0 |
|||
| ) |
| mapframe | instance of class with MapFrame interface |
| statusbar | statusbar instance (wx.Statusbar) |
| position | item position in statusbar |
Reimplemented from statusbar.SbItem.
Definition at line 547 of file statusbar.py.
| def statusbar.SbGoTo.GetCenterString | ( | self, | |
| map | |||
| ) |
Get current map center in appropriate format.
Definition at line 624 of file statusbar.py.
References utils.Deg2DMS(), and utils.ReprojectCoordinates().
Referenced by statusbar.SbGoTo.SetCenter().
| def statusbar.SbGoTo.OnGoTo | ( | self, | |
| event | |||
| ) |
Go to position.
Definition at line 597 of file statusbar.py.
References utils.Deg2DMS(), widgets.FloatSlider.GetValue(), statusbar.SbItem.GetValue(), model.ModelData.GetValue(), gselect.ElementSelect.GetValue(), statusbar.SbGoTo.ReprojectENToMap(), widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), model.ModelData.SetValue(), and utils.split().
| def statusbar.SbGoTo.ReprojectENToMap | ( | self, | |
| e, | |||
| n, | |||
| useDefinedProjection | |||
| ) |
Reproject east, north from user defined projection.
| e,n | coordinate (for DMS string, else float or string) |
| useDefinedProjection | projection defined by user in settings dialog |
| SbException | if useDefinedProjection is True and projection is not defined in UserSettings |
Definition at line 560 of file statusbar.py.
References utils.DMS2Deg(), utils.ReprojectCoordinates(), gcmd.RunCommand(), and utils.split().
Referenced by statusbar.SbGoTo.OnGoTo().
| def statusbar.SbGoTo.SetCenter | ( | self | ) |
Set current map center as item value.
Definition at line 658 of file statusbar.py.
References statusbar.SbGoTo.GetCenterString(), widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), and model.ModelData.SetValue().
Referenced by statusbar.SbGoTo.Update().
| def statusbar.SbGoTo.Update | ( | self | ) |
Called when statusbar action is activated (e.g.
through wx.Choice).
Reimplemented from statusbar.SbItem.
Definition at line 663 of file statusbar.py.
References statusbar.SbGoTo.SetCenter(), and statusbar.SbItem.Show().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), and mapwindow.BufferedWindow.TextBounds().
Definition at line 550 of file statusbar.py.
Referenced by python.task.grassTask.get_description().
Definition at line 549 of file statusbar.py.
Referenced by python.task.grassTask.get_cmd(), and python.task.grassTask.get_name().
Definition at line 552 of file statusbar.py.
Referenced by statusbar.SbItem.GetWidget().