private void updateToothAndImplantVisibility() { if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1 || PacientData.hasPins) { this.setVisibilityToothEntities(false); return; } this.setVisibilityToothEntities(true); }
public static int getPinNumber() { if (!hasPins) { return(-1000); } return(PacientData.getIndexImage() - 1 - 3 * PacientData.getToothEntitiesNumber()); }
private void updateShowHideOptions() { if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1) { showHideSettings.Visible = false; } else { showHideSettings.Visible = true; } }
private void updatePinButton() { if (PacientData.hasPins || PacientData.getIndexImage() < 4 || PacientData.getGroupComponentIndex() != 1) { this.pin.Visible = false; return; } this.pin.Visible = true; }
private void updateEntityGuide() { if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1 || PacientData.hasPins) { entityGuide.Text = ""; } else if (PacientData.getGroupComponentIndex() == 1) { entityGuide.Text = "3D view"; } else if (PacientData.getGroupComponentIndex() == 2) { entityGuide.Text = "Transsection view"; } else if (PacientData.getGroupComponentIndex() == 3) { entityGuide.Text = "Digital eye"; } }
private void updateSaveButton() { if (PacientData.hasPins && PacientData.getPinNumber() != 0) { this.save.Visible = true; return; } if (PacientData.getIndexImage() < 4) { this.save.Visible = false; return; } if (PacientData.getGroupComponentIndex() != 1) { this.save.Visible = false; return; } this.save.Visible = true; }
private void updateTitle() { if (PacientData.getIndexImage() == 0) { indexEntityOrTooth.Text = "Over view 1"; return; } if (PacientData.getIndexImage() == 1) { indexEntityOrTooth.Text = "Over view 2"; return; } if (!PacientData.hasPins) { indexEntityOrTooth.Text = "Implant #" + PacientData.getGroupIndex(); return; } int diference = 1 + 3 * PacientData.getToothEntitiesNumber(); indexEntityOrTooth.Text = "Anchor " + PacientData.getPinNumber(); }
public static double getRatio() { if (PacientData.getIndexImage() == 0 || PacientData.getIndexImage() == 1) { return(1.7660377); } if (!hasPins) { if (PacientData.getGroupComponentIndex() == 1) { return(1.5705128); } if (PacientData.getGroupComponentIndex() == 2) { return(1.525641); } if (PacientData.getGroupComponentIndex() == 3) { return(1.4807692); } } else { if (PacientData.getPinNumber() % 3 == 1) { return(1.5217391); } if (PacientData.getPinNumber() % 3 == 2) { return(1.4782608); } if (PacientData.getPinNumber() % 3 == 0) { return(1.4347826); } } return(-1); }