Computer Assisted Medical Intervention Tool Kit  version 5.2
ImageLutWidget Class Reference

The class ImageLutWidget defines a widget controling the Look Up Table of an instance of ImageComponent. More...

#include <ImageLutWidget.h>

+ Inheritance diagram for ImageLutWidget:
+ Collaboration diagram for ImageLutWidget:

Public Member Functions

 ImageLutWidget (QWidget *parent=nullptr)
 Default construtor. More...
 
void showHistogramTooltip (QPointF)
 show tool tip from the histogramGraphicsRectItem More...
 
void updateComponent (camitk::ImageComponent *)
 load the LUT data using the LUT from the image component (requires an ImageComponent with a LUT) More...
 
 ~ImageLutWidget () override
 destructor More...
 

Protected Member Functions

void resizeEvent (QResizeEvent *) override
 overwritten from QWidget to ensure fit in view, see fitView() More...
 
void showEvent (QShowEvent *) override
 overwritten from QWidget to ensure fit in view, see fitView() More...
 

Detailed Description

The class ImageLutWidget defines a widget controling the Look Up Table of an instance of ImageComponent.

Uses double data type to manage the histogram. This allows for managin properly all type of voxel datatype.

Note
The ui is defined in the corresponding ImageLutWidget.ui

Constructor & Destructor Documentation

◆ ImageLutWidget()

ImageLutWidget::ImageLutWidget ( QWidget *  parent = nullptr)

Default construtor.

◆ ~ImageLutWidget()

ImageLutWidget::~ImageLutWidget ( )
override

destructor

Member Function Documentation

◆ resizeEvent()

void ImageLutWidget::resizeEvent ( QResizeEvent *  )
overrideprotected

overwritten from QWidget to ensure fit in view, see fitView()

◆ showEvent()

void ImageLutWidget::showEvent ( QShowEvent *  )
overrideprotected

overwritten from QWidget to ensure fit in view, see fitView()

◆ showHistogramTooltip()

void ImageLutWidget::showHistogramTooltip ( QPointF  mousePos)

show tool tip from the histogramGraphicsRectItem

References ImageLutModel::getBinValue(), ImageLutModel::getMaxValue(), ImageLutModel::getMinValue(), and ImageLutModel::getNumberOfBins().

Referenced by HistogramGraphicsRectItem::hoverMoveEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateComponent()

void ImageLutWidget::updateComponent ( camitk::ImageComponent imageComponent)

load the LUT data using the LUT from the image component (requires an ImageComponent with a LUT)

References camitk::ImageComponent::getImageData(), and camitk::ImageComponent::getLut().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: