#include <WdgColorTable.h>
Public Slots | |
void | onButExit () |
void | onEdiH1 () |
void | onEdiH2 () |
void | onButApply () |
void | onSetH (const unsigned &selected) |
void | onHueAngleIsChanged () |
void | testSignalHueAnglesUpdated (const float &, const float &) |
Signals | |
void | hueAnglesUpdated (const float &, const float &) |
void | hueAngleIsEdited (const unsigned &edited) |
Public Member Functions | |
WdgColorTable (QWidget *parent=0, const float &h1=260, const float &h2=-60, const unsigned &colors=1024) | |
void | setFrame () |
void | setStyle () |
void | showTips () |
void | closeEvent (QCloseEvent *event=0) |
void | moveEvent (QMoveEvent *event=0) |
void | setColorBar (const float &hue1=0, const float &hue2=360, const unsigned &rows=40, const unsigned &cols=256) |
float | getH1 () |
float | getH2 () |
uint32_t * | getColorTable (const unsigned &colors=1024) |
uint32_t * | getColorTable (const unsigned &colors, const float &h1, const float &h2) |
ndarray< uint32_t, 1 > | getColorTableAsNDArray (const unsigned &colors=1024) |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event=0) |
void | mouseMoveEvent (QMouseEvent *event=0) |
void | resizeEvent (QResizeEvent *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 37 of file WdgColorTable.h.
PSQt::WdgColorTable::WdgColorTable | ( | QWidget * | parent = 0 , |
|
const float & | h1 = 260 , |
|||
const float & | h2 = -60 , |
|||
const unsigned & | colors = 1024 | |||
) |
Definition at line 26 of file WdgColorTable.cpp.
References hueAngleIsEdited(), hueAnglesUpdated(), onButApply(), onEdiH1(), onEdiH2(), onHueAngleIsChanged(), onSetH(), setColorBar(), setFrame(), setStyle(), showTips(), and testSignalHueAnglesUpdated().
void PSQt::WdgColorTable::closeEvent | ( | QCloseEvent * | event = 0 |
) |
uint32_t* PSQt::WdgColorTable::getColorTable | ( | const unsigned & | colors, | |
const float & | h1, | |||
const float & | h2 | |||
) | [inline] |
uint32_t* PSQt::WdgColorTable::getColorTable | ( | const unsigned & | colors = 1024 |
) | [inline] |
ndarray< uint32_t, 1 > PSQt::WdgColorTable::getColorTableAsNDArray | ( | const unsigned & | colors = 1024 |
) |
Definition at line 300 of file WdgColorTable.cpp.
References PSQt::ColorTable(), and CalibPars::shape().
float PSQt::WdgColorTable::getH1 | ( | ) | [inline] |
Definition at line 57 of file WdgColorTable.h.
float PSQt::WdgColorTable::getH2 | ( | ) | [inline] |
Definition at line 58 of file WdgColorTable.h.
void PSQt::WdgColorTable::hueAngleIsEdited | ( | const unsigned & | edited | ) | [signal] |
Referenced by onEdiH1(), onEdiH2(), and WdgColorTable().
void PSQt::WdgColorTable::hueAnglesUpdated | ( | const float & | , | |
const float & | ||||
) | [signal] |
Referenced by onButApply(), and WdgColorTable().
void PSQt::WdgColorTable::mouseMoveEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
Definition at line 189 of file WdgColorTable.cpp.
void PSQt::WdgColorTable::mousePressEvent | ( | QMouseEvent * | event = 0 |
) | [protected] |
Definition at line 179 of file WdgColorTable.cpp.
void PSQt::WdgColorTable::moveEvent | ( | QMoveEvent * | event = 0 |
) |
Definition at line 168 of file WdgColorTable.cpp.
void PSQt::WdgColorTable::onButApply | ( | ) | [slot] |
Definition at line 249 of file WdgColorTable.cpp.
References hueAnglesUpdated(), PSQt::INFO, and MsgInLog.
Referenced by WdgColorTable().
void PSQt::WdgColorTable::onButExit | ( | ) | [slot] |
Definition at line 269 of file WdgColorTable.cpp.
void PSQt::WdgColorTable::onEdiH1 | ( | ) | [slot] |
Definition at line 208 of file WdgColorTable.cpp.
References hueAngleIsEdited(), onHueAngleIsChanged(), setColorBar(), and PSQt::string_to_int().
Referenced by WdgColorTable().
void PSQt::WdgColorTable::onEdiH2 | ( | ) | [slot] |
Definition at line 222 of file WdgColorTable.cpp.
References hueAngleIsEdited(), onHueAngleIsChanged(), setColorBar(), and PSQt::string_to_int().
Referenced by WdgColorTable().
void PSQt::WdgColorTable::onHueAngleIsChanged | ( | ) | [slot] |
Definition at line 259 of file WdgColorTable.cpp.
Referenced by onEdiH1(), onEdiH2(), and WdgColorTable().
void PSQt::WdgColorTable::onSetH | ( | const unsigned & | selected | ) | [slot] |
Definition at line 236 of file WdgColorTable.cpp.
References setColorBar().
Referenced by WdgColorTable().
void PSQt::WdgColorTable::resizeEvent | ( | QResizeEvent * | event = 0 |
) | [protected] |
Definition at line 144 of file WdgColorTable.cpp.
void PSQt::WdgColorTable::setColorBar | ( | const float & | hue1 = 0 , |
|
const float & | hue2 = 360 , |
|||
const unsigned & | rows = 40 , |
|||
const unsigned & | cols = 256 | |||
) |
Definition at line 278 of file WdgColorTable.cpp.
References PSQt::ColorTable(), and PSQt::setPixmapForLabel().
Referenced by onEdiH1(), onEdiH2(), onSetH(), and WdgColorTable().
void PSQt::WdgColorTable::setFrame | ( | ) |
void PSQt::WdgColorTable::setStyle | ( | ) |
void PSQt::WdgColorTable::showTips | ( | ) |
void PSQt::WdgColorTable::testSignalHueAnglesUpdated | ( | const float & | , | |
const float & | ||||
) | [slot] |
Definition at line 312 of file WdgColorTable.cpp.
References PSQt::DEBUG, and MsgInLog.
Referenced by WdgColorTable().