public static IImageViewer OpenFiles(string[] localFileList, WindowBehaviour windowBehaviour) { return(new OpenFilesHelper(localFileList) { WindowBehaviour = windowBehaviour }.OpenFiles()); }
private static IDesktopWindow GetLaunchWindow(WindowBehaviour windowBehaviour) { if (windowBehaviour == WindowBehaviour.Auto) { return(Application.ActiveDesktopWindow); } else if (windowBehaviour == WindowBehaviour.Single) { return(Application.ActiveDesktopWindow); } IDesktopWindow window; string imageViewerWindow = "ImageViewer"; // If an image viewer desktop window already exists, use it if (Application.DesktopWindows.Contains(imageViewerWindow)) { window = Application.DesktopWindows[imageViewerWindow]; } // If not, create one else { DesktopWindowCreationArgs args = new DesktopWindowCreationArgs("", imageViewerWindow); window = Application.DesktopWindows.AddNew(args); } return(window); }
private void Initialize(Animator animator) { if (m_window) { return; } m_window = animator.GetComponent <WindowBehaviour>(); m_window?.SetAnimatorCallback(this); }
/// <summary> /// Constructs a new <see cref="OpenStudyArgs"/> using the specified parameters. /// </summary> /// <param name="studyInstanceUids">The Study Instance UIDs of the studies to be opened.</param> /// <param name="server">The server from which the study should be loaded.</param> /// <param name="windowBehaviour">The window launch options.</param> public OpenStudyArgs(string[] studyInstanceUids, IDicomServiceNode server, WindowBehaviour windowBehaviour) { Platform.CheckForNullReference(studyInstanceUids, "studyInstanceUids"); Platform.CheckForNullReference(server, "server"); if (studyInstanceUids.Length == 0) throw new ArgumentException("studyInstanceUids array cannot be empty."); _studyInstanceUids = studyInstanceUids; _server = server; _windowBehaviour = windowBehaviour; }
private Window DetectLinkedWindow() { var p = transform; WindowBehaviour wb = null; while (p && !(wb = p.GetComponent <WindowBehaviour>()) && (p = p.parent)) { ; } return(wb?.window ?? null); }
/// <summary> /// Constructs a new <see cref="OpenStudyArgs"/> using the specified parameters. /// </summary> /// <param name="studyInstanceUids">The Study Instance UIDs of the studies to be opened.</param> /// <param name="server">The server from which the study should be loaded.</param> /// <param name="windowBehaviour">The window launch options.</param> public OpenStudyArgs(string[] studyInstanceUids, IDicomServiceNode server, WindowBehaviour windowBehaviour) { Platform.CheckForNullReference(studyInstanceUids, "studyInstanceUids"); Platform.CheckForNullReference(server, "server"); if (studyInstanceUids.Length == 0) { throw new ArgumentException("studyInstanceUids array cannot be empty."); } _studyInstanceUids = studyInstanceUids; _server = server; _windowBehaviour = windowBehaviour; }
// Use this for initialization void Start() { GameObject camera = GameObject.Find(m_cameraName); this.m_inputManagement = camera.GetComponent<WindowInputsManagement>(); this.m_list = this.transform.FindChild("ListContentElts"); this.m_subList = GameObject.Find(m_subListName).transform; this.m_behaviour = GameObject.Find(m_subWindowName).GetComponent<WindowBehaviour>(); this.m_behaviour.ForceReduce(); // on ferme par défaut la fenetre this.m_subWindowInterface = this.m_behaviour.transform.FindChild("Interface"); this.m_basePosition = this.transform.position; }
public override void Start() { _windowBehaviour = (WindowBehaviour)MonitorConfigurationSettings.Default.WindowBehaviour; base.Start(); }
/// <summary> /// Mandatory constructor. /// </summary> public LaunchImageViewerArgs(WindowBehaviour windowBehaviour) { this.WindowBehaviour = windowBehaviour; }
private void OnDestroy() { m_window = null; onStateChange = null; }
public static IImageViewer OpenFiles(string[] localFileList, WindowBehaviour windowBehaviour) { return new OpenFilesHelper(localFileList) {WindowBehaviour = windowBehaviour}.OpenFiles(); }
/// <summary> /// Mandatory constructor. /// </summary> public LaunchImageViewerArgs(WindowBehaviour windowBehaviour) { WindowBehaviour = windowBehaviour; }