///<summary>Only called when in simple graphical mode.</summary> private void DrawFacialView(ToothGraphic toothGraphic, Graphics g) { float x, y; x = GetTransX(toothGraphic.ToothID); y = GetTransYfacial(toothGraphic.ToothID); if (toothGraphic.Visible || (toothGraphic.IsCrown && toothGraphic.IsImplant) || toothGraphic.IsPontic) { //DrawTooth(toothGraphic,g); } float w = 0; if (!ToothGraphic.IsPrimary(toothGraphic.ToothID)) { w = ToothGraphic.GetWidth(toothGraphic.ToothID) / WidthProjection * (float)Width; } if (!ToothGraphic.IsPrimary(toothGraphic.ToothID) && (!toothGraphic.Visible || toothGraphic.IsPontic)) { if (ToothGraphic.IsMaxillary(toothGraphic.ToothID)) { g.FillRectangle(new SolidBrush(colorBackSimple), x - w / 2f, 0, w, Height / 2f - 20); } else { g.FillRectangle(new SolidBrush(colorBackSimple), x - w / 2f, Height / 2f + 20, w, Height / 2f - 20); } } if (toothGraphic.DrawBigX) { float halfxwidth = 6; float xheight = 58; float offsetofx = 73; //toothGraphic.colorX if (ToothGraphic.IsMaxillary(toothGraphic.ToothID)) { g.DrawLine(new Pen(toothGraphic.colorX), x - halfxwidth, Height / 2f - offsetofx - xheight, x + halfxwidth, Height / 2f - offsetofx); g.DrawLine(new Pen(toothGraphic.colorX), x + halfxwidth, Height / 2f - offsetofx - xheight, x - halfxwidth, Height / 2f - offsetofx); } else //Mandible { g.DrawLine(new Pen(toothGraphic.colorX), x - halfxwidth, Height / 2f + offsetofx + xheight, x + halfxwidth, Height / 2f + offsetofx); g.DrawLine(new Pen(toothGraphic.colorX), x + halfxwidth, Height / 2f + offsetofx + xheight, x - halfxwidth, Height / 2f + offsetofx); } } if (toothGraphic.Visible && toothGraphic.IsRCT) //draw RCT //x=,y= etc //toothGraphic.colorRCT //? { } if (toothGraphic.Visible && toothGraphic.IsBU) //BU or Post //? { } if (toothGraphic.IsImplant) { //? } }