Computer Assisted Medical Intervention Tool Kit  version 5.2
 
Loading...
Searching...
No Matches
ImageLutWidget Class Reference

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

#include <ImageLutWidget.h>

Public Member Functions

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

Protected Member Functions

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

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)

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


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