GRASS Programmer's Manual  6.4.3(2013)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
tools Namespace Reference

Data Structures

class  NvizToolWindow
 Nviz (3D view) tools panel. More...
 
class  PositionWindow
 Abstract position control window, see subclasses ViewPostionWindow and LightPositionWindow. More...
 
class  ViewPositionWindow
 View position control widget. More...
 
class  LightPositionWindow
 Light position control widget. More...
 

Functions

def GselectOnPopup
 
def GetLayerData
 Get nviz data. More...
 
def OnRecord
 Animation: start recording. More...
 
def OnPlay
 Animation: replay. More...
 
def OnStop
 Animation: stop recording/replaying. More...
 
def OnPause
 Pause animation. More...
 
def OnFrameIndex
 Frame index changed (by slider) More...
 
def OnFrameIndexText
 Frame index changed by (textCtrl) More...
 
def OnFPS
 Frames per second changed. More...
 
def UpdateFrameIndex
 Update frame index. More...
 
def UpdateFrameCount
 Update frame count label. More...
 
def OnAnimationFinished
 Animation finished. More...
 
def OnAnimationUpdateIndex
 Animation: frame index changed. More...
 
def OnSaveAnimation
 Save animation as a sequence of images. More...
 
def OnNewConstant
 Create new surface with constant value. More...
 
def OnDeleteConstant
 Delete selected constant surface. More...
 
def OnConstantSelection
 Constant selected. More...
 
def OnSetConstantProp
 Change properties (color, value, resolution) of currently selected constant surface. More...
 
def OnFringe
 Show/hide fringe. More...
 
def OnScroll
 Generic scrolling handler. More...
 
def AdjustSliderRange
 
def UpdateSettings
 Update view from settings values stored in self.mapWindow.view dictionary. More...
 
def OnShowLightModel
 Show light model. More...
 
def OnLightChange
 Position of the light changing. More...
 
def OnLightChanged
 Light changed. More...
 
def OnLightColor
 Color of the light changed. More...
 
def OnLightValue
 Light brightness/ambient changing. More...
 
def OnBgColor
 Background color changed. More...
 
def OnSetSurface
 Surface selected, currently used for fringes. More...
 
def OnSetRaster
 Raster map selected, update surface page. More...
 
def OnSetVector
 Vector map selected, update properties page. More...
 
def OnSetRaster3D
 3D Raster map selected, update surface page More...
 
def OnViewChange
 Change view, render in quick mode. More...
 
def OnViewChanged
 View changed, render in full resolution. More...
 
def OnViewChangedText
 View changed, render in full resolution. More...
 
def OnLookAt
 Look here/center. More...
 
def OnResetView
 Reset to default view (view page) More...
 
def OnResetSurfacePosition
 Reset position of surface. More...
 
def OnLookFrom
 Position of view/light changed by buttons. More...
 
def OnMapObjUse
 Set surface attribute – use – map/constant. More...
 
def EnablePage
 Enable/disable all widgets on page. More...
 
def SetMapObjUseMap
 Update dialog widgets when attribute type changed. More...
 
def OnSurfaceMap
 Set surface attribute. More...
 
def SetMapObjAttrb
 Set map object (surface/isosurface) attribute (map/constant) More...
 
def OnSurfaceResolution
 Draw resolution changed. More...
 
def SetSurfaceResolution
 Set draw resolution. More...
 
def SetSurfaceMode
 Set draw mode. More...
 
def OnSurfaceMode
 Set draw mode. More...
 
def OnSurfaceModeAll
 Set draw mode (including wire color) for all loaded surfaces. More...
 
def OnSurfaceWireColor
 Set wire color. More...
 
def OnSurfaceAxis
 Surface position, axis changed. More...
 
def OnSurfacePosition
 Surface position. More...
 
def OnSurfacePositionChanged
 Surface position changed. More...
 
def OnSurfacePositionText
 Surface position changed by textctrl. More...
 
def UpdateVectorShow
 Enable/disable lines/points widgets. More...
 
def OnVectorShow
 Show vector lines/points. More...
 
def OnVectorDisplay
 Display vector lines on surface/flat. More...
 
def OnVectorLines
 Set vector lines mode, apply changes if auto-rendering is enabled. More...
 
def OnVectorHeight
 
def OnVectorHeightFull
 Vector height changed, render in full resolution. More...
 
def OnVectorHeightText
 Vector height changed, render in full resolution. More...
 
def OnVectorSurface
 Reference surface for vector map (lines/points) More...
 
def OnVectorPoints
 Set vector points mode, apply changes if auto-rendering is enabled. More...
 
def UpdateIsosurfButtons
 Enable/disable buttons 'add', 'delete', 'move up', 'move down'. More...
 
def OnVolumeMode
 Change mode isosurfaces/slices. More...
 
def OnVolumeDrawMode
 Set isosurface/slice draw mode. More...
 
def SetVolumeDrawMode
 Set isosurface draw mode. More...
 
def OnVolumeResolution
 Set isosurface/slice draw resolution. More...
 
def SetVolumeResolution
 Set isosurface draw resolution. More...
 
def OnInOutMode
 Change isosurfaces mode inout. More...
 
def OnVolumeIsosurfMap
 Set surface attribute. More...
 
def OnVolumeCheck
 Isosurface/slice checked (->load) or unchecked (->unload) More...
 
def OnVolumeSelect
 Isosurface/Slice item selected. More...
 
def OnVolumeAdd
 Add new isosurface/slice to the list. More...
 
def OnVolumeDelete
 Remove isosurface/slice from list. More...
 
def OnVolumeMoveUp
 Move isosurface/slice up in the list. More...
 
def OnVolumeMoveDown
 Move isosurface/slice down in the list. More...
 
def OnVolumePositionChanged
 Volume position changed. More...
 
def OnVolumePosition
 Volume position. More...
 
def OnVolumeAxis
 Volume position, axis changed. More...
 
def OnVolumePositionText
 Volume position changed by textctrl. More...
 
def OnResetVolumePosition
 Reset position of volume. More...
 
def OnVolumeSliceAxes
 Slice axis changed. More...
 
def OnSliceTransparency
 Slice transparency changed. More...
 
def OnSliceReset
 Slice position reset. More...
 
def OnSlicePositionChange
 Slice position is changing. More...
 
def OnSlicePositionChanged
 Slice position is changed. More...
 
def OnCPlaneSelection
 Cutting plane selected. More...
 
def OnCPlaneChanging
 Cutting plane is changing. More...
 
def OnCPlaneChangeDone
 Cutting plane change done. More...
 
def OnCPlaneChangeText
 Cutting plane changed by textctrl. More...
 
def OnCPlaneShading
 Cutting plane shading changed. More...
 
def OnCPlaneReset
 Reset current cutting plane. More...
 
def OnDecorationPlacement
 Place an arrow/scalebar by clicking on display. More...
 
def OnArrowDelete
 Delete arrow. More...
 
def OnScalebarDelete
 Delete scalebar. More...
 
def OnDecorationProp
 Set arrow/scalebar properties. More...
 
def UpdatePage
 Update dialog (selected page) More...
 
def UpdateAnimationPage
 Update animation page. More...
 
def UpdateCPlanePage
 Update widgets according to selected clip plane. More...
 
def UpdateSurfacePage
 Update surface page. More...
 
def UpdateVectorPage
 Update vector page. More...
 
def UpdateVolumePage
 Update volume page. More...
 
def UpdateVolumeIsosurfPage
 Update dialog – isosurface attributes. More...
 
def UpdateVolumeSlicePage
 Update dialog – slice attributes. More...
 
def UpdateSliceLabels
 Update text labels of slice controls according to axis. More...
 
def SetPage
 Get named page. More...
 

Variables

 style = fpb.FPB_DEFAULT_STYLE,
 style = fpb.CaptionBarStyle() style.SetCaptionStyle(fpb.CAPTIONBAR_FILLED_RECTANGLE) style.SetFirstColour(wx.Color(250,250,250)) More...
 
 extraStyle = fpb.FPB_SINGLE_FOLD)
 
 agwStyle = fpb.FPB_SINGLE_FOLD)
 
tuple surfacePanel = self.foldpanelData.AddFoldPanel(_("Surface"), collapsed = False)
 
tuple window = self._createSurfacePage(parent = surfacePanel)
 
tuple constantPanel = self.foldpanelData.AddFoldPanel(_("Constant surface"), collapsed = True)
 
tuple vectorPanel = self.foldpanelData.AddFoldPanel(_("Vector"), collapsed = True)
 
tuple volumePanel = self.foldpanelData.AddFoldPanel(_("Volume"), collapsed = True)
 
tuple sizer = wx.BoxSizer(wx.VERTICAL)
 self.foldpanelData.ApplyCaptionStyleAll(style) More...
 
tuple label = _("symbol:")
 gridSizer.Add(item = wx.StaticText(parent = panel, id = wx.ID_ANY, label = _("width")), pos = (1, 1), flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT) More...
 
tuple pos = (0, 5)
 
tuple isym
 
tuple gridSizer = wx.GridBagSizer(vgap = 5, hgap = 5)
 
tuple surface
 
 flag = wx.ALIGN_CENTER_VERTICAL|wx.EXPAND)
 
tuple range = (0, 500)
 
tuple bind = (self.OnVectorHeight, self.OnVectorHeightFull, self.OnVectorHeightText)
 
int border = 3
 
tuple mode
 
tuple shade
 
tuple resol
 
tuple box
 surface = wx.CheckBox(parent = panel, id = wx.ID_ANY, label = _("Follow source viewpoint")) pageSizer.Add(item = surface, proportion = 0, flag = wx.ALL, border = 3) More...
 
tuple boxSizer = wx.StaticBoxSizer(box, wx.VERTICAL)
 
tuple isolevel
 
tuple btnAdd = wx.Button(parent = panel, id = wx.ID_ADD)
 
tuple btnDelete = wx.Button(parent = panel, id = wx.ID_DELETE)
 
tuple btnMoveUp = wx.Button(parent = panel, id = wx.ID_UP)
 
tuple btnMoveDown = wx.Button(parent = panel, id = wx.ID_DOWN)
 
tuple axis
 
tuple reset = wx.Button(panel, id = wx.ID_ANY, label = _("Reset"))
 
tuple pslide = self.FindWindowById(self.win['volume']['position']['slider'])
 
tuple ptext = self.FindWindowById(self.win['volume']['position']['text'])
 
tuple posSizer = wx.GridBagSizer(vgap = 3, hgap = 3)
 
tuple tooltip = _("Adjusts the light height")
 
tuple heightSizer = wx.GridBagSizer(vgap = 3, hgap = 3)
 
tuple color
 
tuple size = (65, -1)
 value.Bind(wx.EVT_TEXT, self.OnVolumeIsosurfMap) More...
 
tuple value
 
 attrb = code)
 
tuple id = event.GetId()
 self.OnVectorSurface(event) More...
 
string vtype = 'lines'
 
 mainPanelAppear
 
 foldpanelAppear
 
 mainPanelAnalysis
 
 foldpanelAnalysis
 
 vetoGSelectEvt
 
 pageChanging
 

Function Documentation

def tools.AdjustSliderRange (   self,
  slider,
  value 
)

Definition at line 2246 of file tools.py.

References max, and min.

def tools.EnablePage (   self,
  name,
  enabled = True 
)

Enable/disable all widgets on page.

Definition at line 2904 of file tools.py.

References dialogs.type.

def tools.GetLayerData (   self,
  nvizType,
  nameOnly = False 
)

Get nviz data.

Definition at line 1938 of file tools.py.

References widgets.GetValue().

def tools.GselectOnPopup (   self,
  ltype,
  exclude = False 
)
Update gselect.Select() items

Definition at line 1426 of file tools.py.

def tools.OnAnimationFinished (   self,
  event 
)

Animation finished.

Definition at line 2082 of file tools.py.

def tools.OnAnimationUpdateIndex (   self,
  event 
)

Animation: frame index changed.

Definition at line 2106 of file tools.py.

def tools.OnArrowDelete (   self,
  event 
)

Delete arrow.

Definition at line 4172 of file tools.py.

def tools.OnBgColor (   self,
  event 
)

Background color changed.

Definition at line 2625 of file tools.py.

def tools.OnConstantSelection (   self,
  event 
)

Constant selected.

Definition at line 2186 of file tools.py.

References widgets.SetValue().

def tools.OnCPlaneChangeDone (   self,
  event 
)

Cutting plane change done.

Definition at line 4108 of file tools.py.

def tools.OnCPlaneChangeText (   self,
  event 
)

Cutting plane changed by textctrl.

Definition at line 4114 of file tools.py.

References widgets.GetValue().

def tools.OnCPlaneChanging (   self,
  event 
)

Cutting plane is changing.

Definition at line 4085 of file tools.py.

def tools.OnCPlaneReset (   self,
  event 
)

Reset current cutting plane.

Definition at line 4140 of file tools.py.

def tools.OnCPlaneSelection (   self,
  event 
)

Cutting plane selected.

Definition at line 4068 of file tools.py.

def tools.OnCPlaneShading (   self,
  event 
)

Cutting plane shading changed.

Definition at line 4124 of file tools.py.

def tools.OnDecorationPlacement (   self,
  event 
)

Place an arrow/scalebar by clicking on display.

Definition at line 4156 of file tools.py.

def tools.OnDecorationProp (   self,
  event 
)

Set arrow/scalebar properties.

Definition at line 4189 of file tools.py.

References widgets.GetValue().

def tools.OnDeleteConstant (   self,
  event 
)

Delete selected constant surface.

Definition at line 2162 of file tools.py.

def tools.OnFPS (   self,
  event 
)

Frames per second changed.

Definition at line 2049 of file tools.py.

def tools.OnFrameIndex (   self,
  event 
)

Frame index changed (by slider)

Definition at line 2039 of file tools.py.

def tools.OnFrameIndexText (   self,
  event 
)

Frame index changed by (textCtrl)

Definition at line 2044 of file tools.py.

def tools.OnFringe (   self,
  event 
)

Show/hide fringe.

Definition at line 2220 of file tools.py.

References widgets.GetValue().

def tools.OnInOutMode (   self,
  event 
)

Change isosurfaces mode inout.

Definition at line 3576 of file tools.py.

def tools.OnLightChange (   self,
  event 
)

Position of the light changing.

Definition at line 2589 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnLightChanged (   self,
  event 
)

Light changed.

Definition at line 2605 of file tools.py.

def tools.OnLightColor (   self,
  event 
)

Color of the light changed.

Definition at line 2609 of file tools.py.

def tools.OnLightValue (   self,
  event 
)

Light brightness/ambient changing.

Definition at line 2617 of file tools.py.

def tools.OnLookAt (   self,
  event 
)

Look here/center.

Definition at line 2746 of file tools.py.

References widgets.GetValue().

def tools.OnLookFrom (   self,
  event 
)

Position of view/light changed by buttons.

Definition at line 2799 of file tools.py.

def tools.OnMapObjUse (   self,
  event 
)

Set surface attribute – use – map/constant.

Definition at line 2847 of file tools.py.

References widgets.GetValue().

def tools.OnNewConstant (   self,
  event 
)

Create new surface with constant value.

Definition at line 2141 of file tools.py.

def tools.OnPause (   self,
  event 
)

Pause animation.

Definition at line 2015 of file tools.py.

def tools.OnPlay (   self,
  event 
)

Animation: replay.

Definition at line 1983 of file tools.py.

def tools.OnRecord (   self,
  event 
)

Animation: start recording.

Definition at line 1953 of file tools.py.

def tools.OnResetSurfacePosition (   self,
  event 
)

Reset position of surface.

Definition at line 2776 of file tools.py.

References widgets.SetValue().

def tools.OnResetView (   self,
  event 
)

Reset to default view (view page)

Definition at line 2770 of file tools.py.

def tools.OnResetVolumePosition (   self,
  event 
)

Reset position of volume.

Definition at line 3952 of file tools.py.

References widgets.SetValue().

def tools.OnSaveAnimation (   self,
  event 
)

Save animation as a sequence of images.

Definition at line 2113 of file tools.py.

References widgets.GetValue().

def tools.OnScalebarDelete (   self,
  event 
)

Delete scalebar.

Definition at line 4178 of file tools.py.

def tools.OnScroll (   self,
  event,
  win,
  data 
)

Generic scrolling handler.

Definition at line 2235 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnSetConstantProp (   self,
  event 
)

Change properties (color, value, resolution) of currently selected constant surface.

Definition at line 2201 of file tools.py.

References widgets.GetValue().

def tools.OnSetRaster (   self,
  event 
)

Raster map selected, update surface page.

Definition at line 2647 of file tools.py.

def tools.OnSetRaster3D (   self,
  event 
)

3D Raster map selected, update surface page

Definition at line 2672 of file tools.py.

def tools.OnSetSurface (   self,
  event 
)

Surface selected, currently used for fringes.

Definition at line 2635 of file tools.py.

def tools.OnSetVector (   self,
  event 
)

Vector map selected, update properties page.

Definition at line 2660 of file tools.py.

def tools.OnShowLightModel (   self,
  event 
)

Show light model.

Definition at line 2584 of file tools.py.

def tools.OnSlicePositionChange (   self,
  event 
)

Slice position is changing.

Definition at line 4038 of file tools.py.

def tools.OnSlicePositionChanged (   self,
  event 
)

Slice position is changed.

Definition at line 4062 of file tools.py.

def tools.OnSliceReset (   self,
  event 
)

Slice position reset.

Definition at line 4017 of file tools.py.

def tools.OnSliceTransparency (   self,
  event 
)

Slice transparency changed.

Definition at line 3997 of file tools.py.

References widgets.GetValue().

def tools.OnStop (   self,
  event 
)

Animation: stop recording/replaying.

Definition at line 1997 of file tools.py.

def tools.OnSurfaceAxis (   self,
  event 
)

Surface position, axis changed.

Definition at line 3154 of file tools.py.

def tools.OnSurfaceMap (   self,
  event 
)

Set surface attribute.

Definition at line 2949 of file tools.py.

def tools.OnSurfaceMode (   self,
  event 
)

Set draw mode.

Definition at line 3054 of file tools.py.

def tools.OnSurfaceModeAll (   self,
  event 
)

Set draw mode (including wire color) for all loaded surfaces.

Definition at line 3070 of file tools.py.

References widgets.GetValue(), gcmd.RunCommand(), and utils.split().

def tools.OnSurfacePosition (   self,
  event 
)

Surface position.

Definition at line 3181 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnSurfacePositionChanged (   self,
  event 
)

Surface position changed.

Definition at line 3224 of file tools.py.

def tools.OnSurfacePositionText (   self,
  event 
)

Surface position changed by textctrl.

Definition at line 3229 of file tools.py.

def tools.OnSurfaceResolution (   self,
  event 
)

Draw resolution changed.

Definition at line 3017 of file tools.py.

def tools.OnSurfaceWireColor (   self,
  event 
)

Set wire color.

Definition at line 3140 of file tools.py.

def tools.OnVectorDisplay (   self,
  event 
)

Display vector lines on surface/flat.

Definition at line 3299 of file tools.py.

def tools.OnVectorHeight (   self,
  event 
)

Definition at line 3363 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnVectorHeightFull (   self,
  event 
)

Vector height changed, render in full resolution.

Definition at line 3392 of file tools.py.

def tools.OnVectorHeightText (   self,
  event 
)

Vector height changed, render in full resolution.

Definition at line 3406 of file tools.py.

def tools.OnVectorLines (   self,
  event 
)

Set vector lines mode, apply changes if auto-rendering is enabled.

Definition at line 3321 of file tools.py.

References widgets.GetValue(), and range.

def tools.OnVectorPoints (   self,
  event 
)

Set vector points mode, apply changes if auto-rendering is enabled.

Definition at line 3439 of file tools.py.

References widgets.GetValue().

def tools.OnVectorShow (   self,
  event 
)

Show vector lines/points.

Definition at line 3259 of file tools.py.

References widgets.GetValue().

def tools.OnVectorSurface (   self,
  event 
)

Reference surface for vector map (lines/points)

Definition at line 3412 of file tools.py.

References range.

def tools.OnViewChange (   self,
  event 
)

Change view, render in quick mode.

Definition at line 2685 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnViewChanged (   self,
  event 
)

View changed, render in full resolution.

Definition at line 2727 of file tools.py.

def tools.OnViewChangedText (   self,
  event 
)

View changed, render in full resolution.

Definition at line 2737 of file tools.py.

def tools.OnVolumeAdd (   self,
  event 
)

Add new isosurface/slice to the list.

Definition at line 3677 of file tools.py.

References widgets.GetValue(), and round.

def tools.OnVolumeAxis (   self,
  event 
)

Volume position, axis changed.

Definition at line 3921 of file tools.py.

def tools.OnVolumeCheck (   self,
  event 
)

Isosurface/slice checked (->load) or unchecked (->unload)

Definition at line 3597 of file tools.py.

def tools.OnVolumeDelete (   self,
  event 
)

Remove isosurface/slice from list.

Definition at line 3745 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeDrawMode (   self,
  event 
)

Set isosurface/slice draw mode.

Definition at line 3530 of file tools.py.

def tools.OnVolumeIsosurfMap (   self,
  event 
)

Set surface attribute.

Definition at line 3590 of file tools.py.

def tools.OnVolumeMode (   self,
  event 
)

Change mode isosurfaces/slices.

Definition at line 3501 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeMoveDown (   self,
  event 
)

Move isosurface/slice down in the list.

Definition at line 3833 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeMoveUp (   self,
  event 
)

Move isosurface/slice up in the list.

Definition at line 3792 of file tools.py.

References widgets.GetValue().

def tools.OnVolumePosition (   self,
  event 
)

Volume position.

Definition at line 3879 of file tools.py.

References widgets.GetValue(), and widgets.SetValue().

def tools.OnVolumePositionChanged (   self,
  event 
)

Volume position changed.

Definition at line 3874 of file tools.py.

def tools.OnVolumePositionText (   self,
  event 
)

Volume position changed by textctrl.

Definition at line 3947 of file tools.py.

def tools.OnVolumeResolution (   self,
  event 
)

Set isosurface/slice draw resolution.

Definition at line 3557 of file tools.py.

def tools.OnVolumeSelect (   self,
  event 
)

Isosurface/Slice item selected.

Definition at line 3638 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeSliceAxes (   self,
  event 
)

Slice axis changed.

Definition at line 3974 of file tools.py.

def tools.SetMapObjAttrb (   self,
  nvizType,
  winId 
)

Set map object (surface/isosurface) attribute (map/constant)

Definition at line 2956 of file tools.py.

References widgets.GetValue().

def tools.SetMapObjUseMap (   self,
  nvizType,
  attrb,
  map = None 
)

Update dialog widgets when attribute type changed.

Definition at line 2922 of file tools.py.

def tools.SetPage (   self,
  name 
)

Get named page.

Definition at line 4730 of file tools.py.

def tools.SetSurfaceMode (   self)

Set draw mode.

Definition at line 3039 of file tools.py.

def tools.SetSurfaceResolution (   self)

Set draw resolution.

Definition at line 3025 of file tools.py.

References widgets.GetValue().

def tools.SetVolumeDrawMode (   self,
  selection 
)

Set isosurface draw mode.

Definition at line 3534 of file tools.py.

def tools.SetVolumeResolution (   self,
  res 
)

Set isosurface draw resolution.

Definition at line 3561 of file tools.py.

def tools.UpdateAnimationPage (   self)

Update animation page.

Definition at line 4333 of file tools.py.

def tools.UpdateCPlanePage (   self,
  index 
)

Update widgets according to selected clip plane.

Definition at line 4354 of file tools.py.

References widgets.SetValue().

def tools.UpdateFrameCount (   self)

Update frame count label.

Definition at line 2076 of file tools.py.

def tools.UpdateFrameIndex (   self,
  index,
  sliderWidget = True,
  textWidget = True,
  goToFrame = True 
)

Update frame index.

Definition at line 2054 of file tools.py.

def tools.UpdateIsosurfButtons (   self,
  list 
)

Enable/disable buttons 'add', 'delete', 'move up', 'move down'.

Definition at line 3469 of file tools.py.

def tools.UpdatePage (   self,
  pageId 
)

Update dialog (selected page)

Definition at line 4221 of file tools.py.

def tools.UpdateSettings (   self)

Update view from settings values stored in self.mapWindow.view dictionary.

Definition at line 2551 of file tools.py.

References widgets.SetValue().

Referenced by layertree.LayerTree.ChangeLayerOpacity(), and toolbars.VDigitToolbar.StartEditing().

def tools.UpdateSliceLabels (   self)

Update text labels of slice controls according to axis.

Definition at line 4699 of file tools.py.

def tools.UpdateSurfacePage (   self,
  layer,
  data,
  updateName = True 
)

Update surface page.

Definition at line 4366 of file tools.py.

References widgets.SetValue().

def tools.UpdateVectorPage (   self,
  layer,
  data,
  updateName = True 
)

Update vector page.

Definition at line 4461 of file tools.py.

References widgets.SetValue(), and utils.split().

def tools.UpdateVectorShow (   self,
  vecType,
  enabled 
)

Enable/disable lines/points widgets.

Parameters
vecTypevector type (lines, points)

Definition at line 3234 of file tools.py.

References dialogs.type.

def tools.UpdateVolumeIsosurfPage (   self,
  data 
)

Update dialog – isosurface attributes.

Definition at line 4637 of file tools.py.

References widgets.SetValue().

def tools.UpdateVolumePage (   self,
  layer,
  data,
  updateName = True 
)

Update volume page.

Definition at line 4562 of file tools.py.

References range, and widgets.SetValue().

def tools.UpdateVolumeSlicePage (   self,
  data 
)

Update dialog – slice attributes.

Definition at line 4675 of file tools.py.

Variable Documentation

tools.agwStyle = fpb.FPB_SINGLE_FOLD)

Definition at line 531 of file tools.py.

tools.attrb = code)

Definition at line 2354 of file tools.py.

tuple tools.axis
Initial value:
1 = wx.Choice(parent = panel, id = wx.ID_ANY, size = (75, -1),
2  choices = ["X",
3  "Y",
4  "Z"])

Definition at line 1593 of file tools.py.

tuple tools.bind = (self.OnVectorHeight, self.OnVectorHeightFull, self.OnVectorHeightText)

Definition at line 1403 of file tools.py.

int tools.border = 3

Definition at line 1419 of file tools.py.

tuple tools.box
Initial value:
1 = wx.StaticBox(parent = panel, id = wx.ID_ANY,
2  label = " %s " % (_("List of isosurfaces")))

surface = wx.CheckBox(parent = panel, id = wx.ID_ANY, label = _("Follow source viewpoint")) pageSizer.Add(item = surface, proportion = 0, flag = wx.ALL, border = 3)

Definition at line 1522 of file tools.py.

Referenced by dig_add_area(), dig_add_isle(), V2_delete_line_nat(), V2_restore_line_nat(), V2_write_line_nat(), Vect_build_nat(), Vect_build_sidx_from_topo(), Vect_find_area(), Vect_find_island(), Vect_find_line_list(), Vect_find_node(), Vect_isle_find_area(), Vect_select_lines_by_polygon(), and Vect_topo_dump().

tuple tools.boxSizer = wx.StaticBoxSizer(box, wx.VERTICAL)

Definition at line 1525 of file tools.py.

tuple tools.btnAdd = wx.Button(parent = panel, id = wx.ID_ADD)

Definition at line 1539 of file tools.py.

tuple tools.btnDelete = wx.Button(parent = panel, id = wx.ID_DELETE)

Definition at line 1544 of file tools.py.

tuple tools.btnMoveDown = wx.Button(parent = panel, id = wx.ID_DOWN)

Definition at line 1556 of file tools.py.

tuple tools.btnMoveUp = wx.Button(parent = panel, id = wx.ID_UP)

Definition at line 1550 of file tools.py.

tuple tools.color
Initial value:
1 = csel.ColourSelect(panel, id = wx.ID_ANY,
2  colour = UserSettings.Get(group = 'nviz', key = 'light',
3  subkey = 'color'),
4  size = globalvar.DIALOG_COLOR_SIZE)

Definition at line 1698 of file tools.py.

Referenced by Cairo_color(), D_color_number_to_RGB(), D_parse_color(), D_raster_use_color(), G_parse_color_rule(), Gp_set_color(), GP_set_sitemode(), gpd_2dsite(), gpd_3dsite(), gpd_obj_site_attr(), gsd_ortho_wall(), GV_set_vectmode(), gvld_slice(), Nviz_new_fringe(), Nviz_new_scalebar(), Nviz_set_arrow(), Nviz_set_bgcolor(), Nviz_set_fringe(), Nviz_set_scalebar(), and slice_calc().

tuple tools.constantPanel = self.foldpanelData.AddFoldPanel(_("Constant surface"), collapsed = True)

Definition at line 548 of file tools.py.

tools.extraStyle = fpb.FPB_SINGLE_FOLD)

Definition at line 527 of file tools.py.

tools.foldpanelAnalysis

Definition at line 622 of file tools.py.

tools.foldpanelAppear

Definition at line 581 of file tools.py.

tuple tools.gridSizer = wx.GridBagSizer(vgap = 5, hgap = 5)

Definition at line 1384 of file tools.py.

tuple tools.heightSizer = wx.GridBagSizer(vgap = 3, hgap = 3)

Definition at line 1673 of file tools.py.

tuple tools.isolevel
Initial value:
1 = wx.CheckListBox(parent = panel, id = wx.ID_ANY,
2  size = (300, 150))

Definition at line 1529 of file tools.py.

tuple tools.isym
Initial value:
1 = wx.Choice(parent = panel, id = wx.ID_ANY, size = (100, -1),
2  choices = UserSettings.Get(group = 'nviz', key = 'vector',
3  subkey = ['points', 'marker'], internal = True))

Definition at line 1373 of file tools.py.

tuple tools.label = _("symbol:")

gridSizer.Add(item = wx.StaticText(parent = panel, id = wx.ID_ANY, label = _("width")), pos = (1, 1), flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_RIGHT)

gridSizer.AddGrowableCol(4)

   iwidth = wx.SpinCtrl(parent = panel, id = wx.ID_ANY, size = (65, -1),
                        initial = 1,
                        min = 1,
                        max = 1e6)
   iwidth.SetName('value')
   iwidth.SetValue(100)
   self.win['vector']['points']['width'] = iwidth.GetId()
   iwidth.Bind(wx.EVT_SPINCTRL, self.OnVectorPoints)
   iwidth.Bind(wx.EVT_TEXT, self.OnVectorPoints)
   gridSizer.Add(item = iwidth, pos = (1, 2),
                 flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)

icon symbol

Definition at line 1371 of file tools.py.

Referenced by G__read_cats(), G__read_Cell_head_array(), and G_get_raster_cat().

tools.mainPanelAnalysis

Definition at line 620 of file tools.py.

tools.mainPanelAppear

Definition at line 577 of file tools.py.

tools.pageChanging

Definition at line 4223 of file tools.py.

tuple tools.posSizer = wx.GridBagSizer(vgap = 3, hgap = 3)

Definition at line 1656 of file tools.py.

tuple tools.pslide = self.FindWindowById(self.win['volume']['position']['slider'])

Definition at line 1607 of file tools.py.

tuple tools.ptext = self.FindWindowById(self.win['volume']['position']['text'])

Definition at line 1608 of file tools.py.

tuple tools.range = (0, 500)

Definition at line 1402 of file tools.py.

Referenced by frame.MapFrame.AddNviz(), colorrules.RulesPanel.AddRules(), dialogs.ItemCheckListCtrl.CheckItemById(), manager.GCP.ClearGCP(), manager.VirtualAttributeList.ColumnSort(), wxdigit.IVDigit.CopyCats(), wxdigit.IVDigit.CopyLine(), manager.GCP.DeleteGCP(), wxdigit.IVDigit.DeleteSelectedLines(), manager.GCP.DrawGCP(), wxdisplay.DisplayDriver.DrawMap(), goutput.PyStc.FoldAll(), G3d_range_updateFromTile(), get_key_neighbors(), vclean.VectorCleaningFrame.GetCmdStrings(), prompt.GPrompt.GetCommandItems(), wxdisplay.DisplayDriver.GetDuplicates(), extensions.CheckListExtension.GetExtensions(), preferences.DefaultFontDialog.GetFonts(), dialogs.ItemCheckListCtrl.GetItems(), utils.GetLayerNameFromCmd(), wxdigit.IVDigit.GetLineCats(), model.ModelAction.GetLog(), dialogs.MapLayersDialog.GetMapLayers(), manager.GCP.GetNewExtent(), wxdisplay.DisplayDriver.GetSelected(), wxdisplay.DisplayDriver.GetSelectedVertex(), dialogs.DisplayAttributesDialog.GetSQLString(), dialogs.VDigitDuplicatesDialog.GetUnSelected(), gk_make_framesfromkeys(), gk_make_linear_framesfromkeys(), statusbar.SbManager.HideStatusbarChoiceItemsByClass(), wxdigit.IVDigit.InitCats(), mapwindow.GLWindow.InitCPlanes(), wxnviz.Texture.Load(), dialogs.CheckListFeature.LoadData(), dialogs.LayersList.LoadData(), manager.GCPList.LoadData(), dialogs.MapLayersDialog.LoadMapLayers(), colorrules.RulesPanel.LoadRules(), manager.VectGroup.MakeVGroup(), wxdigit.IVDigit.MoveSelectedLines(), wizard.ItemList.OnColumnClick(), manager.AttributeManager.OnDataItemAdd(), manager.AttributeManager.OnDataItemEdit(), dialogs.VectorPanel.OnDelete(), dialogs.MapLayersDialog.OnDeselectAll(), frame.GMFrame.OnDisplayCloseAll(), dialogs.SymbolDialog.OnFolderSelect(), manager.GCP.OnGROrder(), manager.GCPList.OnItemActivated(), dialogs.LayersList.OnLeftDown(), dialogs.DisplayAttributesDialog.OnReset(), preferences.PreferencesBaseDialog.OnSave(), dialogs.MapLayersDialog.OnSelectAll(), dialogs.MapLayersDialog.OnSelectInvert(), dialogs.MapLayersDialog.OnToggle(), dialogs.VectorPanel.OnVector(), OnVectorLines(), OnVectorSurface(), wxdigit.IVDigit.OpenBackgroundMap(), manager.LayerListCtrl.Populate(), manager.GCP.ReadGCPs(), layertree.LayerTree.ReorderLayers(), dialogs.VectorPanel.reposition(), manager.GCPList.ResizeColumns(), manager.GCP.RMSError(), manager.GCP.SaveGCPs(), settings.Settings.SaveToFile(), wizard.ItemList.Search(), dialogs.SymbolDialog.SelectionChanged(), wxdisplay.DisplayDriver.SelectLineByPoint(), wxdisplay.DisplayDriver.SelectLinesByBox(), wxdigit.IVDigit.SelectLinesByQuery(), mapwindow.GLWindow.SetMapObjProperties(), wxnviz.Nviz.SetRotationMatrix(), wxdisplay.DisplayDriver.SetSelected(), mapwindow.VDigitWindow.SetToolbar(), wxdigit.IVDigit.Undo(), manager.GCP.UpdateColours(), dialogs.DisplayAttributesDialog.UpdateDialog(), mapwindow.GLWindow.UpdateVectorLinesProperties(), mapwindow.GLWindow.UpdateVectorPointsProperties(), UpdateVolumePage(), and Vect_array_to_cat_list().

tuple tools.reset = wx.Button(panel, id = wx.ID_ANY, label = _("Reset"))

Definition at line 1598 of file tools.py.

tuple tools.resol
Initial value:
1 = wx.SpinCtrl(parent = panel, id = wx.ID_ANY, size = (65, -1),
2  initial = 1,
3  min = 1,
4  max = 100)

Definition at line 1503 of file tools.py.

tuple tools.shade
Initial value:
1 = wx.Choice(parent = panel, id = wx.ID_ANY, size = (100, -1),
2  choices = [_("flat"),
3  _("gouraud")])

Definition at line 1490 of file tools.py.

tuple tools.sizer = wx.BoxSizer(wx.VERTICAL)

self.foldpanelData.ApplyCaptionStyleAll(style)

Definition at line 566 of file tools.py.

tools.style = fpb.FPB_DEFAULT_STYLE,

style = fpb.CaptionBarStyle() style.SetCaptionStyle(fpb.CAPTIONBAR_FILLED_RECTANGLE) style.SetFirstColour(wx.Color(250,250,250))

Definition at line 526 of file tools.py.

tuple tools.surface
Initial value:
1 = wx.CheckListBox(parent = panel, id = wx.ID_ANY, size = (-1, 60),
2  choices = [], style = wx.LB_NEEDED_SB)

Definition at line 1393 of file tools.py.

Referenced by Cairo_Graph_close(), read_image(), and write_image().

tuple tools.surfacePanel = self.foldpanelData.AddFoldPanel(_("Surface"), collapsed = False)

Definition at line 542 of file tools.py.

tuple tools.tooltip = _("Adjusts the light height")

Definition at line 1668 of file tools.py.

tuple tools.value
Initial value:
1 = wx.SpinCtrl(parent = panel, id = wx.ID_ANY, size = size,
2  initial = 0)

Definition at line 2330 of file tools.py.

tuple tools.vectorPanel = self.foldpanelData.AddFoldPanel(_("Vector"), collapsed = True)

Definition at line 553 of file tools.py.

tools.vetoGSelectEvt

Definition at line 2952 of file tools.py.

tuple tools.volumePanel = self.foldpanelData.AddFoldPanel(_("Volume"), collapsed = True)

Definition at line 559 of file tools.py.

string tools.vtype = 'lines'

Definition at line 3398 of file tools.py.