public FormTrackAnalysis(Metadata metadata, DrawingTrack track)
        {
            this.metadata   = metadata;
            this.kinematics = track.TrajectoryKinematics;
            this.color      = track.MainColor;

            InitializeComponent();

            plotHelper = new PlotHelper(plotView);
            Localize();
            CreatePlots();
        }
        public FormAngleAngleAnalysis(Metadata metadata)
        {
            this.metadata = metadata;
            AngularPlotHelper.ImportData(metadata, timeSeriesData);

            InitializeComponent();

            plotHelper = new PlotHelper(plotView);
            Localize();
            PopulateDataSources();
            PopulatePlotSpecifications();

            UpdatePlot();
        }
Esempio n. 3
0
        public FormMultiTrajectoryAnalysis(Metadata metadata)
        {
            this.metadata = metadata;
            ImportData(metadata);

            InitializeComponent();

            plotHelper = new PlotHelper(plotView);
            Localize();
            PopulateDataSources();
            PopulatePlotSpecifications();
            PopulateTimeModels();

            manualUpdate = true;
            UpdatePlot();
            UpdateTitles();
            manualUpdate = false;
        }
Esempio n. 4
0
        public FormAngularAnalysis(Metadata metadata)
        {
            this.metadata = metadata;
            AngularPlotHelper.ImportData(metadata, timeSeriesData);

            InitializeComponent();

            plotHelper = new PlotHelper(plotView);
            Localize();
            PopulateDataSources();
            PopulatePlotSpecifications();
            PopulateTimeModels();

            manualUpdate = true;
            UpdatePlot();
            UpdateTitles();
            manualUpdate = false;
        }
Esempio n. 5
0
        public FormPointsAnalysis(Metadata metadata)
        {
            this.metadata = metadata;

            InitializeComponent();
            plotHelper = new PlotHelper(plotScatter);
            Localize();

            foreach (Keyframe kf in metadata.Keyframes)
            {
                long t = kf.Position;
                List <DrawingCrossMark> kfDrawings = kf.Drawings.Where(d => d is DrawingCrossMark).Select(d => (DrawingCrossMark)d).ToList();

                // Points are revesed to match the order of addition.
                kfDrawings.Reverse();

                drawings.AddRange(kfDrawings);
                points.AddRange(kfDrawings.Select(d => new TimedPoint(d.Location.X, d.Location.Y, t)).ToList());
            }

            CreateScatterPlot();
        }