Ejemplo n.º 1
0
        private void processChangeVertexRotationCommand(Command command)
        {
            var parameters         = command.GetParameters();
            var verticesDictionary = graph_.__getVerticesDictionary();

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

            if (vertex == null)
            {
                return;
            }

            var rotation = new Point4D(
                double.Parse(parameters[1]), double.Parse(parameters[2]),
                double.Parse(parameters[3]), double.Parse(parameters[4]));

            vertex.__setRotation(rotation);

            graph_.__raiseVertexRotationChangedEvent(vertex);
        }