/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/layer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/layer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2587 by jonathan, Wed Mar 23 15:30:27 2005 UTC revision 2614 by jonathan, Fri May 6 14:16:38 2005 UTC
# Line 348  class RasterLayer(BaseLayer): Line 348  class RasterLayer(BaseLayer):
348      MASK_BIT   = 1      MASK_BIT   = 1
349      MASK_ALPHA = 2      MASK_ALPHA = 2
350    
351      def __init__(self, title, filename, projection = None, visible = True):      def __init__(self, title, filename, projection = None,
352                     visible = True, opacity = 1, masktype = MASK_BIT):
353          """Initialize the Raster Layer.          """Initialize the Raster Layer.
354    
355          title -- title for the layer.          title -- title for the layer.
# Line 371  class RasterLayer(BaseLayer): Line 372  class RasterLayer(BaseLayer):
372    
373          self.bbox = -1          self.bbox = -1
374    
375          self.mask_type = self.MASK_BIT          self.mask_type = masktype
376          self.opacity = 1          self.opacity = opacity
377    
378          self.image_info = None          self.image_info = None
379    

Legend:
Removed from v.2587  
changed lines
  Added in v.2614

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26