chore: Tag everything currently unused as legacy.

This commit is contained in:
James A. Petts authored and Erik Ziegler committed 2021-02-11 17:29:07 +01:00
1 parent 8392c1f97e
commit 414ebc6850
161 files changed
+128 -14712

No files matched your search

@@ -1,23 +0,0 @@
const displayFunction = data => {
let text = '';
if (data.rAngle && !isNaN(data.rAngle)) {
text = data.rAngle.toFixed(2) + String.fromCharCode(parseInt('00B0', 16));
}
return text;
};
export const angle = {
id: 'Angle',
name: 'Angle',
toolGroup: 'allTools',
cornerstoneToolType: 'Angle',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,19 +0,0 @@
const displayFunction = data => {
return data.text || '';
};
export const arrowAnnotate = {
id: 'ArrowAnnotate',
name: 'ArrowAnnotate',
toolGroup: 'allTools',
cornerstoneToolType: 'ArrowAnnotate',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,24 +0,0 @@
const displayFunction = data => {
if (data.shortestDiameter) {
// TODO: Make this check criteria again to see if we should display shortest x longest
return data.longestDiameter + ' x ' + data.shortestDiameter;
}
return data.longestDiameter;
};
export const bidirectional = {
id: 'Bidirectional',
name: 'Target',
toolGroup: 'allTools',
cornerstoneToolType: 'Bidirectional',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,24 +0,0 @@
const displayFunction = data => {
let meanValue = '';
const { cachedStats } = data;
if (cachedStats && cachedStats.mean && !isNaN(cachedStats.mean)) {
meanValue = cachedStats.mean.toFixed(2) + ' HU';
}
return meanValue;
};
export const circleRoi = {
id: 'CircleRoi',
name: 'Circle',
toolGroup: 'allTools',
cornerstoneToolType: 'CircleRoi',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,24 +0,0 @@
const displayFunction = data => {
let meanValue = '';
const { cachedStats } = data;
if (cachedStats && cachedStats.mean && !isNaN(cachedStats.mean)) {
meanValue = cachedStats.mean.toFixed(2) + ' HU';
}
return meanValue;
};
export const ellipticalRoi = {
id: 'EllipticalRoi',
name: 'Ellipse',
toolGroup: 'allTools',
cornerstoneToolType: 'EllipticalRoi',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,23 +0,0 @@
const displayFunction = data => {
let meanValue = '';
if (data.meanStdDev && data.meanStdDev.mean && !isNaN(data.meanStdDev.mean)) {
meanValue = data.meanStdDev.mean.toFixed(2) + ' HU';
}
return meanValue;
};
export const freehandMouse = {
id: 'FreehandMouse',
name: 'Freehand',
toolGroup: 'allTools',
cornerstoneToolType: 'FreehandMouse',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,27 +0,0 @@
import { arrowAnnotate } from './arrowAnnotate';
import { bidirectional } from './bidirectional';
import { ellipticalRoi } from './ellipticalRoi';
import { circleRoi } from './circleRoi';
import { freehandMouse } from './freehandMouse';
import { length } from './length';
import { nonTarget } from './nonTarget';
import { rectangleRoi } from './rectangleRoi';
import { angle } from './angle';
import { targetCR } from './targetCR';
import { targetNE } from './targetNE';
import { targetUN } from './targetUN';
export {
arrowAnnotate,
bidirectional,
ellipticalRoi,
circleRoi,
freehandMouse,
length,
nonTarget,
rectangleRoi,
angle,
targetCR,
targetNE,
targetUN,
};
@@ -1,23 +0,0 @@
const displayFunction = data => {
let lengthValue = '';
if (data.length && !isNaN(data.length)) {
lengthValue = data.length.toFixed(2) + ' mm';
}
return lengthValue;
};
export const length = {
id: 'Length',
name: 'Length',
toolGroup: 'allTools',
cornerstoneToolType: 'Length',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,15 +0,0 @@
export const nonTarget = {
id: 'NonTarget',
name: 'Non-Target',
toolGroup: 'allTools',
cornerstoneToolType: 'NonTarget',
options: {
measurementTable: {
displayFunction: data => data.response,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,24 +0,0 @@
const displayFunction = data => {
let meanValue = '';
const { cachedStats } = data;
if (cachedStats && cachedStats.mean && !isNaN(cachedStats.mean)) {
meanValue = cachedStats.mean.toFixed(2) + ' HU';
}
return meanValue;
};
export const rectangleRoi = {
id: 'RectangleRoi',
name: 'Rectangle',
toolGroup: 'allTools',
cornerstoneToolType: 'RectangleRoi',
options: {
measurementTable: {
displayFunction,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,15 +0,0 @@
export const targetCR = {
id: 'TargetCR',
name: 'CR Target',
toolGroup: 'allTools',
cornerstoneToolType: 'TargetCR',
options: {
measurementTable: {
displayFunction: data => data.response,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,15 +0,0 @@
export const targetNE = {
id: 'TargetNE',
name: 'NE Target',
toolGroup: 'allTools',
cornerstoneToolType: 'TargetNE',
options: {
measurementTable: {
displayFunction: data => data.response,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};
@@ -1,15 +0,0 @@
export const targetUN = {
id: 'TargetUN',
name: 'UN Target',
toolGroup: 'allTools',
cornerstoneToolType: 'TargetUN',
options: {
measurementTable: {
displayFunction: data => data.response,
},
caseProgress: {
include: true,
evaluate: true,
},
},
};