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

OpenGL canvas for Map Display Window. More...

Inheritance diagram for mapwindow.GLWindow:
Collaboration diagram for mapwindow.GLWindow:

Public Member Functions

def __init__
 
def InitFly
 Initialize fly through dictionary. More...
 
def OnTimerFly
 Fly event was emitted, move the scene. More...
 
def ComputeMxMy
 Compute values for flythrough navigation (ComputeFlyValues should follow). More...
 
def ComputeFlyValues
 Compute parameters for fly-through navigation. More...
 
def ChangeFlySpeed
 Increase/decrease flight spped. More...
 
def __del__
 Stop timers if running, unload data. More...
 
def StopTimer
 Stop timer if running. More...
 
def InitCPlanes
 Initialize cutting planes list. More...
 
def SetToolWin
 Sets reference to nviz toolwindow in layer manager. More...
 
def GetToolWin
 Returns reference to nviz toolwindow in layer manager. More...
 
def OnClose
 
def OnEraseBackground
 
def OnSize
 
def OnPaint
 
def DoPaint
 
def DrawImages
 Draw overlay image. More...
 
def GetLegendRect
 Estimates legend size for dragging. More...
 
def DrawTextImage
 Draw overlay text. More...
 
def UpdateOverlays
 Converts rendered overlay files and text labels to wx.Image and then to textures so that they can be rendered by OpenGL. More...
 
def CreateTexture
 Create texture from overlay image or from textdict. More...
 
def FindObjects
 
def OnTimerAnim
 
def GetAnimation
 
def OnKeyDown
 Key was pressed. More...
 
def ProcessFlyByArrows
 Process arrow key during fly-through. More...
 
def OnKeyUp
 Key was released. More...
 
def OnMouseAction
 Handle mouse events. More...
 
def OnMouseWheel
 Change perspective. More...
 
def OnLeftDown
 On left mouse down. More...
 
def OnDragging
 
def Pixel2Cell
 Convert image coordinates to real word coordinates. More...
 
def DoZoom
 Change perspective and focus. More...
 
def OnLeftUp
 
def OnDClick
 On mouse double click. More...
 
def FocusPanning
 Simulation of panning using focus. More...
 
def HorizontalPanning
 Move all layers in horizontal (x, y) direction. More...
 
def DragItem
 Drag an overlay decoration item. More...
 
def ZoomBack
 Set previous view in history list. More...
 
def ViewHistory
 Manages a list of last 10 views. More...
 
def ResetViewHistory
 Reset view history. More...
 
def GoTo
 Focus on given point. More...
 
def QuerySurface
 Query surface on given position. More...
 
def PostViewEvent
 Change view settings. More...
 
def OnQueryVector
 Query vector on given position. More...
 
def ChangeInnerView
 Get current viewdir and viewpoint and set view. More...
 
def OnUpdateView
 Change view settings. More...
 
def UpdateView
 Change view settings. More...
 
def UpdateLight
 Change light settings. More...
 
def UpdateMap
 Updates the canvas anytime there is a change to the underlaying images or to the geometry of the canvas. More...
 
def EraseMap
 Erase the canvas. More...
 
def SetDrawArrow
 
def SetDrawScalebar
 Add scale bar, sets properties and draw. More...
 
def IsLoaded
 Check if layer (item) is already loaded. More...
 
def LoadDataLayers
 Load raster/vector from current layer tree. More...
 
def UnloadDataLayers
 Unload any layers that have been deleted from layer tree. More...
 
def SetVectorSurface
 Set reference surfaces of vector. More...
 
def SetVectorFromCmd
 Set 3D view properties from cmd (d.vect) More...
 
def SetMapObjProperties
 Set map object properties. More...
 
def LoadRaster
 Load 2d raster map and set surface attributes. More...
 
def LoadRaster3d
 Load 3d raster map and set surface attributes. More...
 
def NewConstant
 Create new constant. More...
 
def AddConstant
 Add new constant. More...
 
def DeleteConstant
 Delete constant layer. More...
 
def SelectCPlane
 Select cutting plane. More...
 
def OnUpdateCPlane
 Change cutting plane settings. More...
 
def UpdateCPlane
 Change cutting plane settings. More...
 
def UnloadRaster
 Unload 2d raster map. More...
 
def UnloadRaster3d
 Unload 3d raster map. More...
 
def LoadVector
 Load 2D or 3D vector map overlay. More...
 
def UnloadVector
 Unload vector map overlay. More...
 
def ResetView
 Reset to default view. More...
 
def UpdateMapObjProperties
 Generic method to update data layer properties. More...
 
def UpdateConstantProperties
 Update surface map object properties. More...
 
def UpdateSurfaceProperties
 Update surface map object properties. More...
 
def UpdateVolumeProperties
 Update volume (isosurface/slice) map object properties. More...
 
def UpdateVectorProperties
 Update vector layer properties. More...
 
def UpdateVectorLinesProperties
 Update vector line map object properties. More...
 
def UpdateVectorPointsProperties
 Update vector point map object properties. More...
 
def GetLayerNames
 Return list of map layer names of given type. More...
 
def GetLayerId
 Get layer object id or -1. More...
 
def ReloadLayersData
 Delete nviz data of all loaded layers and reload them from current settings. More...
 
def NvizCmdCommand
 Generate command for m.nviz.image according to current state. More...
 
def OnNvizCmd
 Generate and write command to command output. More...
 
def SaveToFile
 This draws the DC to a buffer that can be saved to a file. More...
 
def GetDisplay
 Get display instance. More...
 
def ZoomToMap
 Reset view. More...
 
def TextBounds
 Return text boundary data. 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

 parent
 
 init
 
 initView
 
 context
 
 render
 
 mouse
 
 cursors
 
 layers
 
 constants
 
 baseId
 
 cplanes
 
 qpoints
 
 viewhistory
 
 saveHistory
 
 dialogOffset
 
 overlays
 
 imagelist
 
 overlay
 
 textdict
 
 dragid
 
 hitradius
 
 toolWin
 
 log
 
 nvizThread
 
 img
 
 size
 
 nvizDefault
 
 view
 
 iview
 
 light
 
 decoration
 
 fly
 
 timerFly
 
 timerAnim
 
 animation
 
 resize
 
- Data Fields inherited from mapwindow.MapWindow
 parent
 
 Map
 
 tree
 
 lmgr
 
 mouse
 
 lastEN
 

Detailed Description

OpenGL canvas for Map Display Window.

Definition at line 72 of file nviz/mapwindow.py.

Constructor & Destructor Documentation

def mapwindow.GLWindow.__init__ (   self,
  parent,
  id = wx.ID_ANY,
  Map = None,
  tree = None,
  lmgr = None 
)

Definition at line 75 of file nviz/mapwindow.py.

def mapwindow.GLWindow.__del__ (   self)

Member Function Documentation

def mapwindow.GLWindow.AddConstant (   self,
  data,
  name 
)

Add new constant.

Definition at line 1571 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.NewConstant().

def mapwindow.GLWindow.ChangeFlySpeed (   self,
  increase 
)

Increase/decrease flight spped.

Definition at line 298 of file nviz/mapwindow.py.

References mapwindow.GLWindow.fly.

Referenced by mapwindow.GLWindow.OnKeyDown(), and mapwindow.GLWindow.OnMouseWheel().

def mapwindow.GLWindow.ChangeInnerView (   self)

Get current viewdir and viewpoint and set view.

Definition at line 1086 of file nviz/mapwindow.py.

References mapwindow.GLWindow.iview, and mapwindow.GLWindow.view.

Referenced by mapwindow.GLWindow.OnTimerFly().

def mapwindow.GLWindow.ComputeFlyValues (   self,
  mx,
  my 
)

Compute parameters for fly-through navigation.

mx,my results from ComputeMxMy method

Definition at line 283 of file nviz/mapwindow.py.

References mapwindow.GLWindow.fly.

Referenced by mapwindow.GLWindow.OnTimerFly().

def mapwindow.GLWindow.ComputeMxMy (   self,
  x,
  y 
)

Compute values for flythrough navigation (ComputeFlyValues should follow).

Based on visualization/nviz/src/togl_flythrough.c.

Parameters
x,yscreen coordinates

Definition at line 248 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.OnTimerFly().

def mapwindow.GLWindow.CreateTexture (   self,
  overlay = None,
  textId = None 
)
def mapwindow.GLWindow.DeleteConstant (   self,
  index 
)

Delete constant layer.

Definition at line 1579 of file nviz/mapwindow.py.

References mapwindow.GLWindow.constants.

def mapwindow.GLWindow.DoZoom (   self,
  zoomtype,
  pos 
)
def mapwindow.GLWindow.DragItem (   self,
  id,
  event 
)
def mapwindow.GLWindow.DrawImages (   self)

Draw overlay image.

Definition at line 420 of file nviz/mapwindow.py.

References mapwindow.GLWindow.imagelist.

def mapwindow.GLWindow.DrawTextImage (   self,
  textDict,
  relCoords 
)

Draw overlay text.

Definition at line 447 of file nviz/mapwindow.py.

References mapwindow.GLWindow.view.

Referenced by mapwindow.GLWindow.CreateTexture().

def mapwindow.GLWindow.EraseMap (   self)

Erase the canvas.

Definition at line 1202 of file nviz/mapwindow.py.

def mapwindow.GLWindow.FindObjects (   self,
  mouseX,
  mouseY,
  radius 
)
Find object which was clicked on

Definition at line 552 of file nviz/mapwindow.py.

References mapwindow.GLWindow.imagelist.

Referenced by mapwindow.GLWindow.OnDClick(), and mapwindow.GLWindow.OnLeftDown().

def mapwindow.GLWindow.FocusPanning (   self,
  event 
)
def mapwindow.GLWindow.GetAnimation (   self)

Definition at line 562 of file nviz/mapwindow.py.

References mapwindow.GLWindow.animation.

def mapwindow.GLWindow.GetDisplay (   self)

Get display instance.

Definition at line 2512 of file nviz/mapwindow.py.

References mapwindow.NvizThread._display, and mapwindow.GLWindow._display.

def mapwindow.GLWindow.GetLegendRect (   self)

Estimates legend size for dragging.

Definition at line 426 of file nviz/mapwindow.py.

References mapwindow.BufferedWindow.overlays, mapwindow.GLWindow.overlays, render.Map.overlays, and utils.split().

Referenced by mapwindow.GLWindow.CreateTexture().

def mapwindow.GLWindow.GetToolWin (   self)

Returns reference to nviz toolwindow in layer manager.

Definition at line 331 of file nviz/mapwindow.py.

References mapwindow.GLWindow.toolWin.

def mapwindow.GLWindow.InitCPlanes (   self)

Initialize cutting planes list.

Definition at line 320 of file nviz/mapwindow.py.

References tools.range.

def mapwindow.GLWindow.InitFly (   self)

Initialize fly through dictionary.

Definition at line 213 of file nviz/mapwindow.py.

def mapwindow.GLWindow.IsLoaded (   self,
  item 
)

Check if layer (item) is already loaded.

Parameters
itemlayer item

Definition at line 1248 of file nviz/mapwindow.py.

References mapwindow.GLWindow._GetDataLayers().

def mapwindow.GLWindow.LoadRaster (   self,
  item 
)

Load 2d raster map and set surface attributes.

Parameters
layeritem

Definition at line 1494 of file nviz/mapwindow.py.

References mapwindow.GLWindow._loadRaster().

Referenced by mapwindow.GLWindow.LoadDataLayers().

def mapwindow.GLWindow.LoadRaster3d (   self,
  item 
)
def mapwindow.GLWindow.LoadVector (   self,
  item,
  points = None,
  append = True 
)

Load 2D or 3D vector map overlay.

Parameters
itemlayer item
pointsTrue to load points, False to load lines, None to load both
appendappend vector to layer list

Definition at line 1682 of file nviz/mapwindow.py.

References mapwindow.GLWindow.baseId, mapwindow.MapWindow.GetSelectedLayer(), mapwindow.MapWindow.lmgr, workspace.WriteWorkspaceFile.lmgr, and mapwindow.GLWindow.SetMapObjProperties().

Referenced by mapwindow.GLWindow.LoadDataLayers().

def mapwindow.GLWindow.NewConstant (   self)
def mapwindow.GLWindow.OnClose (   self,
  event 
)
def mapwindow.GLWindow.OnDClick (   self,
  event 
)
def mapwindow.GLWindow.OnEraseBackground (   self,
  event 
)

Definition at line 341 of file nviz/mapwindow.py.

def mapwindow.GLWindow.OnKeyUp (   self,
  event 
)

Key was released.

Used for fly-through mode.

Definition at line 624 of file nviz/mapwindow.py.

References mapwindow.GLWindow.fly, and mapwindow.MapWindow.mouse.

def mapwindow.GLWindow.OnLeftUp (   self,
  event 
)

Definition at line 800 of file nviz/mapwindow.py.

References mapdisp.MapFrameBase.cursors, frame.ModelFrame.cursors, mapwindow.GLWindow.cursors, mapwindow.GLWindow.DoZoom(), mapwindow.BufferedWindow.dragid, mapwindow.GLWindow.dragid, mapwindow.GLWindow.fly, mapwindow.MapWindow.GetSelectedLayer(), mapwindow.GLWindow.iview, mapwindow.MapWindow.mouse, mapwindow.BufferedWindow.overlays, mapwindow.GLWindow.overlays, render.Map.overlays, mapwindow.MapWindow.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, manager.VirtualAttributeList.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.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, 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, histogram.BufferedWindow.render, mapwindow.GLWindow.render, colorrules.BufferedWindow.render, manager.GCPList.render, mapwindow.GLWindow.saveHistory, widgets.SetValue(), mapwindow.GLWindow.StopTimer(), mapwindow.BufferedWindow.textdict, mapwindow.GLWindow.textdict, mapwindow.GLWindow.timerFly, and mapwindow.BufferedWindow.zoomtype.

Referenced by frame.PsMapBufferedWindow.MouseActions(), and mapwindow.GLWindow.OnMouseAction().

def mapwindow.GLWindow.OnMouseWheel (   self,
  event 
)
def mapwindow.GLWindow.OnNvizCmd (   self)

Generate and write command to command output.

Definition at line 2488 of file nviz/mapwindow.py.

References mapwindow.GLWindow.NvizCmdCommand().

def mapwindow.GLWindow.OnPaint (   self,
  event 
)
def mapwindow.GLWindow.OnQueryVector (   self,
  event 
)

Query vector on given position.

Definition at line 1082 of file nviz/mapwindow.py.

def mapwindow.GLWindow.OnSize (   self,
  event 
)
def mapwindow.GLWindow.OnTimerAnim (   self,
  event 
)

Definition at line 559 of file nviz/mapwindow.py.

def mapwindow.GLWindow.OnUpdateCPlane (   self,
  event 
)

Change cutting plane settings.

Definition at line 1599 of file nviz/mapwindow.py.

References mapwindow.GLWindow.UpdateCPlane().

def mapwindow.GLWindow.OnUpdateView (   self,
  event 
)
def mapwindow.GLWindow.Pixel2Cell (   self,
  x,
  y 
)

Convert image coordinates to real word coordinates.

Parameters
x,yimage coordinates
Returns
easting, northing
None on error

Definition at line 751 of file nviz/mapwindow.py.

def mapwindow.GLWindow.PostViewEvent (   self,
  zExag = False 
)
def mapwindow.GLWindow.ProcessFlyByArrows (   self,
  keyCode 
)

Process arrow key during fly-through.

Definition at line 612 of file nviz/mapwindow.py.

References mapwindow.GLWindow.fly.

Referenced by mapwindow.GLWindow.OnKeyDown().

def mapwindow.GLWindow.ReloadLayersData (   self)
def mapwindow.GLWindow.ResetView (   self)

Reset to default view.

Definition at line 1783 of file nviz/mapwindow.py.

References mapwindow.GLWindow.iview, mapwindow.GLWindow.PostViewEvent(), round, and mapwindow.GLWindow.view.

Referenced by mapwindow.GLWindow.DoPaint().

def mapwindow.GLWindow.ResetViewHistory (   self)

Reset view history.

Definition at line 1015 of file nviz/mapwindow.py.

References mapwindow.GLWindow.viewhistory.

def mapwindow.GLWindow.SaveToFile (   self,
  FileName,
  FileType,
  width,
  height 
)

This draws the DC to a buffer that can be saved to a file.

Todo:
fix BufferedPaintDC
Parameters
FileNamefile name
FileTypetype of bitmap
widthimage width
heightimage height

Definition at line 2492 of file nviz/mapwindow.py.

def mapwindow.GLWindow.SelectCPlane (   self,
  index 
)

Select cutting plane.

Definition at line 1585 of file nviz/mapwindow.py.

References mapwindow.GLWindow.cplanes.

def mapwindow.GLWindow.SetDrawArrow (   self,
  pos 
)

Definition at line 1216 of file nviz/mapwindow.py.

References mapwindow.GLWindow.decoration.

Referenced by mapwindow.GLWindow.OnLeftDown().

def mapwindow.GLWindow.SetDrawScalebar (   self,
  pos 
)

Add scale bar, sets properties and draw.

Definition at line 1228 of file nviz/mapwindow.py.

References mapwindow.GLWindow._getDecorationSize(), and mapwindow.GLWindow.decoration.

Referenced by mapwindow.GLWindow.OnLeftDown().

def mapwindow.GLWindow.SetMapObjProperties (   self,
  item,
  id,
  nvizType 
)

Set map object properties.

Properties must be afterwards updated by UpdateMapObjProperties().

Parameters
itemlayer item
idnviz layer id (or -1)
nvizTypenviz data type (surface, points, vector)

Definition at line 1411 of file nviz/mapwindow.py.

References mapwindow.GLWindow.constants, tools.range, mapwindow.GLWindow.SetVectorFromCmd(), mapwindow.GLWindow.SetVectorSurface(), and dialogs.type.

Referenced by mapwindow.GLWindow.LoadRaster3d(), mapwindow.GLWindow.LoadVector(), and mapwindow.GLWindow.NewConstant().

def mapwindow.GLWindow.SetToolWin (   self,
  toolWin 
)

Sets reference to nviz toolwindow in layer manager.

Definition at line 327 of file nviz/mapwindow.py.

References mapwindow.GLWindow.toolWin.

def mapwindow.GLWindow.SetVectorFromCmd (   self,
  item,
  data 
)

Set 3D view properties from cmd (d.vect)

Parameters
itemLayer Tree item
nvizdata

Definition at line 1393 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.SetMapObjProperties().

def mapwindow.GLWindow.SetVectorSurface (   self,
  data 
)

Set reference surfaces of vector.

Definition at line 1384 of file nviz/mapwindow.py.

References mapwindow.GLWindow.GetLayerNames().

Referenced by mapwindow.GLWindow.SetMapObjProperties().

def mapwindow.GLWindow.StopTimer (   self,
  timer 
)
def mapwindow.GLWindow.TextBounds (   self,
  textinfo 
)

Return text boundary data.

Parameters
textinfotext metadata (text, font, color, rotation)

Definition at line 2521 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.CreateTexture().

def mapwindow.GLWindow.UnloadRaster (   self,
  item 
)

Unload 2d raster map.

Parameters
layeritem

Definition at line 1616 of file nviz/mapwindow.py.

References mapwindow.GLWindow._unloadRaster().

Referenced by mapwindow.GLWindow.UnloadDataLayers().

def mapwindow.GLWindow.UnloadRaster3d (   self,
  item 
)
def mapwindow.GLWindow.UnloadVector (   self,
  item,
  points = None,
  remove = True 
)

Unload vector map overlay.

Parameters
itemlayer item
points,linesTrue to unload given feature type
removeremove layer from list

Definition at line 1737 of file nviz/mapwindow.py.

References workspace.ProcessWorkspaceFile.layers, mapwindow.GLWindow.layers, render.Map.layers, gselect.VectorDBInfo.layers, workspace.ProcessGrcFile.layers, dialogs.MapLayersDialog.layers, and manager.LayerListCtrl.layers.

Referenced by mapwindow.GLWindow.UnloadDataLayers().

def mapwindow.GLWindow.UpdateConstantProperties (   self,
  id,
  data 
)

Update surface map object properties.

Definition at line 1861 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.UpdateMapObjProperties().

def mapwindow.GLWindow.UpdateCPlane (   self,
  index,
  changes 
)

Change cutting plane settings.

Definition at line 1603 of file nviz/mapwindow.py.

References mapwindow.GLWindow.cplanes.

Referenced by mapwindow.GLWindow.OnUpdateCPlane().

def mapwindow.GLWindow.UpdateLight (   self,
  event 
)

Change light settings.

Definition at line 1132 of file nviz/mapwindow.py.

References mapwindow.GLWindow.light.

def mapwindow.GLWindow.UpdateMap (   self,
  render = True 
)

Updates the canvas anytime there is a change to the underlaying images or to the geometry of the canvas.

Parameters
renderre-render map composition

Definition at line 1143 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.DoPaint(), mapdisplay.MapFrame.OnZoomRegion(), and frame.MapFrame.OnZoomRegion().

def mapwindow.GLWindow.UpdateMapObjProperties (   self,
  event 
)
def mapwindow.GLWindow.UpdateOverlays (   self)

Converts rendered overlay files and text labels to wx.Image and then to textures so that they can be rendered by OpenGL.

Updates self.imagelist

Definition at line 474 of file nviz/mapwindow.py.

References mapwindow.GLWindow.CreateTexture(), mapwindow.GLWindow.imagelist, mapwindow.BufferedWindow.overlays, mapwindow.GLWindow.overlays, render.Map.overlays, mapwindow.BufferedWindow.textdict, and mapwindow.GLWindow.textdict.

def mapwindow.GLWindow.UpdateSurfaceProperties (   self,
  id,
  data 
)

Update surface map object properties.

Definition at line 1871 of file nviz/mapwindow.py.

References dialogs.type.

Referenced by mapwindow.GLWindow.UpdateMapObjProperties().

def mapwindow.GLWindow.UpdateVectorLinesProperties (   self,
  id,
  data 
)

Update vector line map object properties.

Definition at line 2052 of file nviz/mapwindow.py.

References mapwindow.GLWindow.GetLayerId(), and tools.range.

Referenced by mapwindow.GLWindow.UpdateVectorProperties().

def mapwindow.GLWindow.UpdateVectorPointsProperties (   self,
  id,
  data 
)

Update vector point map object properties.

Definition at line 2097 of file nviz/mapwindow.py.

References mapwindow.GLWindow.GetLayerId(), and tools.range.

Referenced by mapwindow.GLWindow.UpdateVectorProperties().

def mapwindow.GLWindow.UpdateVectorProperties (   self,
  id,
  data,
  type 
)

Update vector layer properties.

Parameters
idlayer id
dataproperties
typelines/points

Definition at line 2040 of file nviz/mapwindow.py.

References mapwindow.GLWindow.UpdateVectorLinesProperties(), and mapwindow.GLWindow.UpdateVectorPointsProperties().

Referenced by mapwindow.GLWindow.UpdateMapObjProperties().

def mapwindow.GLWindow.UpdateView (   self,
  zexag = False 
)

Change view settings.

Definition at line 1107 of file nviz/mapwindow.py.

References mapwindow.GLWindow.iview, and mapwindow.GLWindow.view.

Referenced by mapwindow.GLWindow.OnUpdateView(), and mapwindow.GLWindow.UnloadDataLayers().

def mapwindow.GLWindow.UpdateVolumeProperties (   self,
  id,
  data,
  isosurfId = None 
)

Update volume (isosurface/slice) map object properties.

Definition at line 1951 of file nviz/mapwindow.py.

References dialogs.type.

Referenced by mapwindow.GLWindow.UpdateMapObjProperties().

def mapwindow.GLWindow.ViewHistory (   self,
  view,
  iview 
)

Manages a list of last 10 views.

Parameters
viewview dictionary
iviewview dictionary (internal)
Returns
removed history item if exists (or None)

Definition at line 979 of file nviz/mapwindow.py.

References mapwindow.GLWindow.viewhistory.

def mapwindow.GLWindow.ZoomBack (   self)

Set previous view in history list.

Definition at line 960 of file nviz/mapwindow.py.

References mapwindow.GLWindow.viewhistory.

def mapwindow.GLWindow.ZoomToMap (   self)

Reset view.

Definition at line 2516 of file nviz/mapwindow.py.

Field Documentation

mapwindow.GLWindow.animation

Definition at line 179 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.GetAnimation().

mapwindow.GLWindow.baseId
mapwindow.GLWindow.context

Definition at line 96 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.DoPaint(), and mapwindow.GLWindow.OnSize().

mapwindow.GLWindow.cplanes
mapwindow.GLWindow.decoration
mapwindow.GLWindow.dialogOffset

Definition at line 127 of file nviz/mapwindow.py.

mapwindow.GLWindow.hitradius
mapwindow.GLWindow.img

Definition at line 160 of file nviz/mapwindow.py.

mapwindow.GLWindow.init

Definition at line 94 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.DoPaint().

mapwindow.GLWindow.initView

Definition at line 95 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.DoPaint().

mapwindow.GLWindow.light
mapwindow.GLWindow.log

Definition at line 140 of file nviz/mapwindow.py.

Referenced by toolbars.VDigitToolbar.OnSelectMap().

mapwindow.GLWindow.nvizDefault

Definition at line 166 of file nviz/mapwindow.py.

mapwindow.GLWindow.nvizThread

Definition at line 150 of file nviz/mapwindow.py.

mapwindow.GLWindow.overlay

Definition at line 131 of file nviz/mapwindow.py.

Referenced by render.Map.GetLayerIndex().

mapwindow.GLWindow.qpoints

Definition at line 122 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.QuerySurface().

mapwindow.GLWindow.resize

Definition at line 1151 of file nviz/mapwindow.py.

mapwindow.GLWindow.size

Definition at line 163 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.OnSize().

mapwindow.GLWindow.textdict
mapwindow.GLWindow.timerAnim

Definition at line 178 of file nviz/mapwindow.py.

Referenced by mapwindow.GLWindow.__del__(), and mapwindow.GLWindow.OnClose().

mapwindow.GLWindow.toolWin
mapwindow.GLWindow.viewhistory

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