Changeset 106 for trunk/loci/visbio/view


Ignore:
Timestamp:
12/02/04 16:28:16 (15 years ago)
Author:
curtis
Message:

Support for immediate mode data transforms.

File:
1 edited

Legend:

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

    r98 r106  
    157157  /** Sets status messages displayed in display's bottom left-hand corner. */ 
    158158  public void setMessage(String msg) { 
     159    if (trans.isImmediate()) return; // no messages in immediate mode 
    159160    status = msg == null ? null : 
    160161      new VisADException(trans.getName() + ": " + msg); 
     
    338339  /** Updates displayed data based on current dimensional position. */ 
    339340  protected void doTransform(long delay) { 
    340     computeData(true); 
    341     // request a new burn-in in delay milliseconds 
    342     burnTime = System.currentTimeMillis() + delay; 
    343     if (delay < 100) burnNow = true; 
     341    if (trans.isImmediate()) computeData(false); 
     342    else { 
     343      computeData(true); 
     344      // request a new burn-in in delay milliseconds 
     345      burnTime = System.currentTimeMillis() + delay; 
     346      if (delay < 100) burnNow = true; 
     347    } 
    344348  } 
    345349 
     
    349353   */ 
    350354  protected synchronized void computeData(boolean thumbs) { 
    351     /*TEMP*///System.out.println("computeData(" + thumbs + "): start"); 
    352355    int[] pos = handler.getPos(trans); 
    353356    ThumbnailHandler th = trans.getThumbHandler(); 
     
    366369      if (colorHandler != null) colorHandler.reAutoScale(); 
    367370    } 
    368     /*TEMP*///System.out.println("computeData(" + thumbs + "): end"); 
    369371  } 
    370372 
Note: See TracChangeset for help on using the changeset viewer.