コード例 #1
0
 public virtual void Init(Edge edge, VizNode start, VizNode end, VizGraph graph)
 {
     Edge      = edge;
     StartNode = start;
     EndNode   = end;
     Graph     = graph;
 }
 public void Init(Node node, object data, VizGraph graph)
 {
     Node      = node;
     Data      = data;
     Graph     = graph;
     Text.text = Data.ToString();
 }
コード例 #3
0
            public void Execute(int i)
            {
                VizGraph graph = GetGraph(Id);

                if (graph == null)
                {
                    return;
                }
                VizEdge edge = graph.Edges[i];

                edge.LineProps.Start = StartPos[i];
                edge.LineProps.End   = EndPos[i];

                if (edge.IsEdgeBoundary)
                {
                    graph.FastLines[LineIndex].AppendCurve(edge.LineProps, edge.CtrPoints.Item1, edge.CtrPoints.Item2, 16, false, false, 0);
                }
                else
                {
                    graph.FastLines[LineIndex].AddLine(edge.LineProps);
                }
            }