* Filter segs and fetch correct metadata. * Initiate seg loading logic on series load into viewport. Need to write. * Automatic consumption of SEG functional. * Pull in master. * Fix issues after pulling in master. * Clean up old segmentation handlers. * WIP * WIP * Poppulate viewport with metadata. * Show hide/segmentation in react-vtkjs-viewport. * feat: 🎸 View segmentations in vtkjs viewport * Filter segs and fetch correct metadata. * Initiate seg loading logic on series load into viewport. Need to write. * Automatic consumption of SEG functional. * Pull in master. * Fix issues after pulling in master. * Clean up old segmentation handlers. * WIP * WIP * Poppulate viewport with metadata. * Show hide/segmentation in react-vtkjs-viewport. * feat: 🎸 View segmentations in vtkjs viewport * Rebase on master. * format format format * add basic extension parts * Updated yarn lock * Fetch derived/referenced displaysets in sidepanel * Add buttons, expose seriesDescription, write notes for Danny. * Add growcut tool extention. -> Move to a seperate repo. * Change some text fields. * expose dialog provider * hide draggable area * No pointer events for now; need to revisit * Don't filter seg from the outset for now * fiddling about * fix path to series data * fix logic to determine next available labelmapindex * Ability to swtich between labelmaps * Return a promise so we can make sure our labelmap is loaded before pulling metadata * Better UI to toggle labelmaps * Fix accidental untoggle of active labelmap for ui * Remove brush tool from cornerstone extension * Add cstools in preInit for seg extension * Add buttons for seg magic * Hide the measurements panel for now * Slightly better seg/scissor icons * Add eraser * ability to switch segments * seg color / switcher * Fix vtk labelmap cache. * sidepanel should scroll if there's overflow * Use a fancier range slider * Slightly prettier buttons * Push in progress * A bit more reactive; handle no-meta * Update to vtk.js 11.14.0 and react-vtkjs-viewport 0.6.0 * chore: kickstart preview * Fix conflict issues * Refactor panel * Isolate increment functions * Wip segment table * Hide selector and add scroll to segmentation * Increase width of segment description * Hide not used items * Add new select for segmentations * Align ui * Fix default segmentation * Fix broken import test * Get measurements panel back and add spacing to grouped buttons * Hide brush and selector and refresh when switching segmentations * Add pointer events back and fix broken tests for measurement table * Update segment list when switching humbnails * CR Update: Minor UI adjustments * CR Update: Set active segment * Move components to components folder * Add new settings ui * Integrate configuration * Improve styles * Float numbers * Improve css * Refresh settings menu if side panel changed * Fix settings rendering logic and remove comments * Extract components * Remove not used tools * Remove non used extension * Use style variables and remove comments * Remove non used dep from lock * Remove tools * Remove segmentation from toolbar * Add todo and brushradius from config * Fix packagejson growcut import * Remove webpack config already defined in parent * Update package json description * Change component name to british english to us * Improve prop types * Rename cornerstone label map event * Scope css * Extract and add doc to helper * Update jsdocs for getDerivedDatasets * Add proptypes and cr updates * Update tablistitem proptypes * config is readonly, rollback destructuring * Remove event for side panel * Add jsdocs for util * Extract getimageid to studymetada * Use ohif log instead of console * Remove specific style from side panel * Fix default props for brush radius * Descructure configuration props from settings component to avoid invalid props * Update proptypes to be required (settings) * Update readme * Remove commandsmodule * Get configuration module inside the component * Set selected segment * Rename extension and use modality to filter * Fix for failing tests (#1423) * hello world * Finish rebase for Igor. * Re-fix cornerstoneTools version that got messed up in merge. * Fix reactivity of isDisabled, write implementation for the SEG panel. * Nuke yarn.lock to stack CST to 4.12.0 * Remove debugger statements. * WIP consume RTSTRUCT * Doc API and add endpoints. * Rebase on SEG PR. * Update DICOM Keyword variables. * Fix metadata vars format * Add basic RT panel along with configuration * Wire up configuration with settings component * Mock structure set tables * Improve design of settings * Integrate list of contours * Extract panel section * Filter by seriesuid * Fix slow settings * Add jump to image * Fix expandable items * Improvements and CR update * CR Update: Remove google config * CR Update: Remove erase tool test * CR Update: Remove instance * CR Update: Fix issue with undefined prop * CR Update: Update yarn lock * Hide actions of structure item Co-authored-by: James A. Petts <jamesapetts@gmail.com> Co-authored-by: dannyrb <danny.ri.brown@gmail.com> Co-authored-by: igoroctaviano] <igoroctaviano@users.noreply.github.com> Co-authored-by: Mirna Silva <mirna.silva@radicalimaging.com>
195 lines
6.1 KiB
JavaScript
195 lines
6.1 KiB
JavaScript
import React from 'react';
|
|
import adjust from './icons/adjust.svg';
|
|
// Icons
|
|
import angleDoubleDown from './icons/angle-double-down.svg';
|
|
import angleDoubleUp from './icons/angle-double-up.svg';
|
|
import angleLeft from './icons/angle-left.svg';
|
|
import arrows from './icons/arrows.svg';
|
|
import arrowsAltH from './icons/arrows-alt-h.svg';
|
|
import arrowsAltV from './icons/arrows-alt-v.svg';
|
|
import bars from './icons/bars.svg';
|
|
import brain from './icons/brain.svg';
|
|
import brush from './icons/brush.svg';
|
|
import caretDown from './icons/caret-down.svg';
|
|
import caretUp from './icons/caret-up.svg';
|
|
import check from './icons/check.svg';
|
|
import checkCircle from './icons/check-circle.svg';
|
|
import checkCircleO from './icons/check-circle-o.svg';
|
|
import chevronDown from './icons/chevron-down.svg';
|
|
import circle from './icons/circle.svg';
|
|
import circleNotch from './icons/circle-notch.svg';
|
|
import circleO from './icons/circle-o.svg';
|
|
import cog from './icons/cog.svg';
|
|
import createComment from './icons/create-comment.svg';
|
|
import createScreenCapture from './icons/create-screen-capture.svg';
|
|
import crosshairs from './icons/crosshairs.svg';
|
|
import cube from './icons/cube.svg';
|
|
import d3Rotate from './icons/3d-rotate.svg';
|
|
import database from './icons/database.svg';
|
|
import dotCircle from './icons/dot-circle.svg';
|
|
import edit from './icons/edit.svg';
|
|
import ellipseCircle from './icons/ellipse-circle.svg';
|
|
import ellipseH from './icons/ellipse-h.svg';
|
|
import ellipseV from './icons/ellipse-v.svg';
|
|
import exclamationCircle from './icons/exclamation-circle.svg';
|
|
import exclamationTriangle from './icons/exclamation-triangle.svg';
|
|
import fastBackward from './icons/fast-backward.svg';
|
|
import fastForward from './icons/fast-forward.svg';
|
|
import stop from './icons/stop.svg';
|
|
import info from './icons/info.svg';
|
|
import inlineEdit from './icons/inline-edit.svg';
|
|
import level from './icons/level.svg';
|
|
import link from './icons/link.svg';
|
|
import linkCircles from './icons/link-circles.svg';
|
|
import list from './icons/list.svg';
|
|
import liver from './icons/liver.svg';
|
|
import lock from './icons/lock.svg';
|
|
import lockAlt from './icons/lock-alt.svg';
|
|
import lung from './icons/lung.svg';
|
|
import measureNonTarget from './icons/measure-non-target.svg';
|
|
import measureTarget from './icons/measure-target.svg';
|
|
import measureTargetCr from './icons/measure-target-cr.svg';
|
|
import measureTargetNe from './icons/measure-target-ne.svg';
|
|
import measureTargetUn from './icons/measure-target-un.svg';
|
|
import measureTemp from './icons/measure-temp.svg';
|
|
import objectGroup from './icons/object-group.svg';
|
|
import ohifLogo from './icons/ohif-logo.svg';
|
|
import ohifTextLogo from './icons/ohif-text-logo.svg';
|
|
import oval from './icons/oval.svg';
|
|
import palette from './icons/palette.svg';
|
|
import play from './icons/play.svg';
|
|
import plus from './icons/plus.svg';
|
|
import powerOff from './icons/power-off.svg';
|
|
import reset from './icons/reset.svg';
|
|
import rotate from './icons/rotate.svg';
|
|
import rotateRight from './icons/rotate-right.svg';
|
|
import saveRegular from './icons/save-regular.svg';
|
|
import scissors from './icons/scissors.svg';
|
|
import search from './icons/search.svg';
|
|
import searchPlus from './icons/search-plus.svg';
|
|
import softTissue from './icons/soft-tissue.svg';
|
|
import sort from './icons/sort.svg';
|
|
import sortDown from './icons/sort-down.svg';
|
|
import sortUp from './icons/sort-up.svg';
|
|
import sphere from './icons/sphere.svg';
|
|
import squareO from './icons/square-o.svg';
|
|
import star from './icons/star.svg';
|
|
import stepBackward from './icons/step-backward.svg';
|
|
import stepForward from './icons/step-forward.svg';
|
|
import sun from './icons/sun.svg';
|
|
import th from './icons/th.svg';
|
|
import thLarge from './icons/th-large.svg';
|
|
import thList from './icons/th-list.svg';
|
|
import times from './icons/times.svg';
|
|
import trash from './icons/trash.svg';
|
|
import unlink from './icons/unlink.svg';
|
|
import user from './icons/user.svg';
|
|
import youtube from './icons/youtube.svg';
|
|
import eye from './icons/eye.svg';
|
|
import eyeClosed from './icons/eye-closed.svg';
|
|
|
|
const ICONS = {
|
|
eye,
|
|
'eye-closed': eyeClosed,
|
|
brush,
|
|
scissors,
|
|
user,
|
|
sort,
|
|
th,
|
|
star,
|
|
'sort-up': sortUp,
|
|
sphere,
|
|
'sort-down': sortDown,
|
|
info,
|
|
cube,
|
|
crosshairs,
|
|
'dot-circle': dotCircle,
|
|
'angle-left': angleLeft,
|
|
'3d-rotate': d3Rotate,
|
|
plus,
|
|
'chevron-down': chevronDown,
|
|
'angle-double-down': angleDoubleDown,
|
|
'angle-double-up': angleDoubleUp,
|
|
'arrows-alt-h': arrowsAltH,
|
|
'arrows-alt-v': arrowsAltV,
|
|
bars,
|
|
'caret-down': caretDown,
|
|
'caret-up': caretUp,
|
|
'check-circle-o': checkCircleO,
|
|
check,
|
|
circle,
|
|
'circle-o': circleO,
|
|
times,
|
|
'create-comment': createComment,
|
|
'create-screen-capture': createScreenCapture,
|
|
edit,
|
|
'fast-backward': fastBackward,
|
|
'fast-forward': fastForward,
|
|
'object-group': objectGroup,
|
|
search,
|
|
'power-off': powerOff,
|
|
'inline-edit': inlineEdit,
|
|
list,
|
|
'ohif-logo': ohifLogo,
|
|
'ohif-text-logo': ohifTextLogo,
|
|
lock,
|
|
play,
|
|
database,
|
|
cog,
|
|
'circle-notch': circleNotch,
|
|
'square-o': squareO,
|
|
'check-circle': checkCircle,
|
|
'lock-alt': lockAlt,
|
|
'step-backward': stepBackward,
|
|
'step-forward': stepForward,
|
|
stop,
|
|
'th-large': thLarge,
|
|
'th-list': thList,
|
|
sun,
|
|
palette,
|
|
youtube,
|
|
oval,
|
|
'ellipse-h': ellipseH,
|
|
'ellipse-v': ellipseV,
|
|
adjust,
|
|
level,
|
|
'link-circles': linkCircles,
|
|
'search-plus': searchPlus,
|
|
'measure-non-target': measureNonTarget,
|
|
'measure-target': measureTarget,
|
|
'measure-target-cr': measureTargetCr,
|
|
'measure-target-un': measureTargetUn,
|
|
'measure-target-ne': measureTargetNe,
|
|
'measure-temp': measureTemp,
|
|
'ellipse-circle': ellipseCircle,
|
|
arrows,
|
|
reset,
|
|
rotate,
|
|
'rotate-right': rotateRight,
|
|
trash,
|
|
unlink,
|
|
'exclamation-circle': exclamationCircle,
|
|
link,
|
|
'exclamation-triangle': exclamationTriangle,
|
|
brain,
|
|
'soft-tissue': softTissue,
|
|
lung,
|
|
liver,
|
|
save: saveRegular,
|
|
};
|
|
|
|
/**
|
|
* Return the matching SVG Icon as a React Component.
|
|
* Results in an inlined SVG Element. If there's no match,
|
|
* return `null`
|
|
*/
|
|
export default function getIcon(key, props) {
|
|
if (!key || !ICONS[key]) {
|
|
return React.createElement('div', null, 'Missing Icon');
|
|
}
|
|
|
|
return React.createElement(ICONS[key], props);
|
|
}
|
|
|
|
export { ICONS };
|