SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker Class Reference

#include <QRGBAColorPicker.h>

Inheritance diagram for sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker:

Detailed Description

Implement a widget to select a color either using a color wheel or by three values.

Protected Attributes

QRgb _rgba
 
QLineEdit_r
 
QLineEdit_g
 
QLineEdit_b
 
QLineEdit_a
 
QPushButton_colorButton
 

Public Member Functions

 QRGBAColorPicker (QWidget *parent)
 
void setColor (const Vec4f &color)
 
Vec4f getColor () const
 

Signals

void hasChanged ()
 

Protected Slots

void updateRGBAColor ()
 
void redrawColorButton ()
 
void raiseQColorDialog ()
 

Attribute details

QLineEdit* sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_a
protected
QLineEdit* sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_b
protected
QPushButton* sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_colorButton
protected
QLineEdit* sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_g
protected
QLineEdit* sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_r
protected
QRgb sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::_rgba
protected

Constructor details

sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::QRGBAColorPicker ( QWidget parent)

Function details

Vec4f sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::getColor ( ) const
void sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::hasChanged ( )
signal
void sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::raiseQColorDialog ( )
protectedslot
void sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::redrawColorButton ( )
protectedslot
void sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::setColor ( const Vec4f &  color)
void sofa::gui::qt::qrgbacolorpicker_h::QRGBAColorPicker::updateRGBAColor ( )
protectedslot