|
SHAPER
9.15.0
|
A class of dialog to chose a color. More...

Public Member Functions | |
| XGUI_ColorDialog (QWidget *theParent, bool theCheckBoxNeed=true) | |
| Constructor. More... | |
| bool | isRandomColor () const |
| Returns whether the random state of color is chosen. More... | |
| bool | isSetOnSubShape () const |
| Returns whether the need set color on subshape only. 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, |
| bool | theCheckBoxNeed = true |
||
| ) |
Constructor.
| theParent | a parent widget for the dialog |
| bool XGUI_ColorDialog::isRandomColor | ( | ) | const |
Returns whether the random state of color is chosen.
| bool XGUI_ColorDialog::isSetOnSubShape | ( | ) | const |
Returns whether the need set color on subshape only.
| 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 values depend on the random choice and either 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.