コード例 #1
0
 internal void __raiseBendRemovedEvent(Bend bend)
 {
     if (BendRemoved != null)
     {
         BendRemoved(bend);
     }
 }
コード例 #2
0
        internal Bend __breakEdgeLine(Point3D position, int index)
        {
            var newBend   = new Bend(position, this, graph_);
            var edgeLine  = edgeLines_[index];
            var edgeLine1 = new EdgeLine(this, newBend, edgeLine.GetEndBend());

            edgeLine.SetEndBend(newBend);

            edgeLines_.Insert(index + 1, edgeLine1);

            return(newBend);
        }
コード例 #3
0
        internal void __sendMoveBendCommand(Bend bend)
        {
            var position   = bend.GetPosition();
            var parameters = new List <string>();

            parameters.Add(bend.GetEdge().GetFullID().ToString());
            parameters.Add(bend.GetIndexAtEdge().ToString());
            parameters.Add(position.GetX().ToString());
            parameters.Add(position.GetY().ToString());
            parameters.Add(position.GetZ().ToString());


            var command = new Command("MoveBend", parameters);

            serviceManager_.__runCommand(command);
        }
コード例 #4
0
 public void SetEndBend(Bend bend)
 {
     endBend_ = bend;
 }
コード例 #5
0
 /// <summary>
 /// Constructor for the edge line class
 /// </summary>
 /// <param name="edge">The parent edge for the edge line</param>
 /// <param name="startBend">
 /// The bend at the beginning of the edge line.
 /// null if the start vertex of the edge is the beginning
 /// </param>
 /// <param name="endBend">
 /// The bend at the end of the edge line.
 /// null if the end vertex of the edge is the end
 /// </param>
 public EdgeLine(Edge edge, Bend startBend, Bend endBend)
 {
     edge_      = edge;
     startBend_ = startBend;
     endBend_   = endBend;
 }