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 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 DrawVesselBackground(VertexHelper vh) { for (int i = 0; i < m_Vessels.Count; i++) { var vessel = m_Vessels[i]; if (vessel.backgroundColor.a != 0) { var cenPos = vessel.runtimeCenterPos; var radius = vessel.runtimeRadius; var serie = SeriesHelper.GetSerieByVesselIndex(m_Series, vessel.index); ChartDrawer.DrawCricle(vh, cenPos, vessel.runtimeInnerRadius, vessel.backgroundColor, m_Settings.cicleSmoothness); } } }
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); }