예제 #1
0
        private void processMoveVertexCommand(Command command)
        {
            var parameters         = command.GetParameters();
            var verticesDictionary = graph_.__getVerticesDictionary();

            var vertex = verticesDictionary.Find(FullID.FromString(parameters[0]));

            if (vertex == null)
            {
                return;
            }

            var position = new Point3D(double.Parse(parameters[1]),
                                       double.Parse(parameters[2]), double.Parse(parameters[3]));

            vertex.__move(position);

            graph_.__raiseVertexMovedEvent(vertex);
        }