Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }