LT-115: Reloading and showing CR/UN/EX measurements properly
This commit is contained in:
1 parent
a41e50d79f
commit
0b6776f777
10 files changed
+29
-16
No files matched your search
@@ -65,7 +65,7 @@ function activateTool(element, measurementData, timepointId) {
|
||||
deactivateAllToolData(element, 'unTool');
|
||||
deactivateAllToolData(element, 'exTool');
|
||||
|
||||
var toolType = measurementData.toolType ? measurementData.toolType:(measurementData.isTarget ? 'lesion' : 'nonTarget');
|
||||
var toolType = measurementData.toolType;
|
||||
var toolData = cornerstoneTools.getToolState(element, toolType);
|
||||
if (!toolData) {
|
||||
return;
|
||||
|
||||
@@ -8,7 +8,7 @@ clearMeasurementTimepointData = function(measurementId, timepointId) {
|
||||
|
||||
// Clear the Measurement data for this timepoint
|
||||
var imageId = data.timepoints[timepointId].imageId;
|
||||
var toolType = data.isTarget ? 'lesion' : 'nonTarget';
|
||||
var toolType = data.toolType;
|
||||
removeToolDataWithMeasurementId(imageId, toolType, measurementId);
|
||||
|
||||
// Update any viewports that are currently displaying this imageId
|
||||
|
||||
@@ -3,7 +3,7 @@ syncMeasurementAndToolData = function(measurement) {
|
||||
|
||||
// Check what toolType we should be adding this to, based on the isTarget value
|
||||
// of the stored Measurement
|
||||
var toolType = measurement.isTarget ? 'lesion' : 'nonTarget';
|
||||
var toolType = measurement.toolType;
|
||||
|
||||
// Loop through the timepoint data for this measurement
|
||||
Object.keys(measurement.timepoints).forEach(function(key) {
|
||||
|
||||
Reference in new issue
Block a user