GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
Represents map layer in the map canvas. More... | |
def | GetMapset |
Get mapset of map layer. 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... | |
Additional Inherited Members | |
Data Fields inherited from render.Layer | |
type | |
name | |
cmd | |
active | |
hidden | |
opacity | |
force_render | |
mapfile | |
maskfile | |
def render.MapLayer.__init__ | ( | self, | |
type, | |||
cmd, | |||
name = None , |
|||
active = True , |
|||
hidden = False , |
|||
opacity = 1.0 |
|||
) |
Represents map layer in the map canvas.
type | layer type ('raster', 'vector', 'command', etc.) |
cmd | GRASS command to render layer, given as list, e.g. ['d.rast', 'map=elevation'] |
name | layer name, e.g. 'elevation' (for layer tree) or None |
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> |
def render.MapLayer.GetMapset | ( | self | ) |
Get mapset of map layer.
Definition at line 337 of file render.py.
References render.Layer.name.