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

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
 

Detailed Description

Definition at line 351 of file render.py.

Constructor & Destructor Documentation

def render.Overlay.__init__ (   self,
  id,
  type,
  cmd,
  active = True,
  hidden = True,
  opacity = 1.0 
)

Represents overlay displayed in map canvas.

Parameters
idoverlay id (for PseudoDC)
typeoverlay type ('barscale', 'legend', etc.)
cmdGRASS command to render overlay, given as list, e.g. ['d.legend', 'map=elevation']
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 353 of file render.py.

Field Documentation


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