ohif-viewer/Packages/ohif-lesiontracker/both/configuration/tools/ellipse.js
2017-09-05 21:13:07 -03:00

35 lines
880 B
JavaScript

import { SimpleSchema } from 'meteor/aldeed:simple-schema';
import { MeasurementSchemaTypes } from 'meteor/ohif:measurements/both/schema/measurements';
const CornerstoneHandleSchema = MeasurementSchemaTypes.CornerstoneHandleSchema;
const EllipseHandlesSchema = new SimpleSchema({
start: {
type: CornerstoneHandleSchema,
label: 'Start'
},
end: {
type: CornerstoneHandleSchema,
label: 'End'
},
textBox: {
type: CornerstoneHandleSchema,
label: 'Text Box'
},
});
const EllipseSchema = new SimpleSchema([MeasurementSchemaTypes.CornerstoneToolMeasurement, {
handles: {
type: EllipseHandlesSchema,
label: 'Handles'
}
}]);
export const ellipse = {
id: 'ellipticalRoi',
name: 'Ellipse',
toolGroup: 'temp',
cornerstoneToolType: 'ellipticalRoi',
schema: EllipseSchema
};