Exemple #1
0
        public void MoveXAxisMark(double translatex)
        {
            if (_spectrumMark == null)
            {
                _spectrumMark = new SpectrumMark
                {
                    Direction           = MarkDirection.Bottom,
                    HorizontalAlignment = HorizontalAlignment.Left,
                    Color                  = new SolidColorBrush(Color.FromArgb(0xff, 0x33, 0xf0, 0x10)),
                    Foreground             = new SolidColorBrush(Colors.White),
                    MarkArrowVisibility    = Visibility.Collapsed,
                    VerticalLineVisibility = Visibility.Visible,
                    BuoyVisibility         = Visibility.Collapsed,
                    TooltipVisibility      = Visibility.Collapsed,
                    GroupName              = "-1"
                };

                uxXAxisMarkPanel.Children.Add(_spectrumMark);
            }
            _spectrumMark.TranslateX = translatex;
            _spectrumMark.UpdateLayout();
        }
Exemple #2
0
        public void Clear()
        {
            if (_writeableBmp != null)
            {
                uxWaterfall.Source = null;
                _writeableBmp      = null;
                _writeableBmp      = new WriteableBitmap((int)uxWaterfall.Width, (int)uxWaterfall.Height, 96, 96, PixelFormats.Pbgra32, null);
                _writeableBmp.FillRectangle(0, 0, (int)uxWaterfall.Width, (int)uxWaterfall.Height, Colors.Transparent);
                uxWaterfall.Source = _writeableBmp;
            }

            if (_spectrumMark != null)
            {
                uxXAxisMarkPanel.Children.Remove(_spectrumMark);
                _spectrumMark = null;
            }

            _maxRow    = 0;
            _maxColumn = 0;
            _cachedDatas.Clear();
            _cachedColors.Clear();
            _waterfallHistory.Clear();
            _isCompletion = false;
        }