コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: liuhongrui/gait
        private void UpDown_Clicked(object sender, RoutedEventArgs e)
        {
            if (pressureInfo == null || isSelectedClicked)
            {
                return;
            }
            //改变一组就要改变一个连续的区间!
            int startIndex, finishIndex;

            if (backIndex == 0)
            {
                startIndex = 0;
            }
            else
            {
                startIndex = pressureInfo.backFrames[backIndex - 1].frameIndex + 1;
            }
            finishIndex = pressureInfo.backFrames[backIndex].frameIndex;
            for (int i = startIndex; i <= finishIndex; i++)
            {
                UpDownFlip(ref pressureInfo.allFrames[i].pressureValue);
            }
            UpDownFlip(ref pressureInfo.backFrames[backIndex].pressureValue);
            //UpDownFlip(ref pressureInfo.allFrames[currentFrame].pressureValue);
            UnFillPixelGrid();
            for (int i = 0; i < pressureInfo.backFrames.Count; i++)
            {
                FrameInfo fi = pressureInfo.backFrames[i];
                pressureInfo.CalBackBound(ref fi);
            }
            FillPixelGrid(currentFrame);
        }