private void UpdateRuntimeData() { foreach (var vessel in chart.vessels) { VesselHelper.UpdateVesselCenter(vessel, chart.chartPosition, chart.chartWidth, chart.chartHeight); } }
private void UpdateRuntimeValue() { for (int i = 0; i < m_Vessels.Count; i++) { var vessel = m_Vessels[i]; vessel.index = i; VesselHelper.UpdateVesselCenter(vessel, m_ChartPosition, m_ChartWidth, m_ChartHeight); } }
private void DrawCirleVessel(VertexHelper vh, Vessel vessel) { var cenPos = vessel.runtimeCenterPos; var radius = vessel.runtimeRadius; var serie = SeriesHelper.GetSerieByVesselIndex(m_Series, vessel.index); var vesselColor = VesselHelper.GetColor(vessel, serie, m_ThemeInfo, m_LegendRealShowName); ChartDrawer.DrawDoughnut(vh, cenPos, radius - vessel.shapeWidth, radius, vesselColor, Color.clear, m_Settings.cicleSmoothness); }
private void UpdateRuntimeData(Serie serie) { var vessel = chart.GetVessel(serie.vesselIndex); if (vessel != null) { VesselHelper.UpdateVesselCenter(vessel, chart.chartPosition, chart.chartWidth, chart.chartHeight); } }
private void DrawRectVessel(VertexHelper vh, Vessel vessel) { var serie = SeriesHelper.GetSerieByVesselIndex(chart.series, vessel.index); var vesselColor = VesselHelper.GetColor(vessel, serie, chart.theme, chart.m_LegendRealShowName); if (vessel.gap != 0) { UGL.DrawBorder(vh, vessel.runtimeCenterPos, vessel.runtimeWidth, vessel.runtimeHeight, vessel.gap, vessel.backgroundColor, 0, vessel.cornerRadius); } UGL.DrawBorder(vh, vessel.runtimeCenterPos, vessel.runtimeWidth + 2 * vessel.gap, vessel.runtimeHeight + 2 * vessel.gap, vessel.shapeWidth, vesselColor, 0, vessel.cornerRadius); }
private void DrawCirleVessel(VertexHelper vh, Vessel vessel) { var cenPos = vessel.runtimeCenterPos; var radius = vessel.runtimeRadius; var serie = SeriesHelper.GetSerieByVesselIndex(chart.series, vessel.index); var vesselColor = VesselHelper.GetColor(vessel, serie, chart.theme, chart.m_LegendRealShowName); if (vessel.gap != 0) { UGL.DrawDoughnut(vh, cenPos, vessel.runtimeInnerRadius, vessel.runtimeInnerRadius + vessel.gap, vessel.backgroundColor, Color.clear, chart.settings.cicleSmoothness); } UGL.DrawDoughnut(vh, cenPos, radius - vessel.shapeWidth, radius, vesselColor, Color.clear, chart.settings.cicleSmoothness); }