protected void removeNode()
        {
            Node node = SelectedNode;

            for (int i = 0; i < m_Floors.Count; i++)
            {
                List <Edge> toRemove = new List <Edge>();
                List <Edge> fEdge    = m_Floors[i].Edges;
                for (int j = 0; j < fEdge.Count; j++)
                {
                    if (fEdge[j].contains(node.ID))
                    {
                        toRemove.Add(fEdge[j]);
                    }
                }
                foreach (Edge e in toRemove)
                {
                    fEdge.Remove(e);
                }
            }

            FloorNodes.Remove(node);
            m_SelectedNode = null;
            m_SelectedEdge = null;
            updatePoints();
            updateEdges();
        }
Beispiel #2
0
 public void RemoveFloorNode(Node node)
 {
     FloorNodes.Remove(node);
 }