コード例 #1
0
        private static void OnPhaseChanged(
            DependencyObject d,
            DependencyPropertyChangedEventArgs e)
        {
            PhaseSpace3DControl psc = d as PhaseSpace3DControl;

            psc.PopulateScreenSpaceLines();
        }
コード例 #2
0
        private static void OnDataFilePathChanged(
            DependencyObject d,
            DependencyPropertyChangedEventArgs e)
        {
            PhaseSpace3DControl psc = d as PhaseSpace3DControl;

            if (psc.DataFilePath != null)
            {
                psc.ReadData(e.NewValue as string);
            }
        }
コード例 #3
0
        private static void OnViewAngleChanged(
            DependencyObject d,
            DependencyPropertyChangedEventArgs e)
        {
            PhaseSpace3DControl psc = d as PhaseSpace3DControl;

            //RotateTransform3D transform = psc._screenSpaceLines.Transform as RotateTransform3D;
            AxisAngleRotation3D rotation = psc._rotation.Rotation as AxisAngleRotation3D;

            rotation.Angle = (double)e.NewValue;

            rotation       = psc._rotation_xAxis.Rotation as AxisAngleRotation3D;
            rotation.Angle = (double)e.NewValue;

            rotation       = psc._rotation_yAxis.Rotation as AxisAngleRotation3D;
            rotation.Angle = (double)e.NewValue;

            rotation       = psc._rotation_zAxis.Rotation as AxisAngleRotation3D;
            rotation.Angle = (double)e.NewValue;
        }