GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
render.MapLayer Class Reference
Inheritance diagram for render.MapLayer:
Collaboration diagram for render.MapLayer:

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

Detailed Description

Definition at line 321 of file

Constructor & Destructor Documentation

def render.MapLayer.__init__ (   self,
  name = None,
  active = True,
  hidden = False,
  opacity = 1.0 

Represents map layer in the map canvas.

typelayer type ('raster', 'vector', 'command', etc.)
cmdGRASS command to render layer, given as list, e.g. ['d.rast', 'map=elevation']
namelayer name, e.g. 'elevation' (for layer tree) or None
activelayer is active, will be rendered only if True
hiddenlayer is hidden, won't be listed in Layer Manager if True
opacitylayer opacity <0;1>

Definition at line 323 of file

Member Function Documentation

def render.MapLayer.GetMapset (   self)

Get mapset of map layer.

mapset name
'' on error (no name given)

Definition at line 337 of file


The documentation for this class was generated from the following file: