Skip to content

Commit

Permalink
Segmentation UI for VTKjs (#1685)
Browse files Browse the repository at this point in the history
* Add single viewport configuration

* Multiple viewport configuration

* Improve performance by using independent set methods

* Add jump to slice command

* Add context configuration

* Cache panel visibility

* Fix sync between vtk and cornerstone

* Remove apis index

* Add approach

* Add loading to update volumes

* Fix broken configuration

* Bump vtk version

* Use loading label

* Update cy tests after vtk loading label changed

* Remove loading for segs
  • Loading branch information
igoroctaviano authored May 6, 2020
1 parent 19a8e71 commit 42c22df
Show file tree
Hide file tree
Showing 22 changed files with 516 additions and 173 deletions.
1 change: 1 addition & 0 deletions extensions/dicom-segmentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"dependencies": {
"@babel/runtime": "^7.5.5",
"gl-matrix": "^3.3.0",
"react-select": "^3.0.8"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { TableListItem, Icon } from '@ohif/ui';

Expand All @@ -19,6 +19,11 @@ ColoredCircle.propTypes = {

const SegmentItem = ({ index, label, onClick, itemClass, color, visible = true, onVisibilityChange }) => {
const [isVisible, setIsVisible] = useState(visible);

useEffect(() => {
setIsVisible(visible);
}, [visible]);

return (
<div className="dcmseg-segment-item">
<TableListItem
Expand Down
Loading

0 comments on commit 42c22df

Please sign in to comment.