#include <LabColorRing.h>
Public Slots | |
void | onButExit () |
void | onSetShifter (const unsigned &selected) |
Signals | |
void | hueAngleIsMoving (const unsigned &selected) |
void | hueAngleIsMoved () |
Public Member Functions | |
LabColorRing (QWidget *parent, const unsigned &ssize, float &h1, float &h2) | |
void | setFrame () |
void | setStyle () |
void | setPens () |
void | showTips () |
void | resizeEvent (QResizeEvent *event=0) |
void | closeEvent (QCloseEvent *event=0) |
void | moveEvent (QMoveEvent *event=0) |
void | enterEvent (QEvent *event=0) |
void | leaveEvent (QEvent *event=0) |
void | paintEvent (QPaintEvent *event=0) |
void | setHueAngle (QMouseEvent *event=0) |
void | setColorRing (const int &ssize=512) |
void | drawLines () |
void | drawCircs () |
void | setPoints () |
Static Public Attributes | |
static const float | RAD2DEG = 180/3.14159265 |
static const float | DEG2RAD = 3.14159265/180 |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event=0) |
void | mouseMoveEvent (QMouseEvent *event=0) |
void | mouseReleaseEvent (QMouseEvent *event=0) |
This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.
Definition at line 39 of file LabColorRing.h.
PSQt::LabColorRing::LabColorRing | ( | QWidget * | parent, | |
const unsigned & | ssize, | |||
float & | h1, | |||
float & | h2 | |||
) |
Definition at line 23 of file LabColorRing.cpp.
References setColorRing(), setPens(), setStyle(), and showTips().
void PSQt::LabColorRing::closeEvent | ( | QCloseEvent * | event = 0 |
) |
Definition at line 213 of file LabColorRing.cpp.
void PSQt::LabColorRing::drawCircs | ( | ) |
void PSQt::LabColorRing::drawLines | ( | ) |
void PSQt::LabColorRing::enterEvent | ( | QEvent * | event = 0 |
) |
Definition at line 310 of file LabColorRing.cpp.
void PSQt::LabColorRing::hueAngleIsMoved | ( | ) | [signal] |
Referenced by mouseReleaseEvent().
void PSQt::LabColorRing::hueAngleIsMoving | ( | const unsigned & | selected | ) | [signal] |
Referenced by setHueAngle().
void PSQt::LabColorRing::leaveEvent | ( | QEvent * | event = 0 |
) |
Definition at line 318 of file LabColorRing.cpp.
void PSQt::LabColorRing::mouseMoveEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
void PSQt::LabColorRing::mousePressEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
Definition at line 235 of file LabColorRing.cpp.
void PSQt::LabColorRing::mouseReleaseEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
void PSQt::LabColorRing::moveEvent | ( | QMoveEvent * | event = 0 |
) |
Definition at line 224 of file LabColorRing.cpp.
void PSQt::LabColorRing::onButExit | ( | ) | [slot] |
Definition at line 382 of file LabColorRing.cpp.
void PSQt::LabColorRing::onSetShifter | ( | const unsigned & | selected | ) | [slot] |
Definition at line 372 of file LabColorRing.cpp.
void PSQt::LabColorRing::paintEvent | ( | QPaintEvent * | event = 0 |
) |
Definition at line 121 of file LabColorRing.cpp.
References drawCircs(), drawLines(), and setPoints().
void PSQt::LabColorRing::resizeEvent | ( | QResizeEvent * | event = 0 |
) |
Definition at line 202 of file LabColorRing.cpp.
void PSQt::LabColorRing::setColorRing | ( | const int & | ssize = 512 |
) |
Definition at line 404 of file LabColorRing.cpp.
References PSQt::HSV2RGBA(), and RAD2DEG.
Referenced by LabColorRing().
void PSQt::LabColorRing::setFrame | ( | ) |
Definition at line 72 of file LabColorRing.cpp.
void PSQt::LabColorRing::setHueAngle | ( | QMouseEvent * | event = 0 |
) |
Definition at line 341 of file LabColorRing.cpp.
References hueAngleIsMoving(), and RAD2DEG.
Referenced by mouseMoveEvent(), and mouseReleaseEvent().
void PSQt::LabColorRing::setPens | ( | ) |
void PSQt::LabColorRing::setPoints | ( | ) |
void PSQt::LabColorRing::setStyle | ( | ) |
void PSQt::LabColorRing::showTips | ( | ) |
const float PSQt::LabColorRing::DEG2RAD = 3.14159265/180 [static] |
const float PSQt::LabColorRing::RAD2DEG = 180/3.14159265 [static] |