GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 OnVectorLinesMode
 Display vector lines on surface/flat. More...
 
def OnVectorLines
 Set vector lines mode, apply changes if auto-rendering is enabled. More...
 
def OnVectorPointsMode
 
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 display = wx.Choice(parent=panel)
 
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 2251 of file tools.py.

References max, and min.

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

Enable/disable all widgets on page.

Definition at line 2909 of file tools.py.

References dialogs.type.

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

Get nviz data.

Definition at line 1943 of file tools.py.

References widgets.GetValue().

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

Definition at line 1431 of file tools.py.

def tools.OnAnimationFinished (   self,
  event 
)

Animation finished.

Definition at line 2087 of file tools.py.

def tools.OnAnimationUpdateIndex (   self,
  event 
)

Animation: frame index changed.

Definition at line 2111 of file tools.py.

def tools.OnArrowDelete (   self,
  event 
)

Delete arrow.

Definition at line 4202 of file tools.py.

def tools.OnBgColor (   self,
  event 
)

Background color changed.

Definition at line 2630 of file tools.py.

def tools.OnConstantSelection (   self,
  event 
)

Constant selected.

Definition at line 2191 of file tools.py.

References widgets.SetValue().

def tools.OnCPlaneChangeDone (   self,
  event 
)

Cutting plane change done.

Definition at line 4138 of file tools.py.

def tools.OnCPlaneChangeText (   self,
  event 
)

Cutting plane changed by textctrl.

Definition at line 4144 of file tools.py.

References widgets.GetValue().

def tools.OnCPlaneChanging (   self,
  event 
)

Cutting plane is changing.

Definition at line 4115 of file tools.py.

def tools.OnCPlaneReset (   self,
  event 
)

Reset current cutting plane.

Definition at line 4170 of file tools.py.

def tools.OnCPlaneSelection (   self,
  event 
)

Cutting plane selected.

Definition at line 4098 of file tools.py.

def tools.OnCPlaneShading (   self,
  event 
)

Cutting plane shading changed.

Definition at line 4154 of file tools.py.

def tools.OnDecorationPlacement (   self,
  event 
)

Place an arrow/scalebar by clicking on display.

Definition at line 4186 of file tools.py.

def tools.OnDecorationProp (   self,
  event 
)

Set arrow/scalebar properties.

Definition at line 4219 of file tools.py.

References widgets.GetValue().

def tools.OnDeleteConstant (   self,
  event 
)

Delete selected constant surface.

Definition at line 2167 of file tools.py.

def tools.OnFPS (   self,
  event 
)

Frames per second changed.

Definition at line 2054 of file tools.py.

def tools.OnFrameIndex (   self,
  event 
)

Frame index changed (by slider)

Definition at line 2044 of file tools.py.

def tools.OnFrameIndexText (   self,
  event 
)

Frame index changed by (textCtrl)

Definition at line 2049 of file tools.py.

def tools.OnFringe (   self,
  event 
)

Show/hide fringe.

Definition at line 2225 of file tools.py.

References widgets.GetValue().

def tools.OnInOutMode (   self,
  event 
)

Change isosurfaces mode inout.

Definition at line 3606 of file tools.py.

def tools.OnLightChange (   self,
  event 
)

Position of the light changing.

Definition at line 2594 of file tools.py.

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

def tools.OnLightChanged (   self,
  event 
)

Light changed.

Definition at line 2610 of file tools.py.

def tools.OnLightColor (   self,
  event 
)

Color of the light changed.

Definition at line 2614 of file tools.py.

def tools.OnLightValue (   self,
  event 
)

Light brightness/ambient changing.

Definition at line 2622 of file tools.py.

def tools.OnLookAt (   self,
  event 
)

Look here/center.

Definition at line 2751 of file tools.py.

References widgets.GetValue().

def tools.OnLookFrom (   self,
  event 
)

Position of view/light changed by buttons.

Definition at line 2804 of file tools.py.

def tools.OnMapObjUse (   self,
  event 
)

Set surface attribute – use – map/constant.

Definition at line 2852 of file tools.py.

References widgets.GetValue().

def tools.OnNewConstant (   self,
  event 
)

Create new surface with constant value.

Definition at line 2146 of file tools.py.

def tools.OnPause (   self,
  event 
)

Pause animation.

Definition at line 2020 of file tools.py.

def tools.OnPlay (   self,
  event 
)

Animation: replay.

Definition at line 1988 of file tools.py.

def tools.OnRecord (   self,
  event 
)

Animation: start recording.

Definition at line 1958 of file tools.py.

def tools.OnResetSurfacePosition (   self,
  event 
)

Reset position of surface.

Definition at line 2781 of file tools.py.

References widgets.SetValue().

def tools.OnResetView (   self,
  event 
)

Reset to default view (view page)

Definition at line 2775 of file tools.py.

def tools.OnResetVolumePosition (   self,
  event 
)

Reset position of volume.

Definition at line 3982 of file tools.py.

References widgets.SetValue().

def tools.OnSaveAnimation (   self,
  event 
)

Save animation as a sequence of images.

Definition at line 2118 of file tools.py.

References widgets.GetValue().

def tools.OnScalebarDelete (   self,
  event 
)

Delete scalebar.

Definition at line 4208 of file tools.py.

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

Generic scrolling handler.

Definition at line 2240 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 2206 of file tools.py.

References widgets.GetValue().

def tools.OnSetRaster (   self,
  event 
)

Raster map selected, update surface page.

Definition at line 2652 of file tools.py.

def tools.OnSetRaster3D (   self,
  event 
)

3D Raster map selected, update surface page

Definition at line 2677 of file tools.py.

def tools.OnSetSurface (   self,
  event 
)

Surface selected, currently used for fringes.

Definition at line 2640 of file tools.py.

def tools.OnSetVector (   self,
  event 
)

Vector map selected, update properties page.

Definition at line 2665 of file tools.py.

def tools.OnShowLightModel (   self,
  event 
)

Show light model.

Definition at line 2589 of file tools.py.

def tools.OnSlicePositionChange (   self,
  event 
)

Slice position is changing.

Definition at line 4068 of file tools.py.

def tools.OnSlicePositionChanged (   self,
  event 
)

Slice position is changed.

Definition at line 4092 of file tools.py.

def tools.OnSliceReset (   self,
  event 
)

Slice position reset.

Definition at line 4047 of file tools.py.

def tools.OnSliceTransparency (   self,
  event 
)

Slice transparency changed.

Definition at line 4027 of file tools.py.

References widgets.GetValue().

def tools.OnStop (   self,
  event 
)

Animation: stop recording/replaying.

Definition at line 2002 of file tools.py.

def tools.OnSurfaceAxis (   self,
  event 
)

Surface position, axis changed.

Definition at line 3159 of file tools.py.

def tools.OnSurfaceMap (   self,
  event 
)

Set surface attribute.

Definition at line 2954 of file tools.py.

def tools.OnSurfaceMode (   self,
  event 
)

Set draw mode.

Definition at line 3059 of file tools.py.

def tools.OnSurfaceModeAll (   self,
  event 
)

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

Definition at line 3075 of file tools.py.

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

def tools.OnSurfacePosition (   self,
  event 
)

Surface position.

Definition at line 3186 of file tools.py.

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

def tools.OnSurfacePositionChanged (   self,
  event 
)

Surface position changed.

Definition at line 3229 of file tools.py.

def tools.OnSurfacePositionText (   self,
  event 
)

Surface position changed by textctrl.

Definition at line 3234 of file tools.py.

def tools.OnSurfaceResolution (   self,
  event 
)

Draw resolution changed.

Definition at line 3022 of file tools.py.

def tools.OnSurfaceWireColor (   self,
  event 
)

Set wire color.

Definition at line 3145 of file tools.py.

def tools.OnVectorHeight (   self,
  event 
)

Definition at line 3393 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 3422 of file tools.py.

def tools.OnVectorHeightText (   self,
  event 
)

Vector height changed, render in full resolution.

Definition at line 3436 of file tools.py.

def tools.OnVectorLines (   self,
  event 
)

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

Definition at line 3326 of file tools.py.

References widgets.GetValue(), and range.

def tools.OnVectorLinesMode (   self,
  event 
)

Display vector lines on surface/flat.

Definition at line 3304 of file tools.py.

def tools.OnVectorPoints (   self,
  event 
)

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

Definition at line 3469 of file tools.py.

References widgets.GetValue().

def tools.OnVectorPointsMode (   self,
  event 
)

Definition at line 3368 of file tools.py.

def tools.OnVectorShow (   self,
  event 
)

Show vector lines/points.

Definition at line 3264 of file tools.py.

References widgets.GetValue().

def tools.OnVectorSurface (   self,
  event 
)

Reference surface for vector map (lines/points)

Definition at line 3442 of file tools.py.

References range.

def tools.OnViewChange (   self,
  event 
)

Change view, render in quick mode.

Definition at line 2690 of file tools.py.

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

def tools.OnViewChanged (   self,
  event 
)

View changed, render in full resolution.

Definition at line 2732 of file tools.py.

def tools.OnViewChangedText (   self,
  event 
)

View changed, render in full resolution.

Definition at line 2742 of file tools.py.

def tools.OnVolumeAdd (   self,
  event 
)

Add new isosurface/slice to the list.

Definition at line 3707 of file tools.py.

References widgets.GetValue(), and round.

def tools.OnVolumeAxis (   self,
  event 
)

Volume position, axis changed.

Definition at line 3951 of file tools.py.

def tools.OnVolumeCheck (   self,
  event 
)

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

Definition at line 3627 of file tools.py.

def tools.OnVolumeDelete (   self,
  event 
)

Remove isosurface/slice from list.

Definition at line 3775 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeDrawMode (   self,
  event 
)

Set isosurface/slice draw mode.

Definition at line 3560 of file tools.py.

def tools.OnVolumeIsosurfMap (   self,
  event 
)

Set surface attribute.

Definition at line 3620 of file tools.py.

def tools.OnVolumeMode (   self,
  event 
)

Change mode isosurfaces/slices.

Definition at line 3531 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeMoveDown (   self,
  event 
)

Move isosurface/slice down in the list.

Definition at line 3863 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeMoveUp (   self,
  event 
)

Move isosurface/slice up in the list.

Definition at line 3822 of file tools.py.

References widgets.GetValue().

def tools.OnVolumePosition (   self,
  event 
)

Volume position.

Definition at line 3909 of file tools.py.

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

def tools.OnVolumePositionChanged (   self,
  event 
)

Volume position changed.

Definition at line 3904 of file tools.py.

def tools.OnVolumePositionText (   self,
  event 
)

Volume position changed by textctrl.

Definition at line 3977 of file tools.py.

def tools.OnVolumeResolution (   self,
  event 
)

Set isosurface/slice draw resolution.

Definition at line 3587 of file tools.py.

def tools.OnVolumeSelect (   self,
  event 
)

Isosurface/Slice item selected.

Definition at line 3668 of file tools.py.

References widgets.GetValue().

def tools.OnVolumeSliceAxes (   self,
  event 
)

Slice axis changed.

Definition at line 4004 of file tools.py.

def tools.SetMapObjAttrb (   self,
  nvizType,
  winId 
)

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

Definition at line 2961 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 2927 of file tools.py.

def tools.SetPage (   self,
  name 
)

Get named page.

Definition at line 4771 of file tools.py.

def tools.SetSurfaceMode (   self)

Set draw mode.

Definition at line 3044 of file tools.py.

def tools.SetSurfaceResolution (   self)

Set draw resolution.

Definition at line 3030 of file tools.py.

References widgets.GetValue().

def tools.SetVolumeDrawMode (   self,
  selection 
)

Set isosurface draw mode.

Definition at line 3564 of file tools.py.

def tools.SetVolumeResolution (   self,
  res 
)

Set isosurface draw resolution.

Definition at line 3591 of file tools.py.

def tools.UpdateAnimationPage (   self)

Update animation page.

Definition at line 4363 of file tools.py.

def tools.UpdateCPlanePage (   self,
  index 
)

Update widgets according to selected clip plane.

Definition at line 4384 of file tools.py.

References widgets.SetValue().

def tools.UpdateFrameCount (   self)

Update frame count label.

Definition at line 2081 of file tools.py.

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

Update frame index.

Definition at line 2059 of file tools.py.

def tools.UpdateIsosurfButtons (   self,
  list 
)

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

Definition at line 3499 of file tools.py.

def tools.UpdatePage (   self,
  pageId 
)

Update dialog (selected page)

Definition at line 4251 of file tools.py.

def tools.UpdateSettings (   self)

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

Definition at line 2556 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 4740 of file tools.py.

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

Update surface page.

Definition at line 4396 of file tools.py.

References widgets.SetValue().

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

Update vector page.

Definition at line 4491 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 3239 of file tools.py.

References dialogs.type.

def tools.UpdateVolumeIsosurfPage (   self,
  data 
)

Update dialog – isosurface attributes.

Definition at line 4678 of file tools.py.

References widgets.SetValue().

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

Update volume page.

Definition at line 4603 of file tools.py.

References range, and widgets.SetValue().

def tools.UpdateVolumeSlicePage (   self,
  data 
)

Update dialog – slice attributes.

Definition at line 4716 of file tools.py.

Variable Documentation

tools.agwStyle = fpb.FPB_SINGLE_FOLD)

Definition at line 530 of file tools.py.

tools.attrb = code)

Definition at line 2359 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 1597 of file tools.py.

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

Definition at line 1407 of file tools.py.

int tools.border = 3

Definition at line 1424 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 1527 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 1530 of file tools.py.

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

Definition at line 1544 of file tools.py.

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

Definition at line 1549 of file tools.py.

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

Definition at line 1561 of file tools.py.

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

Definition at line 1555 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 1703 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 547 of file tools.py.

tuple tools.display = wx.Choice(parent=panel)

Definition at line 1387 of file tools.py.

tools.extraStyle = fpb.FPB_SINGLE_FOLD)

Definition at line 526 of file tools.py.

tools.foldpanelAnalysis

Definition at line 621 of file tools.py.

tools.foldpanelAppear

Definition at line 580 of file tools.py.

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

Definition at line 1383 of file tools.py.

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

Definition at line 1678 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 1534 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 1368 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 1366 of file tools.py.

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

tools.mainPanelAnalysis

Definition at line 619 of file tools.py.

tools.mainPanelAppear

Definition at line 576 of file tools.py.

tools.pageChanging

Definition at line 4253 of file tools.py.

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

Definition at line 1661 of file tools.py.

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

Definition at line 1611 of file tools.py.

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

Definition at line 1612 of file tools.py.

tuple tools.range = (0, 500)

Definition at line 1406 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(), frame.GMFrame.GetMapDisplay(), 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 1602 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 1508 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 1495 of file tools.py.

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

self.foldpanelData.ApplyCaptionStyleAll(style)

Definition at line 565 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 525 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 1397 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 541 of file tools.py.

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

Definition at line 1673 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 2335 of file tools.py.

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

Definition at line 552 of file tools.py.

tools.vetoGSelectEvt

Definition at line 2957 of file tools.py.

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

Definition at line 558 of file tools.py.

string tools.vtype = 'lines'

Definition at line 3428 of file tools.py.