GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Mapcalc Frame class. More...
Public Member Functions | |
def | __init__ |
def | AddMark |
Sends operators to insertion method. More... | |
def | OnSelectTextEvt |
Checks if user is typing or the event was emited by map selection. More... | |
def | OnSelect |
Gets raster map or function selection and send it to insertion method. More... | |
def | OnUpdateStatusBar |
Update statusbar text. More... | |
def | OnMCalcRun |
Builds and runs r.mapcalc statement. More... | |
def | OnDone |
Add create map to the layer tree. More... | |
def | OnSaveExpression |
Saves expression to file. More... | |
def | OnLoadExpression |
Load expression from file. More... | |
def | OnClear |
Clears text area. More... | |
def | OnHelp |
Launches r.mapcalc help. More... | |
def | OnClose |
Close window. More... | |
Mapcalc Frame class.
Calculator-style window to create and run r(3).mapcalc statements.
Definition at line 35 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.__init__ | ( | self, | |
parent, | |||
cmd, | |||
id = wx.ID_ANY , |
|||
style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER , |
|||
kwargs | |||
) |
Definition at line 40 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.AddMark | ( | self, | |
event | |||
) |
Sends operators to insertion method.
Definition at line 376 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame._addSomething(), and mcalc_builder.MapCalcFrame.btn.
def mcalc_builder.MapCalcFrame.OnClear | ( | self, | |
event | |||
) |
Clears text area.
Definition at line 574 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.OnClose | ( | self, | |
event | |||
) |
Close window.
Definition at line 584 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.OnDone | ( | self, | |
cmd, | |||
returncode | |||
) |
Add create map to the layer tree.
Definition at line 497 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame.rast3d.
Referenced by vclean.VectorCleaningFrame.OnCleaningRun(), and mcalc_builder.MapCalcFrame.OnMCalcRun().
def mcalc_builder.MapCalcFrame.OnHelp | ( | self, | |
event | |||
) |
Launches r.mapcalc help.
Definition at line 579 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame.cmd, render.Layer.cmd, gcmd.Command.cmd, gcmd.CommandThread.cmd, dialogs.DecorationDialog.cmd, forms.GUI.cmd, and gcmd.RunCommand().
def mcalc_builder.MapCalcFrame.OnLoadExpression | ( | self, | |
event | |||
) |
Load expression from file.
Definition at line 542 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.OnMCalcRun | ( | self, | |
event | |||
) |
Builds and runs r.mapcalc statement.
Definition at line 469 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame.charactersToQuote, mcalc_builder.MapCalcFrame.cmd, render.Layer.cmd, gcmd.Command.cmd, gcmd.CommandThread.cmd, dialogs.DecorationDialog.cmd, forms.GUI.cmd, mcalc_builder.MapCalcFrame.log, manager.VirtualAttributeList.log, extensions.ExtensionTree.log, manager.AttributeManager.log, frame.ModelEvtHandler.log, preferences.CheckListMapset.log, dialogs.LayersList.log, extensions.InstallExtensionWindow.OnDone(), frame.GMFrame.OnDone(), frame.ModelFrame.OnDone(), mcalc_builder.MapCalcFrame.OnDone(), forms.TaskFrame.OnDone(), frame.PythonPanel.OnDone(), and gcmd.RunCommand().
def mcalc_builder.MapCalcFrame.OnSaveExpression | ( | self, | |
event | |||
) |
Saves expression to file.
Definition at line 518 of file mcalc_builder.py.
def mcalc_builder.MapCalcFrame.OnSelect | ( | self, | |
event | |||
) |
Gets raster map or function selection and send it to insertion method.
Checks for characters which can be in raster map name but the raster map name must be then quoted.
Definition at line 417 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame._addSomething(), and mcalc_builder.MapCalcFrame.charactersToQuote.
Referenced by vclean.VectorCleaningFrame.AddTool(), and mcalc_builder.MapCalcFrame.OnSelectTextEvt().
def mcalc_builder.MapCalcFrame.OnSelectTextEvt | ( | self, | |
event | |||
) |
Checks if user is typing or the event was emited by map selection.
Prevents from changing focus.
Definition at line 407 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame.lastMapName, and mcalc_builder.MapCalcFrame.OnSelect().
def mcalc_builder.MapCalcFrame.OnUpdateStatusBar | ( | self, | |
event | |||
) |
Update statusbar text.
Definition at line 429 of file mcalc_builder.py.
References mcalc_builder.MapCalcFrame.rast3d.
mcalc_builder.MapCalcFrame.addbox |
Definition at line 228 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn |
Definition at line 145 of file mcalc_builder.py.
Referenced by mcalc_builder.MapCalcFrame.AddMark().
mcalc_builder.MapCalcFrame.btn_clear |
Definition at line 133 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn_close |
Definition at line 138 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn_help |
Definition at line 134 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn_load |
Definition at line 141 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn_run |
Definition at line 135 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.btn_save |
Definition at line 139 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.charactersToQuote |
Definition at line 117 of file mcalc_builder.py.
Referenced by mcalc_builder.MapCalcFrame.OnMCalcRun(), and mcalc_builder.MapCalcFrame.OnSelect().
mcalc_builder.MapCalcFrame.cmd |
Definition at line 48 of file mcalc_builder.py.
Referenced by wxnviz.ImageTexture.GetCmd(), vclean.VectorCleaningFrame.OnCleaningRun(), vclean.VectorCleaningFrame.OnCopy(), vclean.VectorCleaningFrame.OnHelp(), mcalc_builder.MapCalcFrame.OnHelp(), and mcalc_builder.MapCalcFrame.OnMCalcRun().
mcalc_builder.MapCalcFrame.expressBox |
Definition at line 127 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.funct_dict |
Definition at line 67 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.function |
Definition at line 223 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.functlabel |
Definition at line 221 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.heading |
Definition at line 66 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.lastMapName |
Definition at line 119 of file mcalc_builder.py.
Referenced by mcalc_builder.MapCalcFrame.OnSelectTextEvt().
mcalc_builder.MapCalcFrame.log |
Definition at line 43 of file mcalc_builder.py.
Referenced by vclean.VectorCleaningFrame.OnCleaningRun(), mcalc_builder.MapCalcFrame.OnMCalcRun(), toolbars.VDigitToolbar.OnSelectMap(), and mapwindow.NvizThread.run().
mcalc_builder.MapCalcFrame.mapselect |
Definition at line 219 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.mapsellabel |
Definition at line 214 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.newmaplabel |
Definition at line 208 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.newmaptxt |
Definition at line 213 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.operandBox |
Definition at line 125 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.operatorBox |
Definition at line 121 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.outputBox |
Definition at line 123 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.panel |
Definition at line 60 of file mcalc_builder.py.
mcalc_builder.MapCalcFrame.parent |
Definition at line 41 of file mcalc_builder.py.
Referenced by wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), wxdigit.VDigitError.NoMap(), frame.PsMapBufferedWindow.OnLeftUp(), wxdigit.VDigitError.ReadLine(), and wxdigit.VDigitError.WriteLine().
mcalc_builder.MapCalcFrame.rast3d |
Definition at line 51 of file mcalc_builder.py.
Referenced by mcalc_builder.MapCalcFrame.OnDone(), and mcalc_builder.MapCalcFrame.OnUpdateStatusBar().
mcalc_builder.MapCalcFrame.text_mcalc |
Definition at line 202 of file mcalc_builder.py.