コード例 #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();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public PolarLineSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GeneratePoints(CircularFunction.Lemniskate);
 }
コード例 #4
0
 public PolarLineScatterSeriesControl()
 {
     InitializeComponent();
     chart.DataSource = FunctionsPointGenerator.GenerateDegreeScatterPoints(ScatterCircularFunction.ArchimedeanSpiral);
 }