The class ImageLutWidget defines a widget controling the Look Up Table of an instance of ImageComponent.
More...
#include <ImageLutWidget.h>
|
void | blockAllSignals (bool) |
| block/unblock signals for all the GUI widgets More...
|
|
void | draw () |
| draws the histogram and LUT graphic representation More...
|
|
template<class DATATYPE > |
void | fillHistogramTable (DATATYPE *data, unsigned int dataDim, DATATYPE minVal, DATATYPE maxVal) |
| fill the data for the histogram More...
|
|
void | fitView () |
| ensure that all graphics are completely visible and only that More...
|
|
void | initLevelGUI (int min, int max, int value) |
| Init level slider and text with its minimum, maximum and current value. More...
|
|
void | initSlider (QSlider *slider, int min, int max, int value) |
| init a slider More...
|
|
void | initWindowGUI (int min, int max, int value) |
| Init window slider and text with its minimum, maximum and current value. More...
|
|
void | updateGradient () |
| update the gradient display in the widget More...
|
|
The class ImageLutWidget defines a widget controling the Look Up Table of an instance of ImageComponent.
- Note
- The ui is defined in the corresponding ImageLutWidget.ui
ImageLutWidget::ImageLutWidget |
( |
QWidget * |
parent = 0 | ) |
|
ImageLutWidget::~ImageLutWidget |
( |
| ) |
|
void ImageLutWidget::applyLUT |
( |
| ) |
|
|
privateslot |
Update the component LUT using the GUI values.
void ImageLutWidget::blockAllSignals |
( |
bool |
| ) |
|
|
private |
block/unblock signals for all the GUI widgets
void ImageLutWidget::draw |
( |
| ) |
|
|
private |
draws the histogram and LUT graphic representation
template<class DATATYPE >
void ImageLutWidget::fillHistogramTable |
( |
DATATYPE * |
data, |
|
|
unsigned int |
dataDim, |
|
|
DATATYPE |
minVal, |
|
|
DATATYPE |
maxVal |
|
) |
| |
|
private |
fill the data for the histogram
void ImageLutWidget::fitView |
( |
| ) |
|
|
private |
ensure that all graphics are completely visible and only that
void ImageLutWidget::initLevelGUI |
( |
int |
min, |
|
|
int |
max, |
|
|
int |
value |
|
) |
| |
|
private |
Init level slider and text with its minimum, maximum and current value.
void ImageLutWidget::initSlider |
( |
QSlider * |
slider, |
|
|
int |
min, |
|
|
int |
max, |
|
|
int |
value |
|
) |
| |
|
private |
void ImageLutWidget::initWindowGUI |
( |
int |
min, |
|
|
int |
max, |
|
|
int |
value |
|
) |
| |
|
private |
Init window slider and text with its minimum, maximum and current value.
void ImageLutWidget::invertButtonClicked |
( |
| ) |
|
|
privateslot |
Slot called when the invert button is clicked.
void ImageLutWidget::lineEditLUTLevelChanged |
( |
| ) |
|
|
privateslot |
Slot called when the line edit for the lut level has changed.
void ImageLutWidget::lineEditLUTWindowChanged |
( |
| ) |
|
|
privateslot |
Slot called when the line edit for the window width has changed.
virtual void ImageLutWidget::resetLUT |
( |
| ) |
|
|
privatevirtualslot |
Slot that reset changed applied to the LUT.
virtual void ImageLutWidget::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
protectedvirtual |
overwritten from QWidget to ensure fit in view, see fitView()
void ImageLutWidget::setMaxColor |
( |
| ) |
|
|
privateslot |
slot called when the max color button is clicked
void ImageLutWidget::setMinColor |
( |
| ) |
|
|
privateslot |
slot called when the min color button is clicked
virtual void ImageLutWidget::showEvent |
( |
QShowEvent * |
| ) |
|
|
protectedvirtual |
overwritten from QWidget to ensure fit in view, see fitView()
void ImageLutWidget::sliderLUTLevelChanged |
( |
int |
| ) |
|
|
privateslot |
Slot called when the slider for the lut level has changed.
void ImageLutWidget::sliderLUTWindowChanged |
( |
int |
| ) |
|
|
privateslot |
Slot called when the slider for the window width has changed.
load the LUT data using the LUT from the image component
void ImageLutWidget::updateGradient |
( |
| ) |
|
|
private |
update the gradient display in the widget
double* ImageLutWidget::greyLevels |
|
private |
Table containing histogram bins.
- Note
- use double as it can have a high number of pixel of the same number
double ImageLutWidget::highestGreyLevel |
|
private |
highest number of grey level (highest value in greyLevels array)
- Note
- use double as it can have a high number of pixel of the same number
bool ImageLutWidget::invert |
|
private |
does the user asked for an invert LUT
double ImageLutWidget::lutMax |
|
private |
Min the possible data value (given by the data type of the image)
double ImageLutWidget::lutMin |
|
private |
Min the possible data value (given by the data type of the image)
the current ImageComponent
unsigned int ImageLutWidget::nbHistoBins |
|
private |
size of greyLevels
- Note
- the maximum number of histogram bins is UINT_MAX
QGraphicsRectItem* ImageLutWidget::sceneRectItem |
|
private |
the graphics item around all other item in the graphics view
Ui::ui_ImageLutWidget ImageLutWidget::ui |
|
private |
The documentation for this class was generated from the following file: