MQColorDialog class

(new in Rev4.50)

MQColorDialog class manages a color panel to select a color. It inherits a MQDialog class.

Please refer the inherited class about member functions declared in the inherited class.

Class
MQColorDialog Constructor
~MQColorDialog Destructor
Member functions
GetColor Get a RGB color
SetColor Set a RGB color
GetHSV Get a HSV color
SetHSV Set a HSV color

MQColorDialog::MQColorDialog();

MQColorDialog::MQColorDialog(int id);

id
A widget ID created outside the plug-in

It is a constructor.


virtual MQColorDialog::~MQColorDialog();

This method is a destructor. It is defined as a virtual function.


void MQColorDialog::GetColor(int& r, int& g, int& b);

r
Red (0-255)
g
Green (0-255)
b
Blue (0-255)

It returns a color.


void MQColorDialog::SetColor(int r, int g, int b);

r
Red (from 0 to 255)
g
Green (from 0 to 255)
b
Blue (from 0 to 255)

It specifies a color.


void MQColorDialog::GetHSV(double& h, double& s, double& v);

h
Hue (from 0 to 360)
s
Saturation (from 0 to 1)
v
Value (from 0 to 1)

It returns a color by HSV.


void MQColorDialog::SetHSV(double h, double s, double v);

h
Hue (from 0 to 360)
s
Saturation (from 0 to 1)
v
Value (from 0 to 1)

It specifies a color by HSV.