예제 #1
0
    private void SetMRICollectionChildrenActive(bool active)
    {
        foreach (GameObject MRIObject in MRIObjects)
        {
            MRIObject.SetActive(active);
        }

        // clipPlane.SetActive(active);
    }
예제 #2
0
 public void DisplaySingleMRI(GameObject activeMRI)
 {
     foreach (GameObject MRIObject in MRIObjects)
     {
         if (MRIObject.name != activeMRI.name)
         {
             MRIObject.SetActive(false);
         }
     }
     boxCollider.enabled = true;
     isOneMRIActive      = true;
 }
예제 #3
0
    public void ReturnFromDisplaySingleMRI()
    {
        if (MRIIconManager.Instance != null)
        {
            MRIIconManager.Instance.DeselectAll();
        }
        if (isOneMRIActive)
        {
            foreach (GameObject MRIObject in MRIObjects)
            {
                if (MRIObject.name != activeMRI.name)
                {
                    MRIObject.SetActive(true);
                }
            }

            activeMRI.GetComponent <MRIInteractions>().HideMRIImage();
            boxCollider.enabled = false;
            isOneMRIActive      = false;
        }
    }