public void Show(TEllipse ellipse, Color color) { m_type = EGraphType.Ellipse; m_ellipse = ellipse; m_color = color; isShow = true; }
public void Show(TCircle circle, Color color) { m_type = EGraphType.Circle; m_circle = circle; m_color = color; isShow = true; }
public void Show(TRect rect, Color color) { m_type = EGraphType.Rect; m_rect = rect; m_color = color; isShow = true; }
public void Show(Vector2[] points, Color color) { m_type = EGraphType.Line; m_points = points; m_color = color; isShow = true; }
public void Show(Vector2 p1, Vector2 p2, Color color) { m_type = EGraphType.Line; m_points = new Vector2[2]; m_points[0] = p1; m_points[1] = p2; m_color = color; isShow = true; }
private String GetDisplayNameForGraphType(EGraphType type) { switch (type) { case EGraphType.BatteryVoltageVsTime: return("Batteriespannung vs. Datum"); case EGraphType.FixBatteryVoltageVsTime: return("Fix-Batteriespannung vs. Datum"); case EGraphType.UsedTimeToGetFixVsTime: return("Zeit bis GPS-Fix vs. Datum"); case EGraphType.FixBatteryVoltageAndTempVsTime: return("Fix-Batteriespannung / Temperatur vs. Datum"); default: return(""); } }
public Graph(EGraphType gt, string id) { graphType = gt; ID = id; }
public Graph(EGraphType gt) { graphType = gt; }