public void OnClickDoneButton() { MainConsoleView view = GetView <MainConsoleView>(); MainConsoleModel model = GetModel <MainConsoleModel>(); BoundingBoxRig boundingBoxRig = view.GetComponent <BoundingBoxRig>(); boundingBoxRig.Deactivate(); model.State = MainConsoleStateEnum.Default; view.DoneAdjust(); }
void Start() { clipPlaneQuadBbox = GetComponent <BoundingBoxRig>(); HandTranslation = GetComponent <HandDraggable>(); HandTranslation.enabled = false; ButtonClippingPlaneTranslation.gameObject.SetActive(false); ButtonClippingPlaneRotation.gameObject.SetActive(false); clipPlaneQuadBbox.Deactivate(); }
public void CompleteAdjustProtein() { if (proteinDisplayerGo == null) { return; } BoundingBoxRig boundingBoxRig = proteinDisplayerGo.GetComponent <BoundingBoxRig>(); boundingBoxRig.Deactivate(); proteinDisplayerGo.GetComponent <HandDraggable>().enabled = false; }
public void ActivateBoundingBox(bool state) { if (state == true) { bbRig.Activate(); } else { bbRig.Deactivate(); } }
public override IEnumerator Deactivate() { // Postpone deactivation until bounding box // is initialized. if (!IsInitialized) { yield return(null); } gameObject.SetActive(false); Rig.gameObject.SetActive(false); Rig.Deactivate(); }
public void Hide() { Origin.GetComponent <MeshRenderer>().enabled = false; // hide the origin Origin.GetComponent <BoxCollider>().enabled = false; // disable the collider BoundingBoxRig bbr = Origin.GetComponent <BoundingBoxRig>(); if (bbr) { bbr.Deactivate(); bbr.appBarInstance.enabled = false; // hide app bar Origin.GetComponent <HandDraggable>().enabled = false; } foreach (Transform child in transform) { child.GetComponent <MeshRenderer>().enabled = false; // hide all of the axis } }