dwv icon indicating copy to clipboard operation
dwv copied to clipboard

multiple studies load

Open leehonleon opened this issue 2 years ago • 1 comments

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.

leehonleon avatar Jun 22 '22 07:06 leehonleon

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.

ivmartel avatar Jun 30 '22 17:06 ivmartel

Closing for now, feel free to comment if you need.

ivmartel avatar Mar 06 '23 14:03 ivmartel