Changeset 3067


Ignore:
Timestamp:
08/09/07 14:16:23 (13 years ago)
Author:
curtis
Message:

Guess at good default opacity settings when volume rendering is first used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/view/StackLink.java

    r3017 r3067  
    185185    this.volume = volume; 
    186186    if (volume) { 
     187      if (colorHandler.getOpacityModel() != ColorUtil.CURVED_ALPHA || 
     188        colorHandler.getOpacityValue() == 255) 
     189      { 
     190        // guess at good default opacity settings 
     191        int opacity = 100 - volumeRes / 4; 
     192        colorHandler.setOpacity(opacity, ColorUtil.CURVED_ALPHA, true); 
     193      } 
     194 
    187195      // save slice visibility settings and hide slice data 
    188196      int len = renderers.size(); 
Note: See TracChangeset for help on using the changeset viewer.