SHAPER
9.12.0
|
A class of dialog to chose a color. More...
Public Member Functions | |
XGUI_ColorDialog (QWidget *theParent) | |
Constructor. More... | |
bool | isRandomColor () const |
Returns whether the random state of color is chosen. More... | |
void | setColor (const std::vector< int > &theValue) |
Initializes the dialog with the given value. More... | |
std::vector< int > | getColor () const |
Returns a container with the current color value. More... | |
std::vector< int > | getRandomColor () const |
Returns a container with the current color value. More... | |
A class of dialog to chose a color.
The color can be set in two ways: use a random value or a certain color. There is a radio button to provide this choice. The color button is visualized to select a certain color.
XGUI_ColorDialog::XGUI_ColorDialog | ( | QWidget * | theParent | ) |
Constructor.
theParent | a parent widget for the dialog |
bool XGUI_ColorDialog::isRandomColor | ( | ) | const |
Returns whether the random state of color is chosen.
void XGUI_ColorDialog::setColor | ( | const std::vector< int > & | theValue | ) |
Initializes the dialog with the given value.
Set choice on certain value and fill it by.
theValue | an RGB components value |
std::vector< int > XGUI_ColorDialog::getColor | ( | ) | const |
Returns a container with the current color value.
These are tree int values for RGB definition. These value is depend on the random choice and eighter a next random color or a certain color.
std::vector< int > XGUI_ColorDialog::getRandomColor | ( | ) | const |
Returns a container with the current color value.
These are tree int values for RGB definition. It returns the next random color.