GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
Represents overlay displayed in map canvas. More... | |
Public Member Functions inherited from render.Layer | |
def | __init__ |
def | __del__ |
def | Render |
Render layer to image. More... | |
def | GetCmd |
Get GRASS command as list of string. More... | |
def | GetType |
Get map layer type. More... | |
def | GetElement |
Get map element type. More... | |
def | GetOpacity |
def | GetName |
Get map layer name. More... | |
def | IsActive |
Check if layer is activated for rendering. More... | |
def | SetType |
Set layer type. More... | |
def | SetName |
Set layer name. More... | |
def | SetActive |
Active or deactive layer. More... | |
def | SetHidden |
Hide or show map layer in Layer Manager. More... | |
def | SetOpacity |
Set opacity value. More... | |
def | SetCmd |
Set new command for layer. More... | |
Data Fields | |
id | |
Data Fields inherited from render.Layer | |
type | |
name | |
cmd | |
active | |
hidden | |
opacity | |
force_render | |
mapfile | |
maskfile | |
def render.Overlay.__init__ | ( | self, | |
id, | |||
type, | |||
cmd, | |||
active = True , |
|||
hidden = True , |
|||
opacity = 1.0 |
|||
) |
Represents overlay displayed in map canvas.
id | overlay id (for PseudoDC) |
type | overlay type ('barscale', 'legend', etc.) |
cmd | GRASS command to render overlay, given as list, e.g. ['d.legend', 'map=elevation'] |
active | layer is active, will be rendered only if True |
hidden | layer is hidden, won't be listed in Layer Manager if True |
opacity | layer opacity <0;1> |
render.Overlay.id |
Definition at line 367 of file render.py.
Referenced by model.ModelLoop.__init__(), dialogs.MapFramePanel.getId(), dialogs.RasterPanel.getId(), dialogs.VectorPanel.getId(), wxnviz.Texture.GetId(), dialogs.MapDialog.OnApply(), dialogs.RasterDialog.OnApply(), dialogs.MainVectorDialog.OnApply(), model.ModelItem.SetText(), dialogs.RasterPanel.update(), dialogs.VectorPanel.update(), dialogs.MapinfoDialog.update(), dialogs.ScalebarDialog.update(), dialogs.TextDialog.update(), dialogs.ImageDialog.update(), and dialogs.PointDialog.update().