Copyright © 2011-2019 MultiMedia Soft

WANALYZER_WAVE_RANGE structure

Previous pageReturn to chapter overviewNext page

The WANALYZER_WAVE_RANGE structure (defined as WANALYZER_WAVE_RANGE_DLL when used for COM interoperability) describes settings applied to a waveform range added to the Waveform Analyzer through the WaveformAnalyzer.GraphicItemWaveRangeAdd method. The current settings can be retrieved through the WaveformAnalyzer.GraphicItemWaveRangeParamsGet method and modified through the WaveformAnalyzer.GraphicItemWaveRangeParamsSett method.

 

For details about the use of the Waveform Analyzer refer to the How to use the Waveform Analyzer section.

For further details about methods of the Waveform Analyzer refer to the WaveformAnalyzer class section.

 

C# definition

 

public struct WANALYZER_WAVE_RANGE

{

     public Color colorBack;

     public Color colorWaveLinePeak;

     public Color colorWaveLineCenter;

}

 

Definition for COM Interoperability

 

public struct WANALYZER_WAVE_RANGE_DLL

{

     public Int32 colorBack;

     public Int32 colorWaveLinePeak;

     public Int32 colorWaveLineCenter;

}

 

Inside the screenshot below you can see 2 examples of wave ranges, each with its own set of colors. Please note that "wave ranges" are a different concept respect to "waveform selection": you can only have one single "waveform selection", whose positioning can be managed through code or through mouse movement, but you can have multiple "wave ranges" managed through code without any mouse management for changing the positioning.

 

 

Member

Description

 

 

colorBack

Color used for rendering the waveform background.

colorWaveLinePeak

Color used for rendering the peak of the waveform line

colorWaveLineCenter

Color used for rendering the center of the waveform line

 

 

NOTE: If values of the colorWaveLineCenter e colorWaveLinePeak fields should be identical, the rendering would keep count of the bUseHalfColorsForPeaks field of the WANALYZER_WAVEFORM_SETTINGS data structure.