Changeset 3478


Ignore:
Timestamp:
12/14/07 13:24:41 (12 years ago)
Author:
melissa
Message:

Added option to view as a HyperStack, if ImageJ version is >= 1.39l.

Location:
trunk/loci/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/Importer.java

    r3460 r3478  
    385385            stackOrder = ImporterOptions.ORDER_XYZCT; 
    386386          } 
    387           if (options.isViewImage5D()) { 
     387          if (options.isViewImage5D() || options.isViewHyperstack()) { 
    388388            stackOrder = ImporterOptions.ORDER_XYCZT; 
    389389          } 
     
    694694    } 
    695695    else if (!options.isViewNone()) { 
     696      imp.setOpenAsHyperStack(options.isViewHyperstack()); 
    696697      if (!concatenate) { 
    697698        imp.show(); 
  • trunk/loci/plugins/ImporterOptions.java

    r3460 r3478  
    6565  public static final String VIEW_IMAGE_5D = "Image5D"; 
    6666  public static final String VIEW_VIEW_5D = "View5D"; 
     67  public static final String VIEW_HYPERSTACK = "Hyperstack"; 
    6768 
    6869  // enumeration for stackOrder 
     
    202203  public boolean isViewBrowser() { return VIEW_BROWSER.equals(stackFormat); } 
    203204  public boolean isViewView5D() { return VIEW_VIEW_5D.equals(stackFormat); } 
     205  public boolean isViewHyperstack() { 
     206    return VIEW_HYPERSTACK.equals(stackFormat); 
     207  } 
    204208 
    205209  public String getLocation() { return location; } 
     
    477481    if (Checker.checkClass(CLASS_IMAGE_5D)) stackTypes.add(VIEW_IMAGE_5D); 
    478482    if (Checker.checkClass(CLASS_VIEW_5D)) stackTypes.add(VIEW_VIEW_5D); 
     483    if (IJ.getVersion().compareTo("1.39l") >= 0) { 
     484      stackTypes.add(VIEW_HYPERSTACK); 
     485    } 
    479486    final String[] stackFormats = new String[stackTypes.size()]; 
    480487    stackTypes.copyInto(stackFormats); 
     
    811818      else if (s.equals(VIEW_VIEW_5D)) { 
    812819      } 
     820      else if (s.equals(VIEW_HYPERSTACK)) { 
     821        orderChoice.select(ORDER_XYCZT); 
     822      } 
     823    } 
     824    else if (src == orderChoice) { 
     825      String s = orderChoice.getSelectedItem(); 
     826      if (!s.equals(ORDER_XYCZT) && 
     827        stackChoice.getSelectedItem().equals(VIEW_HYPERSTACK)) 
     828      { 
     829        stackChoice.select(VIEW_STANDARD); 
     830      } 
    813831    } 
    814832    else if (src == mergeBox) { 
Note: See TracChangeset for help on using the changeset viewer.