paraview-glance
Version:
Web application for Visualizing Scientific and Medical datasets
53 lines (47 loc) • 1.38 kB
JavaScript
export const DEFAULT_VIEW_TYPE = 'View3D:default';
export const VIEW_TYPES = [
{ text: '3D', value: 'View3D:default' },
{ text: 'Orientation Y', value: 'View2D_Y:y' },
{ text: 'Orientation X', value: 'View2D_X:x' },
{ text: 'Orientation Z', value: 'View2D_Z:z' },
];
export const VIEW_TYPES_LPS = [
{ text: '3D', value: 'View3D:default' },
{ text: 'Sagittal', value: 'View2D_Y:y' },
{ text: 'Coronal', value: 'View2D_X:x' },
{ text: 'Axial', value: 'View2D_Z:z' },
];
/* eslint-disable no-template-curly-in-string */
export const CURSOR_ANNOTATIONS = {
se:
'${valueArCursor}<br>${cursorIJK} / ${cursorXYZ}<br>WL: ${windowLevel} / WW: ${windowWidth}',
};
export const ANNOTATIONS = {
s: 'Image size: ${sliceWidth} x ${sliceHeight}',
nw:
'Origin: ${sliceOrigin}<br>Spacing: ${sliceSpacing} mm<br>${sliceIndex} of ${sliceCount}',
se: 'WL: ${windowLevel} / WW: ${windowWidth}',
};
/* eslint-enable no-template-curly-in-string */
export const VIEW_ORIENTATIONS = {
default: {
axis: 1,
orientation: -1,
viewUp: [0, 0, 1],
},
x: {
axis: 0,
orientation: 1,
viewUp: [0, 0, 1],
},
y: {
axis: 1,
orientation: -1,
viewUp: [0, 0, 1],
},
z: {
axis: 2,
orientation: -1,
viewUp: [0, -1, 0],
},
};