GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
A Buffered window class. More...
Public Member Functions | |
def | __init__ |
def | Draw |
Draws preview or clears window. More... | |
def | OnPaint |
Draw pseudo DC to buffer. More... | |
def | OnSize |
Init image size to match window size. More... | |
def | OnIdle |
Only re-render a preview image from GRASS during idle time instead of multiple times during resizing. More... | |
def | GetImage |
Converts files to wx.Image. More... | |
def | UpdatePreview |
Update canvas if window changes geometry. More... | |
def | EraseMap |
Erase preview. More... | |
Data Fields | |
parent | |
Map | |
render | |
resize | |
mapfile | |
img | |
pdc | |
A Buffered window class.
Definition at line 1676 of file colorrules.py.
def colorrules.BufferedWindow.__init__ | ( | self, | |
parent, | |||
id, | |||
style = wx.NO_FULL_REPAINT_ON_RESIZE , |
|||
Map = None , |
|||
kwargs | |||
) |
Definition at line 1680 of file colorrules.py.
def colorrules.BufferedWindow.Draw | ( | self, | |
pdc, | |||
img = None , |
|||
pdctype = 'image' |
|||
) |
Draws preview or clears window.
Definition at line 1715 of file colorrules.py.
Referenced by frame.PsMapBufferedWindow.DrawGraphics(), histogram.BufferedWindow.EraseMap(), colorrules.BufferedWindow.EraseMap(), frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftUp(), tools.PositionWindow.OnMouse(), tools.PositionWindow.PostDraw(), tools.LightPositionWindow.PostDraw(), histogram.BufferedWindow.SaveToFile(), wxnviz.Nviz.SaveToFile(), histogram.BufferedWindow.UpdateHist(), colorrules.BufferedWindow.UpdatePreview(), and frame.PsMapBufferedWindow.Zoom().
def colorrules.BufferedWindow.EraseMap | ( | self | ) |
Erase preview.
Definition at line 1830 of file colorrules.py.
References mapwindow.BufferedWindow.Draw(), colorrules.BufferedWindow.Draw(), mapwindow.BufferedWindow.pdc, and colorrules.BufferedWindow.pdc.
def colorrules.BufferedWindow.GetImage | ( | self | ) |
Converts files to wx.Image.
Definition at line 1792 of file colorrules.py.
Referenced by histogram.BufferedWindow.OnSize(), colorrules.BufferedWindow.OnSize(), histogram.BufferedWindow.SaveToFile(), histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().
def colorrules.BufferedWindow.OnIdle | ( | self, | |
event | |||
) |
Only re-render a preview image from GRASS during idle time instead of multiple times during resizing.
Definition at line 1783 of file colorrules.py.
References colorrules.BufferedWindow.render, manager.GCPList.render, mapwindow.BufferedWindow.resize, colorrules.BufferedWindow.resize, and colorrules.BufferedWindow.UpdatePreview().
def colorrules.BufferedWindow.OnPaint | ( | self, | |
event | |||
) |
Draw pseudo DC to buffer.
Definition at line 1739 of file colorrules.py.
References colorrules.BufferedWindow._Buffer.
def colorrules.BufferedWindow.OnSize | ( | self, | |
event | |||
) |
Init image size to match window size.
Definition at line 1761 of file colorrules.py.
References colorrules.BufferedWindow._Buffer, mapwindow.BufferedWindow.GetImage(), colorrules.BufferedWindow.GetImage(), mapwindow.BufferedWindow.img, dialogs.RegionDef.img, colorrules.BufferedWindow.img, colorrules.BufferedWindow.render, manager.GCPList.render, mapwindow.BufferedWindow.resize, colorrules.BufferedWindow.resize, and colorrules.BufferedWindow.UpdatePreview().
def colorrules.BufferedWindow.UpdatePreview | ( | self, | |
img = None |
|||
) |
Update canvas if window changes geometry.
Definition at line 1802 of file colorrules.py.
References mapwindow.BufferedWindow.Draw(), colorrules.BufferedWindow.Draw(), mapwindow.BufferedWindow.GetImage(), colorrules.BufferedWindow.GetImage(), mapwindow.BufferedWindow.img, dialogs.RegionDef.img, colorrules.BufferedWindow.img, mapwindow.BufferedWindow.mapfile, render.Layer.mapfile, render.Map.mapfile, colorrules.BufferedWindow.mapfile, mapwindow.BufferedWindow.pdc, colorrules.BufferedWindow.pdc, colorrules.BufferedWindow.render, manager.GCPList.render, mapwindow.BufferedWindow.resize, and colorrules.BufferedWindow.resize.
Referenced by colorrules.BufferedWindow.OnIdle(), and colorrules.BufferedWindow.OnSize().
colorrules.BufferedWindow.img |
Definition at line 1705 of file colorrules.py.
Referenced by histogram.BufferedWindow.OnSize(), colorrules.BufferedWindow.OnSize(), histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().
colorrules.BufferedWindow.Map |
Definition at line 1685 of file colorrules.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
colorrules.BufferedWindow.mapfile |
Definition at line 1703 of file colorrules.py.
Referenced by histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().
colorrules.BufferedWindow.parent |
Definition at line 1684 of file colorrules.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().
colorrules.BufferedWindow.pdc |
Definition at line 1707 of file colorrules.py.
Referenced by histogram.BufferedWindow.EraseMap(), colorrules.BufferedWindow.EraseMap(), histogram.BufferedWindow.SaveToFile(), histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().
colorrules.BufferedWindow.render |
Definition at line 1688 of file colorrules.py.
Referenced by mapwindow.GLWindow.DragItem(), mapwindow.GLWindow.FocusPanning(), mapwindow.GLWindow.GoTo(), mapwindow.GLWindow.HorizontalPanning(), mapwindow.GLWindow.OnDragging(), histogram.BufferedWindow.OnIdle(), colorrules.BufferedWindow.OnIdle(), mapwindow.GLWindow.OnKeyDown(), mapwindow.GLWindow.OnLeftUp(), mapwindow.GLWindow.OnPaint(), histogram.BufferedWindow.OnSize(), colorrules.BufferedWindow.OnSize(), mapwindow.GLWindow.OnTimerFly(), histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().
colorrules.BufferedWindow.resize |
Definition at line 1690 of file colorrules.py.
Referenced by histogram.BufferedWindow.OnIdle(), colorrules.BufferedWindow.OnIdle(), histogram.BufferedWindow.OnSize(), colorrules.BufferedWindow.OnSize(), histogram.BufferedWindow.UpdateHist(), and colorrules.BufferedWindow.UpdatePreview().