Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Charts/Navigation/EndlessRectAnimation.cs @ 12747

Last change on this file since 12747 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 1.5 KB
Line 
1// todo commented because base class is 'Rect'AnimationBase, but animated value is of DataRect type.
2
3//using System;
4//using System.Collections.Generic;
5//using System.Linq;
6//using System.Text;
7//using System.Windows.Media.Animation;
8//using System.Windows;
9//using System.Diagnostics;
10//using Microsoft.Research.DynamicDataDisplay.Common;
11
12//namespace Microsoft.Research.DynamicDataDisplay.Charts.Navigation
13//{
14//    internal sealed class EndlessPanningRectAnimation : RectAnimationBase
15//    {
16//        private DataRect from;
17//        public DataRect From
18//        {
19//            get { return from; }
20//            set { from = value; }
21//        }
22
23//        private Vector speed;
24//        public Vector Speed
25//        {
26//            get { return speed; }
27//            set { speed = value; }
28//        }
29
30//        public EndlessPanningRectAnimation(DataRect from, Vector speed)
31//        {
32//            Duration = Duration.Forever;
33//            this.from = from;
34//            this.speed = speed;
35//        }
36
37//        protected override Rect GetCurrentValueCore(Rect defaultOriginValue, Rect defaultDestinationValue, AnimationClock animationClock)
38//        {
39//            double time = animationClock.CurrentTime.Value.TotalSeconds;
40//            Rect currentValue = Rect.Offset(from, speed * time);
41//            return currentValue;
42//        }
43
44//        protected override Freezable CreateInstanceCore()
45//        {
46//            return this;
47//        }
48//    }
49//}
Note: See TracBrowser for help on using the repository browser.