GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
statusbar.SbGoTo Class Reference

Textctrl to set coordinates which to focus on. More...

Inheritance diagram for statusbar.SbGoTo:
Collaboration diagram for statusbar.SbGoTo:

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
 

Detailed Description

Textctrl to set coordinates which to focus on.

Requires MapFrame.GetWindow, MapWindow.GoTo method.

Definition at line 541 of file statusbar.py.

Constructor & Destructor Documentation

def statusbar.SbGoTo.__init__ (   self,
  mapframe,
  statusbar,
  position = 0 
)

Definition at line 547 of file statusbar.py.

Member Function Documentation

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.ReprojectENToMap (   self,
  e,
  n,
  useDefinedProjection 
)

Reproject east, north from user defined projection.

Parameters
e,ncoordinate (for DMS string, else float or string)
useDefinedProjectionprojection defined by user in settings dialog
Exceptions
SbExceptionif 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)

Field Documentation

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().


The documentation for this class was generated from the following file: