LT-332: Fixed tool color and shadow for target tool. Moved client-only utilities to client-folder in viewerbase to speed up reloading

This commit is contained in:
Erik Ziegler committed 2016-11-16 12:17:07 +01:00
1 parent c04c70b325
commit 8cf6666bb1
46 files changed
+67 -57

No files matched your search

@@ -0,0 +1,27 @@
/**
* Obtain an imageId for Cornerstone from an image instance
*
* @param instance
* @returns {string} The imageId to be used by Cornerstone
*/
getImageId = function(instance, frame) {
if (!instance) {
return;
}
if (instance.url) {
return instance.url;
}
if (instance.wadouri) {
var imageId = 'dicomweb:' + instance.wadouri; // WADO-URI;
if (frame !== undefined) {
imageId += '&frame=' + frame;
}
return imageId;
} else {
// TODO= Check multiframe image support with WADO-RS
return getWADORSImageId(instance); // WADO-RS Retrieve Frame
}
};