Changeset 6325


Ignore:
Timestamp:
05/17/10 00:43:21 (10 years ago)
Author:
curtis
Message:

Remove unfinished VisBio option.

Location:
trunk/components/loci-plugins/src/loci/plugins/in
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/loci-plugins/src/loci/plugins/in/DisplayHandler.java

    r6296 r6325  
    128128    else if (options.isViewImage5D()) displayImage5D(imp); 
    129129    else if (options.isViewView5D()) displayView5D(imp); 
    130     else if (options.isViewVisBio()) displayVisBio(imp); 
    131130    else throw new IllegalStateException("Unknown display mode"); 
    132131  } 
     
    204203  } 
    205204 
    206   public void displayVisBio(ImagePlus imp) { 
    207     // NB: avoid dependency on optional loci.visbio packages 
    208     ReflectedUniverse ru = new ReflectedUniverse(); 
    209     try { 
    210       ru.exec("import loci.visbio.data.Dataset"); 
    211       //ru.setVar("name", name); 
    212       //ru.setVar("pattern", pattern); 
    213       ru.exec("dataset = new Dataset(name, pattern)"); 
    214       ru.setVar("imp", imp); 
    215       // CTR TODO: finish VisBio logic 
    216     } 
    217     catch (ReflectException exc) { 
    218       WindowTools.reportException(exc, options.isQuiet(), 
    219         "Sorry, there was a problem interfacing with VisBio"); 
    220     } 
    221   } 
    222  
    223205  public void displayROIs(ImagePlus[] imps) { 
    224206    if (!options.showROIs()) return; 
  • trunk/components/loci-plugins/src/loci/plugins/in/ImporterOptions.java

    r6324 r6325  
    9393  public static final String VIEW_HYPERSTACK = "Hyperstack"; 
    9494  public static final String VIEW_BROWSER    = "Data Browser"; 
    95   public static final String VIEW_VISBIO     = "VisBio"; 
    9695  public static final String VIEW_IMAGE_5D   = "Image5D"; 
    9796  public static final String VIEW_VIEW_5D    = "View5D"; 
    9897 
    9998  // class to check for each stackFormat value 
    100   private static final String CLASS_VISBIO   = "loci.visbio.VisBio"; 
    10199  private static final String CLASS_IMAGE_5D = "i5d.Image5D"; 
    102100  private static final String CLASS_VIEW_5D  = "view5d.View5D_"; 
     
    143141    // remove unavailable stack formats 
    144142    StringOption stackFormat = getStringOption(KEY_STACK_FORMAT); 
    145     if (!LibraryChecker.checkClass(CLASS_VISBIO)) { 
    146       stackFormat.removePossible(VIEW_VISBIO); 
    147     } 
    148143    if (!LibraryChecker.checkClass(CLASS_IMAGE_5D)) { 
    149144      stackFormat.removePossible(VIEW_IMAGE_5D); 
     
    322317    return VIEW_BROWSER.equals(getStackFormat()); 
    323318  } 
    324   public boolean isViewVisBio() { return VIEW_VISBIO.equals(getStackFormat()); } 
    325319  public boolean isViewImage5D() { 
    326320    return VIEW_IMAGE_5D.equals(getStackFormat()); 
  • trunk/components/loci-plugins/src/loci/plugins/in/MainDialog.java

    r6322 r6325  
    434434    boolean isStackBrowser = 
    435435      stackFormatValue.equals(ImporterOptions.VIEW_BROWSER); 
    436     boolean isStackVisBio = 
    437       stackFormatValue.equals(ImporterOptions.VIEW_VISBIO); 
    438436    boolean isStackImage5D = 
    439437      stackFormatValue.equals(ImporterOptions.VIEW_IMAGE_5D); 
     
    460458 
    461459    // stackOrderChoice 
    462     stackOrderEnabled = isStackVisBio; 
     460    stackOrderEnabled = false; 
    463461    if (src == stackFormatChoice) { 
    464462      if (isStackHyperstack || isStackBrowser || isStackImage5D) { 
     
    517515 
    518516    // colorModeChoice 
    519     colorModeEnabled = !isStackImage5D && !isStackView5D && !isStackVisBio; 
     517    colorModeEnabled = !isStackImage5D && !isStackView5D; 
    520518    if (!colorModeEnabled) colorModeValue = ImporterOptions.COLOR_MODE_DEFAULT; 
    521519 
     
    527525 
    528526    boolean splitEnabled = !isStackNone && !isStackBrowser && 
    529       !isStackVisBio && !isStackImage5D && !isStackView5D && !isVirtual; 
     527      !isStackImage5D && !isStackView5D && !isVirtual; 
    530528    // TODO: make splitting work with Data Browser & virtual stacks 
    531529 
  • trunk/components/loci-plugins/src/loci/plugins/in/importer-options.txt

    r6322 r6325  
    273273  multidimensional Data Browser viewer. The Data Browser has some     \ 
    274274  additional features on top of the normal ImageJ hyperstack.</li>    \ 
    275   <li><b>VisBio</b> - Not yet implemented.</li>                       \ 
    276275  <li><b>Image5D</b> - Display the pixels in                          \ 
    277276  Joachim Walter's Image5D viewer. Requires the Image5D plugin.</li>  \ 
     
    284283  Hyperstack,      \ 
    285284  Data Browser,    \ 
    286   VisBio,          \ 
    287285  Image5D,         \ 
    288286  View5D 
Note: See TracChangeset for help on using the changeset viewer.