Пример #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);
        }
Пример #2
0
 internal void __changeRotation(Point4D quaternion)
 {
     this.quaternionRotation_ = quaternion;
 }
Пример #3
0
 public void ChangeRotation(Point4D quaternion)
 {
     __changeRotation(quaternion);
     graph_.__getCommandSender().__sendChangeCameraRotationCommand(quaternion);
 }
Пример #4
0
 internal Camera(Graph graph)
 {
     graph_              = graph;
     position_           = new Point3D(0, 0, 0);
     quaternionRotation_ = new Point4D(0, 0, 0, 0);
 }
Пример #5
0
 internal void __setRotation(Point4D rotation)
 {
     this.rotation_ = rotation;
 }
Пример #6
0
 public void SetRotation(Point4D rotation)
 {
     __setRotation(rotation);
     graph_.__getCommandSender().__sendChangeVertexRotationCommand(this);
 }