GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
Main window of ps.map GUI. More... | |
def | InstructionFile |
Creates mapping instructions. More... | |
def | OnPSFile |
Generate PostScript. More... | |
def | OnPsMapDialog |
Launch ps.map dialog. More... | |
def | OnPDFFile |
Generate PDF from PS with ps2pdf if available. More... | |
def | OnPreview |
Run ps.map and show result. More... | |
def | PSFile |
Create temporary instructions file and run ps.map with output = filename. More... | |
def | OnCmdDone |
ps.map process finished More... | |
def | getFile |
def | OnInstructionFile |
def | OnLoadFile |
Load file and read instructions. More... | |
def | OnPageSetup |
Specify paper size, margins and orientation. More... | |
def | OnPointer |
def | OnPan |
def | OnZoomIn |
def | OnZoomOut |
def | OnZoomAll |
def | OnAddMap |
Add or edit map frame. More... | |
Definition at line 49 of file psmap/frame.py.
def frame.PsMapFrame.__init__ | ( | self, | |
parent = None , |
|||
id = wx.ID_ANY , |
|||
title = _("GRASS GIS Cartographic Composer (experimental prototype)") , |
|||
kwargs | |||
) |
Main window of ps.map GUI.
parent | parent window |
id | window id |
title | window title |
kwargs | wx.Frames' arguments |
Definition at line 51 of file psmap/frame.py.
def frame.PsMapFrame.getFile | ( | self, | |
wildcard | |||
) |
Definition at line 373 of file psmap/frame.py.
References frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, dialogs.LegendDialog.instruction, and utils.split().
Referenced by frame.PsMapFrame.OnInstructionFile(), frame.PsMapFrame.OnPDFFile(), and frame.PsMapFrame.OnPSFile().
def frame.PsMapFrame.InstructionFile | ( | self | ) |
Creates mapping instructions.
Definition at line 207 of file psmap/frame.py.
References frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, and dialogs.LegendDialog.instruction.
Referenced by frame.PsMapFrame.OnInstructionFile(), and frame.PsMapFrame.PSFile().
def frame.PsMapFrame.OnAddMap | ( | self, | |
event, | |||
notebook = False |
|||
) |
Add or edit map frame.
Definition at line 499 of file psmap/frame.py.
References frame.PsMapFrame.actionOld, frame.PsMapFrame.cursorOld, mapwindow.MapWindow.mouse, frame.PsMapFrame.mouse, mapwindow.GLWindow.mouse, frame.PsMapFrame.mouseOld, dialogs.OnOK(), and frame.PsMapFrame.openDialogs.
def frame.PsMapFrame.OnCmdDone | ( | self, | |
event | |||
) |
ps.map process finished
Definition at line 285 of file psmap/frame.py.
References frame.GMFrame.currentPage, frame.PsMapFrame.currentPage, frame.PsMapFrame.imgName, frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, dialogs.LegendDialog.instruction, frame.PsMapFrame.pageId, dialogs.LegendDialog.pageId, and gcmd.RunCommand().
def frame.PsMapFrame.OnInstructionFile | ( | self, | |
event | |||
) |
Definition at line 407 of file psmap/frame.py.
References frame.PsMapFrame.getFile(), and frame.PsMapFrame.InstructionFile().
def frame.PsMapFrame.OnLoadFile | ( | self, | |
event | |||
) |
Load file and read instructions.
Definition at line 414 of file psmap/frame.py.
References frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, dialogs.LegendDialog.instruction, frame.PsMapFrame.objectId, frame.PsMapFrame.pageId, and dialogs.LegendDialog.pageId.
def frame.PsMapFrame.OnPageSetup | ( | self, | |
event = None |
|||
) |
Specify paper size, margins and orientation.
Definition at line 444 of file psmap/frame.py.
References frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, dialogs.LegendDialog.instruction, and frame.PsMapFrame.objectId.
Referenced by base.BasePlotFrame.PrintMenu().
def frame.PsMapFrame.OnPan | ( | self, | |
event | |||
) |
Definition at line 462 of file psmap/frame.py.
References mapdisp.MapFrameBase.cursors, frame.ModelFrame.cursors, frame.PsMapFrame.cursors, mapwindow.GLWindow.cursors, mapwindow.MapWindow.mouse, frame.PsMapFrame.mouse, and mapwindow.GLWindow.mouse.
def frame.PsMapFrame.OnPDFFile | ( | self, | |
event | |||
) |
Generate PDF from PS with ps2pdf if available.
Definition at line 223 of file psmap/frame.py.
References frame.PsMapFrame.getFile(), and frame.PsMapFrame.PSFile().
def frame.PsMapFrame.OnPointer | ( | self, | |
event | |||
) |
Definition at line 456 of file psmap/frame.py.
References mapdisp.MapFrameBase.cursors, frame.ModelFrame.cursors, frame.PsMapFrame.cursors, mapwindow.GLWindow.cursors, mapwindow.MapWindow.mouse, frame.PsMapFrame.mouse, and mapwindow.GLWindow.mouse.
def frame.PsMapFrame.OnPreview | ( | self, | |
event | |||
) |
Run ps.map and show result.
Definition at line 239 of file psmap/frame.py.
References frame.PsMapFrame.PSFile().
Referenced by colorrules.ColorTable.LoadTable(), colorrules.ColorTable.OnApply(), and colorrules.ColorTable.ReadColorTable().
def frame.PsMapFrame.OnPSFile | ( | self, | |
event | |||
) |
Generate PostScript.
Definition at line 212 of file psmap/frame.py.
References frame.PsMapFrame.getFile(), and frame.PsMapFrame.PSFile().
def frame.PsMapFrame.OnPsMapDialog | ( | self, | |
event | |||
) |
Launch ps.map dialog.
Definition at line 218 of file psmap/frame.py.
def frame.PsMapFrame.OnZoomAll | ( | self, | |
event | |||
) |
Definition at line 480 of file psmap/frame.py.
def frame.PsMapFrame.OnZoomIn | ( | self, | |
event | |||
) |
Definition at line 468 of file psmap/frame.py.
References mapdisp.MapFrameBase.cursors, frame.ModelFrame.cursors, frame.PsMapFrame.cursors, mapwindow.GLWindow.cursors, mapwindow.MapWindow.mouse, frame.PsMapFrame.mouse, and mapwindow.GLWindow.mouse.
def frame.PsMapFrame.OnZoomOut | ( | self, | |
event | |||
) |
Definition at line 474 of file psmap/frame.py.
References mapdisp.MapFrameBase.cursors, frame.ModelFrame.cursors, frame.PsMapFrame.cursors, mapwindow.GLWindow.cursors, mapwindow.MapWindow.mouse, frame.PsMapFrame.mouse, and mapwindow.GLWindow.mouse.
def frame.PsMapFrame.PSFile | ( | self, | |
filename = None , |
|||
pdf = False |
|||
) |
Create temporary instructions file and run ps.map with output = filename.
Definition at line 243 of file psmap/frame.py.
References frame.PsMapFrame.instruction, dialogs.PsmapDialog.instruction, dialogs.MapFramePanel.instruction, dialogs.RasterPanel.instruction, dialogs.VectorPanel.instruction, dialogs.LegendDialog.instruction, frame.PsMapFrame.InstructionFile(), frame.PsMapFrame.pageId, dialogs.LegendDialog.pageId, and utils.SetResolution().
Referenced by frame.PsMapFrame.OnPDFFile(), frame.PsMapFrame.OnPreview(), and frame.PsMapFrame.OnPSFile().
frame.PsMapFrame.actionOld |
Definition at line 72 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnAddMap().
frame.PsMapFrame.book |
Definition at line 189 of file psmap/frame.py.
frame.PsMapFrame.brush |
Definition at line 108 of file psmap/frame.py.
Referenced by frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftUp(), and frame.PsMapBufferedWindow.Zoom().
frame.PsMapFrame.canvas |
Definition at line 138 of file psmap/frame.py.
frame.PsMapFrame.cmdThread |
Definition at line 163 of file psmap/frame.py.
frame.PsMapFrame.currentPage |
Definition at line 136 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnCmdDone().
frame.PsMapFrame.cursorOld |
Definition at line 483 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnAddMap().
frame.PsMapFrame.cursors |
Definition at line 85 of file psmap/frame.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.OnFlyThrough(), frame.PsMapBufferedWindow.OnMouseMoving(), mapdisplay.MapFrame.OnPan(), frame.PsMapFrame.OnPan(), mapdisplay.MapFrame.OnPointer(), frame.PsMapFrame.OnPointer(), frame.MapFrame.OnPointer(), frame.MapFrame.OnQuery(), frame.MapFrame.OnRotate(), mapdisplay.MapFrame.OnZoomIn(), frame.PsMapFrame.OnZoomIn(), mapdisplay.MapFrame.OnZoomOut(), and frame.PsMapFrame.OnZoomOut().
frame.PsMapFrame.delayedCall |
Definition at line 371 of file psmap/frame.py.
frame.PsMapFrame.iconsize |
Definition at line 73 of file psmap/frame.py.
frame.PsMapFrame.imgName |
Definition at line 150 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnCmdDone().
frame.PsMapFrame.instruction |
Definition at line 130 of file psmap/frame.py.
Referenced by instructions.Instruction.__contains__(), instructions.Instruction.__delitem__(), instructions.Instruction.__getitem__(), instructions.InstructionObject.__getitem__(), instructions.InstructionObject.__setitem__(), instructions.Instruction.__str__(), instructions.MapFrame.__str__(), instructions.PageSetup.__str__(), instructions.Mapinfo.__str__(), instructions.Text.__str__(), instructions.Image.__str__(), instructions.NorthArrow.__str__(), instructions.Point.__str__(), instructions.Line.__str__(), instructions.Rectangle.__str__(), instructions.Scalebar.__str__(), instructions.RasterLegend.__str__(), instructions.VectorLegend.__str__(), instructions.Raster.__str__(), instructions.VProperties.__str__(), instructions.Image.ChangeRefPoint(), frame.PsMapBufferedWindow.Draw(), instructions.Instruction.FindInstructionByType(), frame.PsMapFrame.getFile(), instructions.InstructionObject.GetInstruction(), frame.PsMapFrame.InstructionFile(), frame.PsMapBufferedWindow.OnButtonDClick(), frame.PsMapFrame.OnCmdDone(), frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftUp(), frame.PsMapFrame.OnLoadFile(), frame.PsMapFrame.OnPageSetup(), frame.PsMapFrame.PSFile(), instructions.MapFrame.Read(), instructions.Mapinfo.Read(), instructions.Image.Read(), instructions.Point.Read(), instructions.Line.Read(), instructions.Rectangle.Read(), instructions.Scalebar.Read(), instructions.Vector.Read(), frame.PsMapBufferedWindow.RecalculateEN(), frame.PsMapBufferedWindow.RecalculatePosition(), instructions.InstructionObject.SetInstruction(), frame.PsMapBufferedWindow.SetPage(), and frame.PsMapBufferedWindow.Zoom().
frame.PsMapFrame.menubar |
Definition at line 65 of file psmap/frame.py.
frame.PsMapFrame.mouse |
Definition at line 79 of file psmap/frame.py.
Referenced by frame.PsMapBufferedWindow.ComputeZoom(), frame.PsMapFrame.OnAddMap(), frame.PsMapBufferedWindow.OnButtonDClick(), frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftDown(), frame.PsMapBufferedWindow.OnLeftUp(), frame.PsMapBufferedWindow.OnMiddleDown(), frame.PsMapBufferedWindow.OnMouseMoving(), frame.PsMapBufferedWindow.OnMouseWheel(), frame.PsMapFrame.OnPan(), frame.PsMapFrame.OnPointer(), frame.PsMapFrame.OnZoomIn(), and frame.PsMapFrame.OnZoomOut().
frame.PsMapFrame.mouseOld |
Definition at line 481 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnAddMap().
frame.PsMapFrame.objectId |
Definition at line 127 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnLoadFile(), frame.PsMapFrame.OnPageSetup(), and frame.PsMapBufferedWindow.Zoom().
frame.PsMapFrame.openDialogs |
Definition at line 132 of file psmap/frame.py.
Referenced by frame.PsMapFrame.OnAddMap(), and frame.PsMapBufferedWindow.OnLeftUp().
frame.PsMapFrame.pageId |
Definition at line 134 of file psmap/frame.py.
Referenced by frame.PsMapBufferedWindow.CanvasPaperCoordinates(), frame.PsMapFrame.OnCmdDone(), frame.PsMapFrame.OnLoadFile(), frame.PsMapFrame.PSFile(), frame.PsMapBufferedWindow.SetPage(), frame.PsMapBufferedWindow.Zoom(), and frame.PsMapBufferedWindow.ZoomAll().
frame.PsMapFrame.parent |
Definition at line 60 of file psmap/frame.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().
frame.PsMapFrame.pen |
Definition at line 92 of file psmap/frame.py.
Referenced by frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftUp(), and frame.PsMapBufferedWindow.Zoom().
frame.PsMapFrame.previewCanvas |
Definition at line 153 of file psmap/frame.py.
frame.PsMapFrame.requestQ |
Definition at line 160 of file psmap/frame.py.
frame.PsMapFrame.resultQ |
Definition at line 161 of file psmap/frame.py.
frame.PsMapFrame.statusbar |
Definition at line 75 of file psmap/frame.py.
frame.PsMapFrame.toolbar |
Definition at line 69 of file psmap/frame.py.
Referenced by mapwindow.BufferedWindow.OnDragging(), mapwindow.VDigitWindow.OnKeyDown(), mapwindow.VDigitWindow.OnLeftDownUndo(), and mapwindow.VDigitWindow.SetToolbar().