SHAPER  9.12.0
XGUI_ColorDialog Class Reference

A class of dialog to chose a color. More...

Inheritance diagram for XGUI_ColorDialog:
Inheritance graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ XGUI_ColorDialog()

XGUI_ColorDialog::XGUI_ColorDialog ( QWidget theParent)

Constructor.

Parameters
theParenta parent widget for the dialog

Member Function Documentation

◆ isRandomColor()

bool XGUI_ColorDialog::isRandomColor ( ) const

Returns whether the random state of color is chosen.

Returns
a boolean value

◆ setColor()

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.

Parameters
theValuean RGB components value

◆ getColor()

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.

Returns
a vector of values

◆ getRandomColor()

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.

Returns
a vector of values