Esempio n. 1
0
        private static void UnitZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }

            instance.UpdateUnitZTab();
        }
Esempio n. 2
0
        private static void UnitYPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }
            foreach (MValueFunct2DInput entry in instance.tables)
            {
                entry.UnitY = instance.UnitY;
            }
        }
Esempio n. 3
0
        private static void BoundsPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }
            if (instance.Bounds == null)
            {
                return;
            }

            foreach (MValueFunct2DInput table in instance.tables)
            {
                table.Bounds = instance.Bounds;
            }
        }
Esempio n. 4
0
        private static void FinalizeFunctionPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }

            int t = instance.SelectedIndex;

            if (-1 < t && t < instance.tables.Count && instance.FinalizeFunction)
            {
                instance.tables[t].FunctionName     = instance.FunctionName;
                instance.tables[t].FinalizeFunction = true;
            }
            instance.FinalizeFunction = false;
        }
Esempio n. 5
0
        private static void NrCellsZPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }
            if (instance.NrCellsZ < 1)
            {
                return;
            }

            instance.AdaptTabsToNrCellZChange();
            // synchronize axis values with first table
            foreach (MValueFunct2DInput table in instance.tables)
            {
                table.SetAxisValues(instance.tables[0].AxisValues, instance.tables[0].Bounds);
            }
        }
Esempio n. 6
0
        private static void NewPointPropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MValueFunct3DInput instance = d as MValueFunct3DInput;

            if (instance == null)
            {
                return;
            }
            if (instance.NewPoint == null)
            {
                return;
            }

            int t = instance.SelectedIndex;

            if (-1 < t && t < instance.tables.Count)
            {
                instance.tables[t].NewPoint = new Point3D(instance.NewPoint.X, instance.NewPoint.Y, t);
            }
        }