Copyright © 2013-2023 MultiMedia Soft

WANALYZER_WAVE_RANGE structure

Previous pageReturn to chapter overviewNext page

The WANALYZER_WAVE_RANGE structure describes settings applied to a waveform range added to the Waveform Analyzer through the GraphicItemWaveRangeAdd method. The current settings can be retrieved through the GraphicItemWaveRangeParamsGet method and modified through the GraphicItemWaveRangeParamsSett method.

 

 

Visual C++ definition

 

typedef struct

{

         OLE_COLOR colorBack;

         OLE_COLOR colorWaveLinePeak;

         OLE_COLOR colorWaveLineCenter;

} WANALYZER_WAVE_RANGE;

 

This data structure is defined inside the WavMmsEngDef.h header file which can be found inside the product's Include directory (default \Program Files\MultiMedia Soft\Active Waveform Analyzer\include).

 

Visual Basic definition

 

Public Type WANALYZER_WAVE_RANGE

         colorBack As OLE_COLOR

         colorWaveLinePeak As OLE_COLOR

         colorWaveLineCenter As OLE_COLOR

End Type

 

This data structure is defined inside the AsoedDef.bas module file which can be found inside the product's Include directory (default \Program Files\MultiMedia Soft\Active Waveform Analyzer\include).

 

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.