1 parent
f84aeac3c3
commit
c5c5ddf282
7 files changed
+32
-339
No files matched your search
@@ -274,7 +274,6 @@ Template.cineDialog.events({
|
||||
|
||||
Template.cineDialog.helpers({
|
||||
isPlaying() {
|
||||
Session.get('UpdateCINE');
|
||||
return viewportUtils.isPlaying();
|
||||
},
|
||||
|
||||
|
||||
+1
-8
@@ -14,7 +14,6 @@ import { updateCrosshairsSynchronizer } from '../../../lib/updateCrosshairsSynch
|
||||
import { toolManager } from '../../../lib/toolManager';
|
||||
import { updateOrientationMarkers } from '../../../lib/updateOrientationMarkers';
|
||||
import { getInstanceClassDefaultViewport } from '../../../lib/instanceClassSpecificViewport';
|
||||
import { PlayClipManager } from '../../../lib/classes/PlayClipManager';
|
||||
import { OHIFError } from '../../../lib/classes/OHIFError';
|
||||
|
||||
const allCornerstoneEvents = 'CornerstoneToolsMouseDown CornerstoneToolsMouseDownActivate ' +
|
||||
@@ -260,12 +259,9 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
|
||||
|
||||
cornerstoneTools.addToolState(element, 'playClip', cineToolData);
|
||||
|
||||
const playClipManager = PlayClipManager.getInstance();
|
||||
const playClipController = playClipManager.add(element, displaySet);
|
||||
|
||||
// Autoplay datasets that have framerates set
|
||||
if (multiframeMetadata && multiframeMetadata.isMultiframeImage && multiframeMetadata.averageFrameRate > 0) {
|
||||
playClipController.play();
|
||||
cornerstoneTools.playClip(element);
|
||||
}
|
||||
|
||||
// Enable mouse, mouseWheel, touch, and keyboard input on the element
|
||||
@@ -591,9 +587,6 @@ Template.imageViewerViewport.onDestroyed(function() {
|
||||
// for compatibility with other systems
|
||||
$element.trigger('OHIFDestroyedViewport');
|
||||
|
||||
// Disable the PlayClipController for the current element
|
||||
PlayClipManager.getInstance().remove(element);
|
||||
|
||||
// Disable the viewport element with Cornerstone
|
||||
// This also triggers the removal of the element from all available
|
||||
// synchronizers, such as the one used for reference lines.
|
||||
|
||||
@@ -10,7 +10,6 @@ import { ResizeViewportManager } from '../../../lib/classes/ResizeViewportManage
|
||||
import { LayoutManager } from '../../../lib/classes/LayoutManager';
|
||||
import { StudyPrefetcher } from '../../../lib/classes/StudyPrefetcher';
|
||||
import { StudyLoadingListener } from '../../../lib/classes/StudyLoadingListener';
|
||||
import { PlayClipManager } from '../../../lib/classes/PlayClipManager';
|
||||
|
||||
Meteor.startup(() => {
|
||||
window.ResizeViewportManager = window.ResizeViewportManager || new ResizeViewportManager();
|
||||
@@ -43,9 +42,6 @@ Template.viewerMain.onRendered(() => {
|
||||
studyLoadingListener.clear();
|
||||
studyLoadingListener.addStudies(studies);
|
||||
|
||||
// Remove all PlayClipControllers from PlayClipManager
|
||||
PlayClipManager.getInstance().clear();
|
||||
|
||||
OHIF.viewerbase.layoutManager = new LayoutManager(parentElement, studies);
|
||||
studyPrefetcher.setStudies(studies);
|
||||
|
||||
|
||||
Reference in new issue
Block a user