Changeset 7974


Ignore:
Timestamp:
04/15/12 22:38:09 (7 years ago)
Author:
aivar
Message:

SLIM Plugin: Further work on masking.

Location:
trunk/projects/slim-plugin/src/main/java/loci/slim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-plugin/src/main/java/loci/slim/histogram/HistogramTool.java

    r7962 r7974  
    434434        @Override 
    435435        public void setExcludePixels(boolean excludePixels) { 
     436            //TODO ARG Mask selfMask = null; 
    436437            synchronized (_synchObject) { 
     438                if (excludePixels) { 
     439 
     440                } 
     441                else { 
     442 
     443                } 
    437444                //TODO ARG 
    438445                System.out.println("set exclude pixels " + excludePixels); 
  • trunk/projects/slim-plugin/src/main/java/loci/slim/mask/MaskNode.java

    r7961 r7974  
    1212public class MaskNode implements IMaskNode { 
    1313    IMaskGroup _maskGroup; 
     14    IMaskNodeListener _listener; 
    1415    Mask _selfMask; 
    15     Mask _otherMask; 
     16    volatile Mask _otherMask; 
    1617     
    17     public MaskNode(IMaskGroup maskGroup) { 
     18    public MaskNode(IMaskGroup maskGroup, IMaskNodeListener listener) { 
    1819        _maskGroup = maskGroup; 
     20        _listener = listener; 
    1921    } 
    2022 
    2123    /** 
    22      * This method notifies other nodes that this node has changed the mask. 
     24     * This method notifies other nodes that this node has changed its mask. 
    2325     *  
    2426     * @param mask  
     
    2628    public void updateSelfMask(Mask mask) { 
    2729        _maskGroup.updateMask(this, mask); 
    28         //TODO ARG promulgate changes 
    29         //  this should change the image and not the histogram 
    3030    } 
    3131 
     
    4040 
    4141    /** 
    42      * This method notifies a node that other nodes have changed the mask. 
     42     * This method notifies this node that other nodes have changed the mask. 
    4343     *  
    4444     * @param mask  
     
    4646    public void updateOtherMask(Mask mask) { 
    4747        _otherMask = mask; 
    48         //TODO ARG promulgate changes; need a listener 
    49         //  this should change the image and the histogram 
     48        _listener.updateMask(mask); 
    5049    } 
    5150 
Note: See TracChangeset for help on using the changeset viewer.