dwv
dwv copied to clipboard
multiple studies load
I want to load multiple studies like OHIF sample
But your project doesn't have an instruction manual with out Api docs. I want to load different dcm in different Layergroups. And chang active layergroup to display.
This is done with the data view configuration, in the form of:
{
0: [{divId: 'layerGroup0'}],
1: [{divId: 'layerGroup0'}],
2: [{divId: 'layerGroup1'}],
3: [{divId: 'layerGroup1'}]
}
The first index is the data index (given at load time), for each of them, you provide an array of view configurations that mainly contain the id of the associated html div. This object can also contain an orientation ('axial'|'coronal'|'sagittal').
The data view config is passed to the app via its init
or setDataViewConfig
method.
Check out the example viewer (tests/pacs/viewer.js) for an example implementation.
Closing for now, feel free to comment if you need.