GRASS Programmer's Manual  6.4.4(2014)-r
tools.py File Reference

Go to the source code of this file.

Data Structures

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

Namespaces

 tools
 
 nviz.tools
 Nviz (3D view) tools window.
 

Functions

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

Variables

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