コード例 #1
0
 private ICurveAvatar FormatAvatar(ICurveAvatar cAv)
 {
     cAv.Brush      = new ColourBrush(new Colour(0.5f, 0.8f, 0.2f, 0f)); //TODO: Make customisable
     cAv.ArrowStart = true;
     cAv.ArrowEnd   = true;
     return(cAv);
 }
コード例 #2
0
        public override IList <IAvatar> GenerateRepresentations(Element source)
        {
            List <IAvatar> result = new List <IAvatar>();

            if (source != null && source.GetGeometry() != null)
            {
                foreach (var vertex in source.GetGeometry().Vertices)
                {
                    if (vertex.Node != null && !vertex.NodalOffset().IsZero())
                    {
                        ICurveAvatar lAv = CreateCurveAvatar();
                        lAv.Curve  = new Line(vertex.Node.Position, vertex.Position);
                        lAv.Dotted = true;
                        lAv.Brush  = _Brush;
                        result.Add(lAv);
                    }
                }
            }
            return(result);
        }