private void ChangeCircles() { FragmentObject.TrimatMarkEnum trimatType = FragmentObject.TrimatMarkEnum.Unknown; double rad = 0; if (DataTable.SelectedIndex > -1) { ObjectData od = _TableStrinsCollection[DataTable.SelectedIndex]; switch (od.TypeData) { case "Not Specified": trimatType = FragmentObject.TrimatMarkEnum.Unknown; break; case "Metal": trimatType = FragmentObject.TrimatMarkEnum.Metal; break; case "Organic": trimatType = FragmentObject.TrimatMarkEnum.Organic; break; case "Inorganic": trimatType = FragmentObject.TrimatMarkEnum.Inorganic; break; } switch (od.SizeData) { case "Not Specified": rad = m_XrayImageDisplay.DefaultMarkRadiusSizeMillimeters; break; case " < 4 mm": rad = 4; break; case "5mm-8mm": rad = 8; break; case "9mm-12mm": rad = 12; break; case "13mm-16mm": rad = 16; break; case "17mm-20mm": rad = 20; break; case ">20mm": rad = 25; break; } //convert radius from millimeters to pixels. rad = rad / Conversion.SamplingSpace; m_XrayImageDisplay.ChangeMarkRadiusAndTrimatType(DataTable.SelectedIndex, rad, trimatType); } }
public void ChangeMarkRadiusAndTrimatType(int tableIndex, double NewRadiusInPixels, FragmentObject.TrimatMarkEnum trimatType) { m_View1FragmentAdorner.UpdateMarkRadiusAndTrimatType(tableIndex, NewRadiusInPixels, trimatType); m_View0FragmentAdorner.UpdateMarkRadiusAndTrimatType(tableIndex, NewRadiusInPixels, trimatType); }