ddt  0.1
Public Member Functions | Protected Slots | List of all members
DdtColourmapWidget Class Reference

#include <ddtColourmapWidget.hpp>

Inheritance diagram for DdtColourmapWidget:
DdtWidget

Public Member Functions

 DdtColourmapWidget (QWidget *parent=nullptr)
 
virtual ~DdtColourmapWidget ()
 
- Public Member Functions inherited from DdtWidget
 DdtWidget (QWidget *parent=nullptr)
 DdtWidget. More...
 
virtual ~DdtWidget ()=default
 
QLayout * addParentLayout (QLayout *childLayout)
 addParentLayout This will add the given layout to the layout of the parent inside the group box. More...
 

Protected Slots

void SetCurrentColourmap (QVector< QRgb > colourmap)
 
void UpdateColourbarAxis (double min_value, double max_value, int scaling_function)
 

Detailed Description

Class for the colourmap widget which displays the currently selected colourmap

Constructor & Destructor Documentation

◆ DdtColourmapWidget()

DdtColourmapWidget::DdtColourmapWidget ( QWidget *  parent = nullptr)
explicit

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtColourmapWidget()

DdtColourmapWidget::~DdtColourmapWidget ( )
virtualdefault

Destructor

Member Function Documentation

◆ SetCurrentColourmap

void DdtColourmapWidget::SetCurrentColourmap ( QVector< QRgb >  colourmap)
protectedslot

Receive the current colourmap as qRGB vector

Parameters
colourmapVector of 255 RGB colour values

◆ UpdateColourbarAxis

void DdtColourmapWidget::UpdateColourbarAxis ( double  min_value,
double  max_value,
int  scaling_function 
)
protectedslot

Receive the current scaling function and minimum and maximum value for the scale

Parameters
min_valueMinimum pixel value used
max_valueMaximum pixel value used
scaling_functionThe scaling function actively used

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