jonathan: thuban/Thuban/Model layer.py,1.64,1.65

cvs@intevation.de cvs at intevation.de
Fri May 6 16:16:40 CEST 2005


Author: jonathan

Update of /thubanrepository/thuban/Thuban/Model
In directory doto:/tmp/cvs-serv30140/Thuban/Model

Modified Files:
	layer.py 
Log Message:
(RasterLayer): Added opacity and masktype parameters to the constructor, and 
set the appropriate variables to those values.


Index: layer.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/Model/layer.py,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- layer.py	23 Mar 2005 15:30:27 -0000	1.64
+++ layer.py	6 May 2005 14:16:38 -0000	1.65
@@ -348,7 +348,8 @@
     MASK_BIT   = 1
     MASK_ALPHA = 2
 
-    def __init__(self, title, filename, projection = None, visible = True):
+    def __init__(self, title, filename, projection = None, 
+                 visible = True, opacity = 1, masktype = MASK_BIT):
         """Initialize the Raster Layer.
 
         title -- title for the layer.
@@ -371,8 +372,8 @@
 
         self.bbox = -1
 
-        self.mask_type = self.MASK_BIT
-        self.opacity = 1
+        self.mask_type = masktype
+        self.opacity = opacity
 
         self.image_info = None
 





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)