CPowerSpectrumChannelDisplay Class Reference
Public Member Functions | |
CPowerSpectrumChannelDisplay (CPowerSpectrumDisplayView *pParentDisplay, OpenViBE::uint32 ui32Channel, CPowerSpectrumDatabase &pDatabase, OpenViBE::int32 i32ChannelDisplayWidthRequest, OpenViBE::int32 i32ChannelDisplayHeightRequest, OpenViBE::int32 i32LeftRulerWidthRequest, OpenViBE::int32 i32LeftRulerHeightRequest) | |
Constructor. | |
~CPowerSpectrumChannelDisplay () | |
Destructor. | |
::GtkWidget * | getTopWidget () const |
Get channel top (main) widget. | |
GtkWidget * | getSpectrumDisplayWidget () const |
Get spectrum display widget. | |
void | toggle (OpenViBE::boolean bActive) |
Toggle channel visibility. | |
void | toggleLeftRuler (OpenViBE::boolean bActive) |
Set left ruler visibility. | |
void | drawSpectrum () |
Draw channel spectrum. | |
void | drawLeftRuler () |
Draws left ruler (amplitude scale) | |
void | drawBottomRuler () |
Draws bottom ruler (frequency scale) | |
void | update () |
Compute spectrum. | |
void | resizeRGBBuffer (OpenViBE::uint32 ui32Width, OpenViBE::uint32 ui32Height) |
Resize RGB buffer of this channel. | |
void | drawBoxToBuffer (OpenViBE::uint32 ui32X, OpenViBE::uint32 ui32Y, OpenViBE::uint32 ui32Width, OpenViBE::uint32 ui32Height, OpenViBE::uint8 ui8Red, OpenViBE::uint8 ui8Green, OpenViBE::uint8 ui8Blue) |
Draw a box in a RGB buffer. |
Detailed Description
Displays power spectrum of a given channel.
Constructor & Destructor Documentation
CPowerSpectrumChannelDisplay | ( | CPowerSpectrumDisplayView * | pParentDisplay, |
OpenViBE::uint32 | ui32Channel, | ||
CPowerSpectrumDatabase & | pDatabase, | ||
OpenViBE::int32 | i32ChannelDisplayWidthRequest, | ||
OpenViBE::int32 | i32ChannelDisplayHeightRequest, | ||
OpenViBE::int32 | i32LeftRulerWidthRequest, | ||
OpenViBE::int32 | i32LeftRulerHeightRequest | ||
) |
Constructor.
- Parameters:
-
pParentDisplay Pointer to object managing power spectrum widgets ui32Channel Index of channel to display pDatabase Object holding signal data i32ChannelDisplayWidthRequest Width to be requested by widget i32ChannelDisplayHeightRequest Height to be requested by widget i32LeftRulerWidthRequest Width to be requested by left ruler i32LeftRulerHeightRequest Height to be requested by left ruler
Member Function Documentation
::GtkWidget* getTopWidget | ( | ) | const |
Get channel top (main) widget.
- Returns:
- Pointer to top GtkWidget
GtkWidget* getSpectrumDisplayWidget | ( | ) | const |
Get spectrum display widget.
- Returns:
- Pointer to spectrum display widget
void toggle | ( | OpenViBE::boolean | bActive | ) |
Toggle channel visibility.
- Parameters:
-
bActive Visibility flag
void toggleLeftRuler | ( | OpenViBE::boolean | bActive | ) |
Set left ruler visibility.
- Parameters:
-
bActive Visibility flag
void resizeRGBBuffer | ( | OpenViBE::uint32 | ui32Width, |
OpenViBE::uint32 | ui32Height | ||
) |
Resize RGB buffer of this channel.
- Parameters:
-
ui32Width Buffer width ui32Height Buffer height
void drawBoxToBuffer | ( | OpenViBE::uint32 | ui32X, |
OpenViBE::uint32 | ui32Y, | ||
OpenViBE::uint32 | ui32Width, | ||
OpenViBE::uint32 | ui32Height, | ||
OpenViBE::uint8 | ui8Red, | ||
OpenViBE::uint8 | ui8Green, | ||
OpenViBE::uint8 | ui8Blue | ||
) |
Draw a box in a RGB buffer.
- Parameters:
-
ui32X Box left coordinate ui32Y Box top coordinate ui32Width Box width ui32Height Box height ui8Red Red component of box color ui8Green Green component of box color ui8Blue Blue component of box color
Generated on Tue Jun 26 2012 15:25:54 for Documentation by 1.7.4