ivmartel / dwv

DICOM Web Viewer: open source zero footprint medical image library.
https://ivmartel.github.io/dwv/
GNU General Public License v3.0
1.68k stars 593 forks source link

multiple viewer in same page for multiple serious load #91

Closed mohamedsharaf closed 9 years ago

mohamedsharaf commented 10 years ago

simple need to add more than one player in the same window

var app=new dwv.app();

var app2=new dwv.app();

var app3=new dwv.app();

how this can be done

mako87 commented 10 years ago

I have same problem!

We could create different levels for each series ...

... ... ... and in dwv.app define an array of layers. is it possible?
mohamedsharaf commented 10 years ago

think we should define viewer like this not as in index.html

just one div with id of viewer and full info be in it or some thing like this

we are waiting author he may have better idea

https://github.com/ivmartel

ivmartel commented 10 years ago

To understand, what will the user functionality be? Is it to have a more than one view in the same window, as for example a 4*4 layout? In all cases, I would prefer to only have one dwv.app handling everything.

mako87 commented 10 years ago

I'm agree to use a single dwv.app to handle eveything. My goal is to be able to view all the images of a complete exam (ex. CT) by a single loading urls even if the images have differents rows, columns or meta data. An idea could be to create a view for each series of the exam. Thank you for your support!

mohamedsharaf commented 10 years ago

mako87 the same i am trying to do

load data from different serious

instead of displaying alert message that cant view from different serious add new view or split screen to handle more than one serious

if you have suggestion on how this can be done really appreciate that

mohamedsharaf commented 10 years ago
$(".testfn").click(function() {
    //uploaded 10 slides through file selecting from pc
    //i will be in slide 0 then save status to app2 in slide 0
    var app2 = app;
    view = app.getView();
    view.incrementSliceNb();
    view.incrementSliceNb();
    view.incrementSliceNb();
    view.incrementSliceNb();
    // here app in slide 4 
    app = app2; //need to return back to slide 0 through variable 
    view.incrementSliceNb();//excepting slide 1 but its 5 whats wrong or how it can be done ? 
});
mako87 commented 10 years ago

I have realized it with another approach and it works!! I will post it later...

mohamedsharaf commented 10 years ago

thanks appreciate that waiting you

mako87 commented 10 years ago

https://github.com/mako87/dwv/

Tested on static viewer

mako87 commented 10 years ago

Hi, ivmartel! you've got to test my work?

ivmartel commented 10 years ago

Hi @mako87, yes, I had a quick look at your work and it works well! I'll have a look at the code. Does it work only with data from different series? The next step would be to have nice displays as @kile did some time ago: http://kile.stravaganza.org/blog/post/html5-dicom-viewer-layouts Good work, thanks.

mohamedsharaf commented 10 years ago

Kile layout is really nice does he posted any open source for that

ivmartel commented 10 years ago

Not that I know...

toskrip commented 10 years ago

Just want to point out that here is other project which implement multiple view layouts (with source code available) here: https://github.com/mi-kas/webDICOM

Maybe it is worth to look at it. Such layouting feature would be necessary if DWV should be considered as a DICOM study viewer (working with multiple series at time).

ivmartel commented 9 years ago

124 should fix this: it allows multiple app instances on the same page. Each app having its own data.

Beware that this is not a multi-slice view of one data. It could be used that way, but there would not be any synchronisation of the views. For updated on this, follow #133.