PSQt::WdgColorTable Class Reference
[PSQt package]

Widget showing colot wheel and setting parameters (hue angles) for color table. More...

#include <WdgColorTable.h>

List of all members.

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)


Detailed Description

Widget showing colot wheel and setting parameters (hue angles) for color table.

This software was developed for the LCLS project. If you use all or part of it, please give an appropriate acknowledgment.

See also:
GUIImageViewer
Version:
Id
WdgColorTable.h 9841 2015-03-26 18:35:44Z dubrovin@SLAC.STANFORD.EDU
Author:
Mikhail Dubrovin

Definition at line 37 of file WdgColorTable.h.


Constructor & Destructor Documentation

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


Member Function Documentation

void PSQt::WdgColorTable::closeEvent ( QCloseEvent *  event = 0  ) 

Definition at line 159 of file WdgColorTable.cpp.

References PSQt::DEBUG, and MsgInLog.

uint32_t* PSQt::WdgColorTable::getColorTable ( const unsigned &  colors,
const float &  h1,
const float &  h2 
) [inline]

Definition at line 61 of file WdgColorTable.h.

References PSQt::ColorTable().

uint32_t* PSQt::WdgColorTable::getColorTable ( const unsigned &  colors = 1024  )  [inline]

Definition at line 60 of file WdgColorTable.h.

References PSQt::ColorTable().

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 (  ) 

Definition at line 112 of file WdgColorTable.cpp.

Referenced by WdgColorTable().

void PSQt::WdgColorTable::setStyle (  ) 

Definition at line 127 of file WdgColorTable.cpp.

Referenced by WdgColorTable().

void PSQt::WdgColorTable::showTips (  ) 

Definition at line 103 of file WdgColorTable.cpp.

Referenced by WdgColorTable().

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


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7