Ejemplo n.º 1
0
        void lbFunction_SelectedIndexChanged(object sender, RoutedEventArgs e)
        {
            CircularFunction f;

            if ((string)lbFunction.SelectedItem == "Taubin's Heart")
            {
                f = CircularFunction.TaubinsHeart;
            }
            else if ((string)lbFunction.SelectedItem == "Cardioid")
            {
                f = CircularFunction.Cardioid;
            }
            else
            {
                f = CircularFunction.Lemniskate;
            }
            chart.DataSource = FunctionsPointGenerator.GeneratePoints(f);
            chart.Animate();
        }
        void lbFunction_SelectedIndexChanged(object sender, RoutedEventArgs e)
        {
            ScatterCircularFunction function;

            switch (lbFunction.SelectedIndex)
            {
            case 0:
                function = ScatterCircularFunction.ArchimedeanSpiral;
                break;

            case 1:
                function = ScatterCircularFunction.Rose;
                break;

            case 2:
            default:
                function = ScatterCircularFunction.Folium;
                break;
            }
            chart.DataSource = FunctionsPointGenerator.GenerateDegreeScatterPoints(function);
            chart.Animate();
        }
Ejemplo n.º 3
0
 public PolarLineSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GeneratePoints(CircularFunction.Lemniskate);
 }
 public PolarLineScatterSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GenerateDegreeScatterPoints(ScatterCircularFunction.ArchimedeanSpiral);
 }