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

A Buffered window extended for vector digitizer. More...

Inheritance diagram for mapwindow.VDigitWindow:
Collaboration diagram for mapwindow.VDigitWindow:

Public Member Functions

def __init__
 
def GetDisplay
 
def SetToolbar
 Set up related toolbar. More...
 
def OnKeyDown
 Key pressed. More...
 
def OnLeftDownAddLine
 Left mouse button pressed - add new feature. More...
 
def OnLeftDownEditLine
 Left mouse button pressed - edit linear feature - add new vertex. More...
 
def OnLeftDownMoveLine
 Left mouse button pressed - vector digitizer move feature/vertex, edit linear feature. More...
 
def OnLeftDownDisplayCA
 Left mouse button pressed - vector digitizer display categories or attributes action. More...
 
def OnLeftDownCopyCA
 Left mouse button pressed - vector digitizer copy categories or attributes action. More...
 
def OnLeftDownCopyLine
 Left mouse button pressed - vector digitizer copy lines action. More...
 
def OnLeftDownBulkLine
 Left mouse button pressed - vector digitizer label 3D vector lines. More...
 
def OnLeftDownUndo
 Left mouse button pressed with control key - vector digitizer undo functionality. More...
 
def OnLeftUpVarious
 Left mouse button released - vector digitizer various actions. More...
 
def OnLeftUpModifyLine
 Left mouse button released - vector digitizer split line, add/remove vertex action. More...
 
def OnLeftUpCopyLine
 Left mouse button released - vector digitizer copy feature action. More...
 
def OnLeftUpBulkLine
 Left mouse button released - vector digitizer z-bulk line action. More...
 
def OnLeftUpConnectLine
 Left mouse button released - vector digitizer connect line action. More...
 
- Public Member Functions inherited from mapwindow.BufferedWindow
def __init__
 
def Draw
 Draws map and overlay decorations. More...
 
def TextBounds
 Return text boundary data. More...
 
def OnPaint
 Draw PseudoDC's to buffered paint DC. More...
 
def OnSize
 Scale map image so that it is the same size as the Window. More...
 
def OnIdle
 Only re-render a composite map image from GRASS during idle time instead of multiple times during resizing. More...
 
def SaveToFile
 This draws the pseudo DC to a buffer that can be saved to a file. More...
 
def GetOverlay
 Converts rendered overlay files to wx.Image. More...
 
def GetImage
 Converts redered map files to wx.Image. More...
 
def UpdateMap
 Updates the canvas anytime there is a change to the underlaying images or to the geometry of the canvas. More...
 
def DrawCompRegionExtent
 Draw computational region extent in the display. More...
 
def IsInRegion
 Test if 'region' is inside of 'refRegion'. More...
 
def EraseMap
 Erase map canvas. More...
 
def DragMap
 Drag the entire map image for panning. More...
 
def DragItem
 Drag an overlay decoration item. More...
 
def MouseDraw
 Mouse box or line from 'begin' to 'end'. More...
 
def DrawLines
 Draw polyline in PseudoDC. More...
 
def DrawCross
 Draw cross in PseudoDC. More...
 
def MouseActions
 Mouse motion and button click notifier. More...
 
def OnMouseWheel
 Mouse wheel moved. More...
 
def OnDragging
 Mouse dragging. More...
 
def OnLeftDown
 Left mouse button pressed. More...
 
def OnLeftUp
 Left mouse button released. More...
 
def OnButtonDClick
 Mouse button double click. More...
 
def OnRightDown
 Right mouse button pressed. More...
 
def OnRightUp
 Right mouse button released. More...
 
def OnMiddleDown
 Middle mouse button pressed. More...
 
def OnMiddleUp
 Middle mouse button released. More...
 
def OnMouseEnter
 Mouse entered window and no mouse buttons were pressed. More...
 
def OnMouseMoving
 Motion event and no mouse buttons were pressed. More...
 
def ClearLines
 Clears temporary drawn lines from PseudoDC. More...
 
def Pixel2Cell
 Convert image coordinates to real word coordinates. More...
 
def Cell2Pixel
 Convert real word coordinates to image coordinates. More...
 
def ResizeLegend
 
def Zoom
 Calculates new region while (un)zoom/pan-ing. More...
 
def ZoomBack
 Zoom to previous extents in zoomhistory list. More...
 
def ZoomHistory
 Manages a list of last 10 zoom extents. More...
 
def ResetZoomHistory
 Reset zoom history. More...
 
def ZoomToMap
 Set display extents to match selected raster or vector map(s). More...
 
def ZoomToWind
 Set display geometry to match computational region settings (set with g.region) More...
 
def ZoomToDefault
 Set display geometry to match default region settings. More...
 
def GoTo
 
def DisplayToWind
 Set computational region (WIND file) to match display extents. More...
 
def ZoomToSaved
 Set display geometry to match extents in saved region file. More...
 
def SaveRegion
 Save display extents/compulational region to named region file. More...
 
def Distance
 Calculete distance. More...
 
- Public Member Functions inherited from mapwindow.MapWindow
def __init__
 
def RegisterMouseEventHandler
 Binds event handler. More...
 
def UnregisterMouseEventHandler
 Unbinds event handler a restores previous state. More...
 
def Pixel2Cell
 
def Cell2Pixel
 
def OnMotion
 Tracks mouse motion and update statusbar. More...
 
def GetLastEN
 Returns last coordinates of mouse cursor. More...
 
def GetLayerByName
 Get layer from layer tree by nam. More...
 
def GetSelectedLayer
 Get selected layer from layer tree. More...
 

Data Fields

 pdcVector
 
 toolbar
 
 digit
 
 redrawAll
 
 moveInfo
 
 pen
 
 polypen
 
 copyCatsList
 
 copyCatsIds
 
 copyIds
 
 layerTmp
 
 polycoords
 
- Data Fields inherited from mapwindow.BufferedWindow
 resize
 
 dragimg
 
 pen
 
 polypen
 
 polycoords
 
 lineid
 
 plineid
 
 processMouse
 
 mapfile
 
 img
 
 overlays
 
 imagedict
 
 select
 
 textdict
 
 currtxtid
 
 zoomhistory
 
 currzoom
 
 zoomtype
 
 hitradius
 
 dialogOffset
 
 redrawAll
 self.OnSize(None) More...
 
 dragid
 
 lastpos
 
 pdc
 
 pdcVector
 
 pdcDec
 
 pdcTmp
 
 bufferLast
 
 buffer
 self.Map.AlignExtentFromDisplay() More...
 
 regionCoords
 
 idlist
 
- Data Fields inherited from mapwindow.MapWindow
 parent
 
 Map
 
 tree
 
 lmgr
 
 mouse
 
 lastEN
 

Detailed Description

A Buffered window extended for vector digitizer.

Definition at line 28 of file vdigit/mapwindow.py.

Constructor & Destructor Documentation

def mapwindow.VDigitWindow.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  Map = None,
  tree = None,
  lmgr = None,
  style = wx.NO_FULL_REPAINT_ON_RESIZE,
  kwargs 
)

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

Member Function Documentation

def mapwindow.VDigitWindow.GetDisplay (   self)
def mapwindow.VDigitWindow.OnKeyDown (   self,
  event 
)
def mapwindow.VDigitWindow.OnLeftDownBulkLine (   self,
  event 
)

Left mouse button pressed - vector digitizer label 3D vector lines.

Definition at line 406 of file vdigit/mapwindow.py.

References mapwindow.BufferedWindow.polycoords.

Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().

def mapwindow.VDigitWindow.OnLeftDownCopyCA (   self,
  event 
)

Left mouse button pressed - vector digitizer copy categories or attributes action.

Definition at line 388 of file vdigit/mapwindow.py.

Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().

def mapwindow.VDigitWindow.OnLeftDownCopyLine (   self,
  event 
)

Left mouse button pressed - vector digitizer copy lines action.

Definition at line 398 of file vdigit/mapwindow.py.

Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().

def mapwindow.VDigitWindow.OnLeftDownDisplayCA (   self,
  event 
)

Left mouse button pressed - vector digitizer display categories or attributes action.

Definition at line 304 of file vdigit/mapwindow.py.

References mapwindow.BufferedWindow.dialogOffset, mapwindow.MapWindow.mouse, mapwindow.MapWindow.Pixel2Cell(), forms.UpdateDialog(), and mapwindow.BufferedWindow.UpdateMap().

Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().

def mapwindow.VDigitWindow.OnLeftDownEditLine (   self,
  event 
)
def mapwindow.VDigitWindow.OnLeftDownMoveLine (   self,
  event 
)

Left mouse button pressed - vector digitizer move feature/vertex, edit linear feature.

Definition at line 286 of file vdigit/mapwindow.py.

Referenced by mapwindow.VDigitWindow.OnLeftDownUndo().

def mapwindow.VDigitWindow.OnLeftUpBulkLine (   self,
  event 
)

Left mouse button released - vector digitizer z-bulk line action.

Definition at line 756 of file vdigit/mapwindow.py.

References mapwindow.BufferedWindow.DrawLines(), mapwindow.BufferedWindow.pdcTmp, mapwindow.BufferedWindow.polycoords, and mapwindow.BufferedWindow.UpdateMap().

Referenced by mapwindow.VDigitWindow.OnLeftUpConnectLine().

def mapwindow.VDigitWindow.OnLeftUpCopyLine (   self,
  event 
)
def mapwindow.VDigitWindow.OnLeftUpModifyLine (   self,
  event 
)
def mapwindow.VDigitWindow.SetToolbar (   self,
  toolbar 
)

Field Documentation

mapwindow.VDigitWindow.pdcVector

Definition at line 37 of file vdigit/mapwindow.py.

mapwindow.VDigitWindow.pen

Definition at line 300 of file vdigit/mapwindow.py.

mapwindow.VDigitWindow.polycoords

Definition at line 411 of file vdigit/mapwindow.py.

mapwindow.VDigitWindow.polypen

Definition at line 300 of file vdigit/mapwindow.py.

mapwindow.VDigitWindow.redrawAll

Definition at line 117 of file vdigit/mapwindow.py.


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