GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Textctrl to set coordinates which to focus on. More...
Public Member Functions | |
def | __init__ |
def | ReprojectENToMap |
Reproject east, north from user defined projection. More... | |
def | OnGoTo |
Go to position. More... | |
def | GetCenterString |
Get current map center in appropriate format. More... | |
def | SetCenter |
Set current map center as item value. More... | |
def | Update |
Public Member Functions inherited from statusbar.SbItem | |
def | __init__ |
def | Show |
Invokes showing of underlying widget. More... | |
def | Hide |
def | SetValue |
def | GetValue |
def | GetPosition |
def | GetWidget |
Returns underlaying winget. More... | |
def | Update |
Called when statusbar action is activated (e.g. More... | |
Data Fields | |
name | |
label | |
widget | |
Data Fields inherited from statusbar.SbItem | |
mapFrame | |
statusbar | |
position | |
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 |
|||
) |
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(), dialogs.TextEntryDialog.GetValue(), statusbar.SbGoTo.ReprojectENToMap(), widgets.FloatSlider.SetValue(), statusbar.SbItem.SetValue(), model.ModelData.SetValue(), dialogs.TextEntryDialog.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(), model.ModelData.SetValue(), and dialogs.TextEntryDialog.SetValue().
Referenced by statusbar.SbGoTo.Update().
def statusbar.SbGoTo.Update | ( | self | ) |
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().
statusbar.SbGoTo.label |
Definition at line 550 of file statusbar.py.
Referenced by python.task.grassTask.get_description().
statusbar.SbGoTo.name |
Definition at line 549 of file statusbar.py.
Referenced by python.task.grassTask.get_cmd(), and python.task.grassTask.get_name().
statusbar.SbGoTo.widget |
Definition at line 552 of file statusbar.py.
Referenced by statusbar.SbItem.GetWidget().