Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebApplication/app.js @ 1593:b782f78aed42
rendering osirix annotations
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 23 Oct 2020 17:39:16 +0200 |
parents | 2a4a6b967053 |
children | 4fb8fdf03314 |
comparison
equal
deleted
inserted
replaced
1592:0d4b11ba86df | 1593:b782f78aed42 |
---|---|
546 console.warn('Loading series: ' + series + ' from study ' + study); | 546 console.warn('Loading series: ' + series + ' from study ' + study); |
547 stone.FetchSeries(study, series); | 547 stone.FetchSeries(study, series); |
548 app.leftMode = 'full'; | 548 app.leftMode = 'full'; |
549 } | 549 } |
550 } | 550 } |
551 | |
552 | |
553 | |
554 // TODO - TEST | |
555 axios.get('length.xml') | |
556 .then(function (response) { | |
557 stone.LoadOsiriXAnnotations(response.data, false); | |
558 }); | |
559 | |
560 axios.get('angle.xml') | |
561 .then(function (response) { | |
562 stone.LoadOsiriXAnnotations(response.data, false); | |
563 }); | |
564 | |
565 axios.get('arrow.xml') | |
566 .then(function (response) { | |
567 stone.LoadOsiriXAnnotations(response.data, false); | |
568 }); | |
569 | |
570 axios.get('text.xml') | |
571 .then(function (response) { | |
572 stone.LoadOsiriXAnnotations(response.data, false); | |
573 }); | |
574 | |
575 | |
551 }); | 576 }); |
552 | 577 |
553 | 578 |
554 window.addEventListener('ResourcesLoaded', function() { | 579 window.addEventListener('ResourcesLoaded', function() { |
555 console.log('resources loaded'); | 580 console.log('resources loaded'); |