Class QRgbChannelSpinBoxesPopup
ClassList > QRgbChannelSpinBoxesPopup
Popup widget that provides spin boxes for adjusting RGB channel values. More...
#include <widgets.h>
Inherits the following classes: QWidget
Public Attributes
| Type | Name |
|---|---|
| QSpinBox * | m_spinBox1 Spin box for managing one of the RGB channel values. |
| QSpinBox * | m_spinBox2 Spin box for managing one of the RGB channel values. |
| QSpinBox * | m_spinBox3 Spin box for managing one of the RGB channel values. |
Public Slots
| Type | Name |
|---|---|
| slot void | UpdateRgb (int red, int green, int blue) Updates the RGB values of the spin boxes and emits a value change signal. |
Public Signals
| Type | Name |
|---|---|
| signal void | ValueChanged (std::vector< int > rgb) Signal emitted when the RGB values change. |
Public Functions
| Type | Name |
|---|---|
| QRgbChannelSpinBoxesPopup (QWidget * parent=nullptr) Popup widget for managing RGB channel values using spin boxes. |
|
| std::vector< int > | getRgb () const Retrieves the current RGB values from the spin boxes. |
Detailed Description
This class represents a popup widget containing three separate spin boxes, each corresponding to one of the RGB (Red, Green, Blue) color channels. It allows fine-grained control over the adjustment of individual channel number.
The spin boxes can be used to independently select which channel of a spectral image should be used to construct an RGB image.
Public Attributes Documentation
variable m_spinBox1
Spin box for managing one of the RGB channel values.
Represents a spin box widget used to manage the value of one of the RGB channels (red, green, or blue). This spin box allows users to input integer values within a defined range. It is part of the popup widget and interacts with the corresponding signals and slots for handling RGB value changes.
variable m_spinBox2
Spin box for managing one of the RGB channel values.
Represents a spin box widget used to manage the value of one of the RGB channels (red, green, or blue). This spin box allows users to input integer values within a defined range. It is part of the popup widget and interacts with the corresponding signals and slots for handling RGB value changes.
variable m_spinBox3
Spin box for managing one of the RGB channel values.
Represents a spin box widget used to manage the value of one of the RGB channels (red, green, or blue). This spin box allows users to input integer values within a defined range. It is part of the popup widget and interacts with the corresponding signals and slots for handling RGB value changes.
Public Slots Documentation
slot UpdateRgb
Updates the RGB values of the spin boxes and emits a value change signal.
This function updates the values of the internal spin boxes representing the red, green, and blue channels. It also emits a signal with the updated RGB values as a vector, notifying other connected components of the change.
Parameters:
redThe new value for the red channel.greenThe new value for the green channel.blueThe new value for the blue channel.
Public Signals Documentation
signal ValueChanged
Signal emitted when the RGB values change.
This signal is emitted whenever the values of the RGB spin boxes are updated either through user input or programmatically. The updated RGB values are passed as a vector of integers in the order: red, green, blue.
Parameters:
rgbA vector containing the updated RGB values in the order: red, green, blue.
Public Functions Documentation
function QRgbChannelSpinBoxesPopup
Popup widget for managing RGB channel values using spin boxes.
Parameters:
parentThe parent widget for this popup widget. Defaults tonullptr.
function getRgb
Retrieves the current RGB values from the spin boxes.
This method returns the current values of the red, green, and blue channels as integers stored in a vector. These values represent the state of the RGB spin boxes in the popup widget.
Returns:
A vector of integers containing the RGB values in the order: red, green, blue.
The documentation for this class was generated from the following file src/widgets.h