Exemple #1
0
        public override void Draw(Drawing3d drawing, IEnumerable <Tuple <PointMsg, MessageMetadata> > messages)
        {
            Vector3 prevPoint = Vector3.zero;
            Color   color     = Color.white;
            string  label     = "";

            MessageMetadata meta = messages.FirstOrDefault().Item2;

            color = VisualizationUtils.SelectColor(m_Color, meta);
            label = VisualizationUtils.SelectLabel(m_Label, meta);
            drawing.DrawPath(messages.Select(tuple => tuple.Item1.From <FLU>()), color, m_Thickness);
            drawing.DrawLabel(label, prevPoint, color);
        }