Skip to content

Commit

Permalink
Split draw and annotation group demo viewer code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Aug 28, 2024
1 parent 412b4b5 commit a57d43e
Show file tree
Hide file tree
Showing 4 changed files with 359 additions and 348 deletions.
9 changes: 8 additions & 1 deletion tests/pacs/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
font-style: italic;
}
button {
margin: 0 5px;
margin: 0 3px;
}
input[type=number] {
width: 75px;
Expand All @@ -59,6 +59,10 @@
font-style: italic;
}
}
fieldset ul {
padding-left: 20px;
margin: 0;
}
#fileinput {
width: 50%;
border: 1px dotted gray;
Expand Down Expand Up @@ -140,6 +144,7 @@
<script type="text/javascript" src="./dist/dwv.min.js"></script>
--><!-- local -->
<script type="text/javascript" src="./viewer.ui.js"></script>
<script type="text/javascript" src="./viewer.ui.annot.js"></script>
<script type="text/javascript" src="./viewer.ui.draw.js"></script>
<script type="text/javascript" src="./viewer.datatable.js"></script>
<script type="text/javascript" src="./viewer.rendertest.js"></script>
Expand Down Expand Up @@ -185,6 +190,8 @@
</fieldset>
</div>

<div id='annotationgroups-panel' class="line"></div>

<div id="layersdetails"></div>

<br>
Expand Down
7 changes: 6 additions & 1 deletion tests/pacs/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,16 @@ function viewerSetup() {
for (const toolName in _tools) {
if (typeof test.toolFeaturesUI[toolName] !== 'undefined') {
const toolUI = new test.toolFeaturesUI[toolName](_app, _tools[toolName]);
toolUI.registerListeners();
_toolFeaturesUI[toolName] = toolUI;
}
}

// annotation UI
if (typeof test.ui.Annotation !== 'undefined') {
const annotUI = new test.ui.Annotation(_app);
annotUI.registerListeners();
}

const uriOptions = {};
// uriOptions.batchSize = 100;
// special dicom web cookie
Expand Down
Loading

0 comments on commit a57d43e

Please sign in to comment.