test(hyrdation): weekly tests PR (#4263)
This commit is contained in:
1 parent
ff1d97f76e
commit
75ef99d3b6
18 files changed
+88
-3
No files matched your search
@@ -46,11 +46,13 @@ function _askHydrate(uiViewportDialogService: AppTypes.UIViewportDialogService,
|
||||
const message = 'Do you want to open this Segmentation?';
|
||||
const actions = [
|
||||
{
|
||||
id: 'no-hydrate',
|
||||
type: ButtonEnums.type.secondary,
|
||||
text: 'No',
|
||||
value: RESPONSE.CANCEL,
|
||||
},
|
||||
{
|
||||
id: 'yes-hydrate',
|
||||
type: ButtonEnums.type.primary,
|
||||
text: 'Yes',
|
||||
value: RESPONSE.HYDRATE_SEG,
|
||||
|
||||
@@ -44,11 +44,13 @@ function _askHydrate(uiViewportDialogService, viewportId) {
|
||||
const message = 'Do you want to open this Segmentation?';
|
||||
const actions = [
|
||||
{
|
||||
id: 'no-hydrate',
|
||||
type: ButtonEnums.type.secondary,
|
||||
text: 'No',
|
||||
value: RESPONSE.CANCEL,
|
||||
},
|
||||
{
|
||||
id: 'yes-hydrate',
|
||||
type: ButtonEnums.type.primary,
|
||||
text: 'Yes',
|
||||
value: RESPONSE.HYDRATE_SEG,
|
||||
|
||||
@@ -7,6 +7,7 @@ const frameView: Types.HangingProtocol.Protocol = {
|
||||
icon: 'tool-stack-scroll',
|
||||
isPreset: true,
|
||||
toolGroupIds: ['default'],
|
||||
protocolMatchingRules: [],
|
||||
displaySetSelectors: {
|
||||
defaultDisplaySetId: {
|
||||
seriesMatchingRules: [
|
||||
|
||||
@@ -7,6 +7,7 @@ import {
|
||||
getEnabledElementByIds,
|
||||
utilities as csUtils,
|
||||
volumeLoader,
|
||||
StackViewport,
|
||||
} from '@cornerstonejs/core';
|
||||
import {
|
||||
Enums as csToolsEnums,
|
||||
@@ -770,8 +771,8 @@ class SegmentationService extends PubSubService {
|
||||
const segmentIndices = segmentIndex
|
||||
? [segmentIndex]
|
||||
: segmentation.segments
|
||||
.filter(segment => segment?.segmentIndex)
|
||||
.map(segment => segment.segmentIndex);
|
||||
.filter(segment => segment?.segmentIndex)
|
||||
.map(segment => segment.segmentIndex);
|
||||
|
||||
const segmentIndicesSet = new Set(segmentIndices);
|
||||
|
||||
@@ -884,7 +885,13 @@ class SegmentationService extends PubSubService {
|
||||
// @ts-ignore
|
||||
for (const { viewportId, renderingEngineId } of viewportsInfo) {
|
||||
const { viewport } = getEnabledElementByIds(viewportId, renderingEngineId);
|
||||
cstUtils.viewport.jumpToWorld(viewport, world);
|
||||
if (viewport instanceof StackViewport) {
|
||||
const { element } = viewport;
|
||||
const index = csUtils.getClosestStackImageIndexForPoint(world, viewport)
|
||||
cstUtils.viewport.jumpToSlice(element, { imageIndex: index })
|
||||
} else {
|
||||
cstUtils.viewport.jumpToWorld(viewport, world);
|
||||
}
|
||||
}
|
||||
|
||||
if (highlightSegment) {
|
||||
@@ -1250,6 +1257,7 @@ class SegmentationService extends PubSubService {
|
||||
{
|
||||
[segmentIndex]: {
|
||||
CONTOUR: {
|
||||
outlineOpacity: reversedProgress,
|
||||
fillAlpha: reversedProgress,
|
||||
},
|
||||
},
|
||||
|
||||
+2
@@ -50,11 +50,13 @@ function _askTrackMeasurements(uiViewportDialogService, viewportId) {
|
||||
const message = 'Do you want to continue tracking measurements for this study?';
|
||||
const actions = [
|
||||
{
|
||||
id: 'no-hydrate',
|
||||
type: ButtonEnums.type.secondary,
|
||||
text: 'No',
|
||||
value: RESPONSE.CANCEL,
|
||||
},
|
||||
{
|
||||
id: 'yes-hydrate',
|
||||
type: ButtonEnums.type.primary,
|
||||
text: 'Yes',
|
||||
value: RESPONSE.HYDRATE_REPORT,
|
||||
|
||||
Reference in new issue
Block a user