Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.

Changes between Initial Version and Version 1 of Ticket #10270


Ignore:
Timestamp:
02/02/13 22:43:41 (11 years ago)
Author:
wmoore
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10270 – Description

    initial v1  
    1616 
    1717These jQuery plugins could be viewportImage, rendering panel etc. 
     18 
     19A good first step would be to create tests that use all methods from the existing viewport API, and then to switch the test to using the new jQuery plugin, testing all the same methods. 
     20 
     21Let's start by jotting down the existing API. 
     22 
     23viewportImage 
     24{{{ 
     25showOverlay(url, cb, error_cb) 
     26hideOverlay() 
     27overlayVisible() 
     28doMove(deltax, deltay, smooth, auto_move_cb) 
     29getOrigWidth() 
     30getOrigHeight() 
     31 
     32getXOffset() 
     33setXOffset(xoffset) 
     34getYOffset() 
     35setYOffset(yoffset) 
     36 
     37getZoom() 
     38setZoom (val, width, height) 
     39setZoomToFit(only_shrink, width, height) 
     40doZoom(increment, justDirection) 
     41 
     42getBigImageContainer() 
     43setUpTiles(imagewidth, imageheight, xtilesize, ytilesize, init_zoom, levels, href, thref, init_cx, init_cy) 
     44destroyTiles() 
     45 
     46refresh() 
     47}}} 
     48 
     49viewport.js 
     50 
     51{{{ 
     52setZPos(pos) 
     53setTPos(pos) 
     54load(iid, dsid, query) 
     55hasLinePlot() 
     56getLinePlot() 
     57prepareLinePlot() 
     58startPickPos() 
     59stopPickPos() 
     60loadPlot(pos) 
     61loadRowPlot(y) 
     62hidePlot() 
     63refreshPlot(cb) 
     64refresh(allow_resize) 
     65getAuthor() 
     66getChannels() 
     67toggleChannel(idx) 
     68getCCount() 
     69setChannelActive(idx, act, noreload) 
     70setChannelColor(idx, color, noreload) 
     71setChannelLabel(idx, color, noreload) 
     72setChannelWindow(idx, start, end, noreload) 
     73getMetadata() 
     74getProjection() 
     75setProjection(p, noreload) 
     76setInvertedAxis(p, noreload) 
     77setModel(m, noreload) 
     78getModel() 
     79isGreyModel() 
     80getPixelSizes() 
     81setQuality(q, noreload) 
     82getQuality() 
     83setServer() 
     84getSizes() 
     85getTCount() 
     86getPos() 
     87getTPos() 
     88getZCount() 
     89getZPos() 
     90setZoom(z) 
     91getZoom() 
     92setZoomToFit(only_shrink) 
     93save_channels() 
     94undo_channels() 
     95has_channels_undo() 
     96redo_channels() 
     97has_channels_redo() 
     98reset_channels() 
     99bookmark_channels() 
     100back_to_bookmarked_channels() 
     101forget_bookmark_channels() 
     102getQuery() 
     103setQuery(query) 
     104getRelUrl(append) 
     105getUrl(base) 
     106getCurrentImgUrlPath() 
     107hasSettingsChanges() 
     108bind(event, callback) 
     109}}} 

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.11804 sec.)

We're Hiring!