Ignore:
Timestamp:
04/10/07 16:14:31 (13 years ago)
Author:
curtis
Message:

Pass TransformLink to getData method as optional first parameter. This can be
used to determine qualities of the display, for more intelligently presenting
the data. For example, overlay data could render differently depending on the
zoom level of the display (e.g., using pixel coordinates instead of display
coordinates).

File:
1 edited

Legend:

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

    r1989 r2594  
    451451      cachedPos = pos; 
    452452      Data d = dim == 3 ? 
    453         trans.getData(pos, 3, handler.getCache()) : getImageData(pos); 
     453        trans.getData(this, pos, 3, handler.getCache()) : getImageData(pos); 
    454454      if (th != null && thumb == null) { 
    455455        // fill in missing thumbnail 
     
    465465  /** Gets the transform's data at the given dimensional position. */ 
    466466  protected Data getImageData(int[] pos) { 
    467     return trans.getData(pos, 2, handler.getCache()); 
     467    return trans.getData(this, pos, 2, handler.getCache()); 
    468468  } 
    469469 
Note: See TracChangeset for help on using the changeset viewer.