Ejemplo n.º 1
0
 private void UpdateRuntimeData()
 {
     foreach (var vessel in chart.vessels)
     {
         VesselHelper.UpdateVesselCenter(vessel, chart.chartPosition, chart.chartWidth, chart.chartHeight);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        private void UpdateRuntimeData(Serie serie)
        {
            var vessel = chart.GetVessel(serie.vesselIndex);

            if (vessel != null)
            {
                VesselHelper.UpdateVesselCenter(vessel, chart.chartPosition, chart.chartWidth, chart.chartHeight);
            }
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }