コード例 #1
0
        private double _timeScaleOffset = 0; // % of the lap offseted.

        #endregion Fields

        #region Constructors

        public TelemetryViewer()
        {
            InitializeComponent();

            // Trackmap
            cTrackMap = new ucCoordinateMap(this);
            cTrackMap.Dock = DockStyle.Fill;
            this.GraphSplit.Panel1.Controls.Add(cTrackMap);

            // Plotter
            cPlotter = new Plotter { Dock = DockStyle.Fill };
            cPlotter.Drawn += cPlotter_Drawn;
            cPlotter.MouseWheel += cPlotter_Scroll;
            cPlotter.timeline.Scroll += cPlotter_TimelineScroll;

            // Plotter configuration
            _PlotterConfiguration = new PlotterConfigurations();
            _PlotterConfiguration.Load("ChartSetup.txt"); // TODO: Make this independant of configuration files.
            _PlotterConfiguration.Configure(cPlotter);

            this.GraphSplit.Panel2.Controls.Add(cPlotter);

            // Loading.
            _mTelemetryLoading.Tick += new EventHandler(_mTelemetryLoading_Tick);
            _mTelemetryLoading.Start();

            this.FormClosing += new FormClosingEventHandler(TelemetryViewer_FormClosing);
        }
コード例 #2
0
        public TelemetryViewer()
        {
            InitializeComponent();

            // Trackmap
            cTrackMap      = new ucCoordinateMap(this);
            cTrackMap.Dock = DockStyle.Fill;
            this.GraphSplit.Panel1.Controls.Add(cTrackMap);

            // Plotter
            cPlotter = new Plotter {
                Dock = DockStyle.Fill
            };
            cPlotter.Drawn           += cPlotter_Drawn;
            cPlotter.MouseWheel      += cPlotter_Scroll;
            cPlotter.timeline.Scroll += cPlotter_TimelineScroll;

            // Plotter configuration
            _PlotterConfiguration = new PlotterConfigurations();
            _PlotterConfiguration.Load("ChartSetup.txt"); // TODO: Make this independant of configuration files.
            _PlotterConfiguration.Configure(cPlotter);

            this.GraphSplit.Panel2.Controls.Add(cPlotter);

            // Loading.
            _mTelemetryLoading.Tick += new EventHandler(_mTelemetryLoading_Tick);
            _mTelemetryLoading.Start();

            this.FormClosing += new FormClosingEventHandler(TelemetryViewer_FormClosing);
        }