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

Toolbar for digitization. More...

Inheritance diagram for toolbars.VDigitToolbar:
Collaboration diagram for toolbars.VDigitToolbar:

Public Member Functions

def __init__
 
def OnTool
 Tool selected -> disable selected tool in map toolbar. More...
 
def OnAddPoint
 Add point to the vector map Laier. More...
 
def OnAddLine
 Add line to the vector map layer. More...
 
def OnAddBoundary
 Add boundary to the vector map layer. More...
 
def OnAddCentroid
 Add centroid to the vector map layer. More...
 
def OnAddArea
 Add area to the vector map layer. More...
 
def OnExit
 Quit digitization tool. More...
 
def OnMoveVertex
 Move line vertex. More...
 
def OnAddVertex
 Add line vertex. More...
 
def OnRemoveVertex
 Remove line vertex. More...
 
def OnEditLine
 Edit line. More...
 
def OnMoveLine
 Move line. More...
 
def OnDeleteLine
 Delete line. More...
 
def OnDisplayCats
 Display/update categories. More...
 
def OnDisplayAttr
 Display/update attributes. More...
 
def OnUndo
 Undo previous changes. More...
 
def EnableUndo
 Enable 'Undo' in toolbar. More...
 
def OnSettings
 Show settings dialog. More...
 
def OnHelp
 Show digitizer help page in web browser. More...
 
def OnAdditionalToolMenu
 Menu for additional tools. More...
 
def OnCopy
 Copy selected features from (background) vector map. More...
 
def OnSplitLine
 Split line. More...
 
def OnCopyCats
 Copy categories. More...
 
def OnCopyAttrb
 Copy attributes. More...
 
def OnFlip
 Flip selected lines/boundaries. More...
 
def OnMerge
 Merge selected lines/boundaries. More...
 
def OnBreak
 Break selected lines/boundaries. More...
 
def OnSnap
 Snap selected features. More...
 
def OnConnect
 Connect selected lines/boundaries. More...
 
def OnQuery
 Query selected lines/boundaries. More...
 
def OnZBulk
 Z bulk-labeling selected lines/boundaries. More...
 
def OnTypeConversion
 Feature type conversion. More...
 
def OnSelectMap
 Select vector map layer for editing. More...
 
def StartEditing
 Start editing selected vector map layer. More...
 
def StopEditing
 Stop editing of selected vector map layer. More...
 
def UpdateListOfLayers
 Update list of available vector map layers. More...
 
def GetLayer
 Get selected layer for editing – MapLayer instance. More...
 
- Public Member Functions inherited from toolbars.BaseToolbar
def __init__
 
def InitToolbar
 Initialize toolbar, add tools to the toolbar. More...
 
def CreateTool
 Add tool to the toolbar. More...
 
def EnableLongHelp
 Enable/disable long help. More...
 
def OnTool
 Tool selected. More...
 
def GetAction
 Get current action info. More...
 
def SelectDefault
 Select default tool. More...
 
def FixSize
 Fix toolbar width on Windows. More...
 
def Enable
 Enable defined tool. More...
 

Data Fields

 mapcontent
 
 layerTree
 
 log
 
 digit
 
 mapLayer
 
 layers
 
 comboid
 
 settingsDialog
 
 action
 
 combo
 
- Data Fields inherited from toolbars.BaseToolbar
 parent
 
 action
 

Detailed Description

Toolbar for digitization.

Definition at line 29 of file vdigit/toolbars.py.

Constructor & Destructor Documentation

def toolbars.VDigitToolbar.__init__ (   self,
  parent,
  mapcontent,
  layerTree = None,
  log = None 
)

Definition at line 32 of file vdigit/toolbars.py.

Member Function Documentation

def toolbars.VDigitToolbar.EnableUndo (   self,
  enable = True 
)

Enable 'Undo' in toolbar.

Parameters
enableFalse for disable

Definition at line 353 of file vdigit/toolbars.py.

def toolbars.VDigitToolbar.GetLayer (   self)

Get selected layer for editing – MapLayer instance.

Definition at line 819 of file vdigit/toolbars.py.

References toolbars.VDigitToolbar.mapLayer.

def toolbars.VDigitToolbar.OnAddArea (   self,
  event 
)

Add area to the vector map layer.

Definition at line 265 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, and toolbars.GCPDisplayToolbar.action.

def toolbars.VDigitToolbar.OnAddBoundary (   self,
  event 
)

Add boundary to the vector map layer.

Definition at line 246 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, and toolbars.GCPDisplayToolbar.action.

def toolbars.VDigitToolbar.OnAddCentroid (   self,
  event 
)

Add centroid to the vector map layer.

Definition at line 257 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, and toolbars.GCPDisplayToolbar.action.

def toolbars.VDigitToolbar.OnAddLine (   self,
  event 
)

Add line to the vector map layer.

Definition at line 237 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, and toolbars.GCPDisplayToolbar.action.

def toolbars.VDigitToolbar.OnAddVertex (   self,
  event 
)
def toolbars.VDigitToolbar.OnBreak (   self,
  event 
)
def toolbars.VDigitToolbar.OnConnect (   self,
  event 
)
def toolbars.VDigitToolbar.OnCopy (   self,
  event 
)
def toolbars.VDigitToolbar.OnDeleteLine (   self,
  event 
)
def toolbars.VDigitToolbar.OnDisplayAttr (   self,
  event 
)
def toolbars.VDigitToolbar.OnDisplayCats (   self,
  event 
)
def toolbars.VDigitToolbar.OnEditLine (   self,
  event 
)
def toolbars.VDigitToolbar.OnExit (   self,
  event = None 
)
def toolbars.VDigitToolbar.OnFlip (   self,
  event 
)
def toolbars.VDigitToolbar.OnHelp (   self,
  event 
)

Show digitizer help page in web browser.

Definition at line 381 of file vdigit/toolbars.py.

def toolbars.VDigitToolbar.OnMerge (   self,
  event 
)
def toolbars.VDigitToolbar.OnMoveLine (   self,
  event 
)
def toolbars.VDigitToolbar.OnMoveVertex (   self,
  event 
)
def toolbars.VDigitToolbar.OnQuery (   self,
  event 
)
def toolbars.VDigitToolbar.OnRemoveVertex (   self,
  event 
)
def toolbars.VDigitToolbar.OnSelectMap (   self,
  event 
)

Select vector map layer for editing.

If there is a vector map layer already edited, this action is firstly terminated. The map layer is closed. After this the selected map layer activated for editing.

Definition at line 603 of file vdigit/toolbars.py.

References dialogs.CreateNewVector(), toolbars.VDigitToolbar.layers, workspace.ProcessWorkspaceFile.layers, mapwindow.GLWindow.layers, render.Map.layers, gselect.VectorDBInfo.layers, workspace.ProcessGrcFile.layers, dialogs.MapLayersDialog.layers, dialogs.VPropertiesDialog.layers, instructions.VProperties.layers, manager.LayerListCtrl.layers, toolbars.VDigitToolbar.layerTree, colorrules.ColorTable.layerTree, toolbars.VDigitToolbar.log, vclean.VectorCleaningFrame.log, mcalc_builder.MapCalcFrame.log, mapwindow.NvizThread.log, manager.VirtualAttributeList.log, wxnviz.Nviz.log, mapwindow.GLWindow.log, extensions.ExtensionTree.log, manager.AttributeManager.log, dialogs.CheckListFeature.log, frame.ModelEvtHandler.log, preferences.CheckListMapset.log, dialogs.LayersList.log, toolbars.VDigitToolbar.mapLayer, mapwindow.MapWindow.parent, menu.Menu.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, ghelp.HelpWindow.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, frame.PythonPanel.parent, preferences.CheckListMapset.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, manager.LayerBook.parent, toolbars.VDigitToolbar.StartEditing(), toolbars.VDigitToolbar.StopEditing(), and toolbars.VDigitToolbar.UpdateListOfLayers().

def toolbars.VDigitToolbar.OnSettings (   self,
  event 
)

Show settings dialog.

Definition at line 368 of file vdigit/toolbars.py.

References preferences.VDigitSettingsDialog.digit, toolbars.VDigitToolbar.digit, mapwindow.VDigitWindow.digit, dialogs.VDigitCategoryDialog.digit, mapdisplay.MapFrame.digit, mapwindow.MapWindow.parent, menu.Menu.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, goutput.CmdThread.parent, frame.ModelFrame.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, ghelp.HelpWindow.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, frame.PythonPanel.parent, preferences.CheckListMapset.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, manager.LayerBook.parent, toolbars.VDigitToolbar.settingsDialog, and toolbars.LMNvizToolbar.settingsDialog.

def toolbars.VDigitToolbar.OnTypeConversion (   self,
  event 
)

Feature type conversion.

Supported conversions:

  • point <-> centroid
  • line <-> boundary

Definition at line 585 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, toolbars.GCPDisplayToolbar.action, toolbars.VDigitToolbar.OnAddPoint(), and frame.ModelEvtHandler.OnAddPoint().

Referenced by toolbars.VDigitToolbar.OnAdditionalToolMenu().

def toolbars.VDigitToolbar.OnUndo (   self,
  event 
)

Undo previous changes.

Definition at line 347 of file vdigit/toolbars.py.

def toolbars.VDigitToolbar.OnZBulk (   self,
  event 
)

Z bulk-labeling selected lines/boundaries.

Definition at line 567 of file vdigit/toolbars.py.

References dialogs.DisplayAttributesDialog.action, toolbars.BaseToolbar.action, toolbars.GCPDisplayToolbar.action, toolbars.VDigitToolbar.OnAddPoint(), frame.ModelEvtHandler.OnAddPoint(), mapwindow.MapWindow.parent, menu.Menu.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, ghelp.HelpWindow.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, frame.PythonPanel.parent, preferences.CheckListMapset.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, and manager.LayerBook.parent.

Referenced by toolbars.VDigitToolbar.OnAdditionalToolMenu().

def toolbars.VDigitToolbar.StartEditing (   self,
  mapLayer 
)
def toolbars.VDigitToolbar.StopEditing (   self)

Stop editing of selected vector map layer.

Returns
True on success
False on failure

Definition at line 717 of file vdigit/toolbars.py.

References preferences.VDigitSettingsDialog.digit, toolbars.VDigitToolbar.digit, mapwindow.VDigitWindow.digit, dialogs.VDigitCategoryDialog.digit, mapdisplay.MapFrame.digit, toolbars.BaseToolbar.Enable(), toolbars.VDigitToolbar.mapLayer, mapwindow.MapWindow.parent, menu.Menu.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, menu.MenuTreeWindow.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, menu.MenuTree.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, ghelp.HelpWindow.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, dialogs.ImportDialog.parent, frame.PythonPanel.parent, preferences.CheckListMapset.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, manager.LayerBook.parent, and widgets.SetValue().

Referenced by toolbars.VDigitToolbar.OnExit(), toolbars.VDigitToolbar.OnSelectMap(), and toolbars.VDigitToolbar.StartEditing().

def toolbars.VDigitToolbar.UpdateListOfLayers (   self,
  updateTool = False 
)

Field Documentation

toolbars.VDigitToolbar.action

Definition at line 54 of file vdigit/toolbars.py.

toolbars.VDigitToolbar.combo

Definition at line 807 of file vdigit/toolbars.py.

toolbars.VDigitToolbar.comboid

Definition at line 44 of file vdigit/toolbars.py.

Referenced by toolbars.VDigitToolbar.UpdateListOfLayers().

toolbars.VDigitToolbar.layerTree

Definition at line 34 of file vdigit/toolbars.py.

Referenced by toolbars.VDigitToolbar.OnSelectMap().

toolbars.VDigitToolbar.log

Definition at line 35 of file vdigit/toolbars.py.

Referenced by toolbars.VDigitToolbar.OnSelectMap().

toolbars.VDigitToolbar.mapcontent

Definition at line 33 of file vdigit/toolbars.py.

toolbars.VDigitToolbar.settingsDialog

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