public AdornerChartMarkers(UIElement adornedElement, Transform shapeTransform, IList <ChartMarkerSet> markerSets, XYLineChart parentChart) : base(adornedElement)
 {
     _adornedElement = adornedElement;
     _parentChart    = parentChart;
     _markerSets     = markerSets;
     _transform      = shapeTransform;
 }
 public AdornerChartMarkers(UIElement adornedElement, Transform shapeTransform, IList<ChartMarkerSet> markerSets, XYLineChart parentChart) : base(adornedElement)
 {
     _adornedElement = adornedElement;
     _parentChart = parentChart;
     _markerSets = markerSets;
     _transform = shapeTransform;
 }
        public LiveFlightLogDataProvider(XYLineChart positionChart, XYLineChart accelerometerChart, XYLineChart heightChart)
        {
            _positionChart      = positionChart;
            _accelerometerChart = accelerometerChart;
            _heightChart        = heightChart;

            #region Position Top View setup

            _positionChart.UniformScaling = true;
            _positionChart.Title          = "Position Top View";
            _positionChart.XAxisLabel     = "X [m]";
            _positionChart.YAxisLabel     = "Z [m]";

            _estimatedGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.Navy,
                Label         = "Estimated"
            };

            _blindEstimatedGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.LightBlue,
                Label         = "Blind estimated"
            };

            _trueGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.DarkRed,
                Label         = "True"
            };

            _observedGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.Orange,
                Label         = "GPS"
            };

            #endregion

            #region Height Data setup

            _heightChart.Title      = "Height data";
            _heightChart.XAxisLabel = "Time [s]";
            _heightChart.YAxisLabel = "Altitude [m]";

            _helicopterHeightGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.DarkRed,
                Label         = "True"
            };

            _estimatedHelicopterHeightGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.Navy,
                Label         = "Estimated"
            };

            _groundHeightGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.DarkGray,
                Label         = "Ground"
            };

            #endregion

            #region Acceleration Data setup

            _accelerometerChart.Title      = "Accelerometer data";
            _accelerometerChart.XAxisLabel = "Time [s]";
            _accelerometerChart.YAxisLabel = "Acceleration [m/s²]";

            _accelForwardGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.Navy,
                Label         = "Accel forward"
            };

            _accelRightGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.DarkRed,
                Label         = "Accel right"
            };

            _accelUpGraph = new ChartPrimitive
            {
                Filled        = false,
                Dashed        = false,
                ShowInLegend  = true,
                LineThickness = 1.5,
                HitTest       = true,
                Color         = Colors.Orange,
                Label         = "Accel up"
            };

            #endregion
        }
 public FlightLoggerTest(XYLineChart chart)
     : base(chart)
 {
 }
Beispiel #5
0
 public static Chart CreateChart(ChartType type, ChartModel model)
 {
   Chart chart = null;
   if (type == ChartType.VBAR || 
       type == ChartType.VBAR_STACKED || 
       type == ChartType.BAR_LINE_COMBO ||
       type == ChartType.BAR_AREA_COMBO ||
       type == ChartType.BAR_LINE_AREA_COMBO)
   {
     chart = new BarChart(type, model);
   }
   else if (type == ChartType.HBAR || type == ChartType.HBAR_STACKED)
   {
     chart = new HorizontalBarChart(type, model);
   }
   else if( type == ChartType.CYLINDERBAR)
   {
     chart = new CylinderBarChart(type, model);
   }
   
   else if (type == ChartType.PIE)
   {
     chart = new PieChart(type, model);
   }
   else if (type == ChartType.AREA || type == ChartType.AREA_STACKED)
   {
     chart = new AreaChart(type, model);
   }
   else if (type == ChartType.LINE)
   {
     chart = new LineChart(type, model);
   }
   else if (type == ChartType.SCATTER_PLOT)
   {
     chart = new ScatterPlotChart(type, model);
   }
   else if (type == ChartType.XYLINE)
   {
     chart = new XYLineChart(type, model);
   }
   else if (type == ChartType.RADAR || type == ChartType.RADAR_AREA)
   {
     chart = new RadarChart(type, model);
   }
   else if (type == ChartType.FUNNEL)
   {
     chart = new FunnelChart(type, model);
   }
   else if (type == ChartType.SEMI_CIRCULAR_GAUGE)
   {
     chart = new SemiCircularGaugeChart(type, model);
   }
   else if (type == ChartType.CIRCULAR_GAUGE)
   {
     chart = new GaugeChart(type, model);
   }
   else if (type == ChartType.CANDLE_STICK)
   {
     chart = new CandleStickChart(type, model);
   }
   return chart;
 }
 public GPS2DTest(XYLineChart chart) : base(chart)
 {
 }
 protected GraphTestBase(XYLineChart positionChart)
 {
     Chart = positionChart;
 }
Beispiel #8
0
 public ScalarTest(XYLineChart chart)
     : base(chart)
 {
 }
Beispiel #9
0
 public GPS_INSTest(XYLineChart chart)
     : base(chart)
 {
 }