private void rightLateralCameraButton_MouseButtonClick(object sender, EventArgs e) { lastCameraButtonAction = wizardView.RightLateralAction; TeethController.showTeethTools(RIGHT_LATERAL_TEETH); context.runAction(wizardView.RightLateralAction); teethToolController.TeethMover.setActivePlanes(MovementAxis.Y | MovementAxis.Z, MovementPlane.YZ); }
private void midlineAnteriorCameraButton_MouseButtonClick(object sender, EventArgs e) { lastCameraButtonAction = wizardView.MidlineAnteriorAction; TeethController.showTeethTools(MIDLINE_ANTERIOR_TEETH); context.runAction(wizardView.MidlineAnteriorAction); teethToolController.TeethMover.setActivePlanes(MovementAxis.X | MovementAxis.Y, MovementPlane.XY); }
private void bottomCameraButton_MouseButtonClick(object sender, EventArgs e) { lastCameraButtonAction = wizardView.BottomButtonAction; TeethController.showTeethTools(false, true); context.runAction(wizardView.BottomButtonAction); teethToolController.TeethMover.setActivePlanes(MovementAxis.X | MovementAxis.Z, MovementPlane.XZ); }
public override void closing() { base.closing(); teethMovementPanel.closing(); context.AnatomyController.PickingMode = startingPickingMode; TeethController.showTeethTools(false, false); context.MeasurementGrid.Visible = false; }
private void doMakeNormalButtonClick(MessageBoxStyle result) { if (result == MessageBoxStyle.Yes) { TeethController.setAllOffsets(Vector3.Zero); TeethController.setAllRotations(Quaternion.Identity); } }
private void doMakeNormalButtonClick(MessageBoxStyle style) { if (style == MessageBoxStyle.Yes) { TeethController.setAllOffsets(Vector3.Zero); TeethController.setAllRotations(Quaternion.Identity); heightControl.setToDefault(); } }
void toothButton_ExtractedStatusChanged(object sender, EventArgs e) { ToothButton button = (ToothButton)sender; Tooth tooth = TeethController.getTooth(button.ToothName); if (tooth != null) { tooth.Extracted = button.Extracted; } }
void adaptButton_CheckedChanged(Widget sender, EventArgs e) { if (adaptButton.Checked) { ControlPointBehavior leftCP = ControlPointController.getControlPoint("LeftCP"); ControlPointBehavior rightCP = ControlPointController.getControlPoint("RightCP"); MuscleBehavior movingMuscle = MuscleController.getMuscle("MovingMuscleDynamic"); MovingMuscleTarget movingMuscleTarget = MuscleController.MovingTarget; leftCP.setLocation(leftCP.NeutralLocation); rightCP.setLocation(rightCP.NeutralLocation); movingMuscle.changeForce(TeethController.AdaptForce); movingMuscleTarget.Offset = Vector3.Zero; } TeethController.adaptAllTeeth(adaptButton.Checked); }
public override void opening() { ControlPointBehavior leftCP = ControlPointController.getControlPoint("LeftCP"); ControlPointBehavior rightCP = ControlPointController.getControlPoint("RightCP"); MuscleBehavior movingMuscle = MuscleController.getMuscle("MovingMuscleDynamic"); MovingMuscleTarget movingMuscleTarget = MuscleController.MovingTarget; leftCP.setLocation(leftCP.NeutralLocation); rightCP.setLocation(rightCP.NeutralLocation); movingMuscle.changeForce(TeethController.AdaptForce); movingMuscleTarget.Offset = Vector3.Zero; gridPropertiesControl.Origin = TeethController.getToothCenter(); gridPropertiesControl.updateGrid(); teethMovementPanel.setDefaultTools(); teethMovementPanel.opening(); base.opening(); }
public RemoveTeethGUI(String layoutFile, WizardView wizardView, AnomalousMvcContext context, MyGUIViewHost viewHost) : base(layoutFile, wizardView, context, viewHost) { Widget toothPanel = widget.findWidget("ToothPanel"); uint numChildren = toothPanel.ChildCount; for (uint i = 0; i < numChildren; ++i) { Button toothGUIButton = toothPanel.getChildAt(i) as Button; if (toothGUIButton != null) { ToothButton toothButton = new ToothButton(toothGUIButton); toothButtons.Add(toothButton); Tooth tooth = TeethController.getTooth(toothButton.ToothName); if (tooth != null) { toothButton.Extracted = tooth.Extracted; } toothButton.ExtractedStatusChanged += new EventHandler(toothButton_ExtractedStatusChanged); } } }
public void setDefaultTools() { TeethController.showTeethTools(MIDLINE_ANTERIOR_TEETH); teethToolController.TeethMover.setActivePlanes(MovementAxis.X | MovementAxis.Y, MovementPlane.XY); }