ddt 1.2.1
Loading...
Searching...
No Matches
Signals | List of all members
DdtColourmapWidget Class Reference

#include <ddtColourmapWidget.hpp>

Inheritance diagram for DdtColourmapWidget:
DdtWidget

Signals

void ChangeContrast (ddt::colorMap_t colourmap, ddt::colorMap_t colourmap_inverted, ddt::colorMapARGB_t colourmap_argb, ddt::colorMapARGB_t colourmap_argb_inverted)
 
void RestoreColourmap ()
 
 DdtColourmapWidget (QWidget *parent=nullptr)
 
virtual ~DdtColourmapWidget ()
 
void mousePressEvent (QMouseEvent *event) final
 
void mouseMoveEvent (QMouseEvent *event) final
 
void mouseReleaseEvent (QMouseEvent *event) final
 
void SetCurrentColourmap (QVector< QRgb > colourmap)
 
void UpdateColourbarAxis (double min_value, double max_value, int scaling_function)
 
void Reset ()
 
void InvertColourmap (const bool invert)
 

Additional Inherited Members

- Public Member Functions inherited from DdtWidget
virtual ~DdtWidget ()=default
 
 DdtWidget (QWidget *parent=nullptr)
 DdtWidget.
 
QWidget * AddParentWidget (QLayout *child_layout)
 AddParentWidget This will add the given layout to a QGroupBox Widget to integrate in the parent layout.
 
void connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 connect Group of overloaded functions that use the QObject::connect method with the Qt::QueuedConnection flag. This defines Qt Signal and Slots connection the same way thought out the QApplication.
 
void connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
void connect (const QObject *sender, const char *signal, const char *member)
 
template<typename Func1 , typename Func2 >
void connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *context, Func2 slot)
 connect Template version of QObject::connection with fixed Qt::QueuedConnection flag. Normally used to connect a signal with a lambda 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

◆ ChangeContrast

void DdtColourmapWidget::ChangeContrast ( ddt::colorMap_t colourmap,
ddt::colorMap_t colourmap_inverted,
ddt::colorMapARGB_t colourmap_argb,
ddt::colorMapARGB_t colourmap_argb_inverted )
signal

Signal which is sent when the colourbar is changed by the user

◆ InvertColourmap

void DdtColourmapWidget::InvertColourmap ( const bool invert)
protectedslot

Slot which is called when the colourmap was inverted

Parameters
invertTrue if colourmap was inverted, false otherwise.

◆ mouseMoveEvent()

void DdtColourmapWidget::mouseMoveEvent ( QMouseEvent * event)
final

◆ mousePressEvent()

void DdtColourmapWidget::mousePressEvent ( QMouseEvent * event)
final

◆ mouseReleaseEvent()

void DdtColourmapWidget::mouseReleaseEvent ( QMouseEvent * event)
final

◆ Reset

void DdtColourmapWidget::Reset ( )
protectedslot

Slot which is called when the image in the image widget is cleared

◆ RestoreColourmap

void DdtColourmapWidget::RestoreColourmap ( )
signal

Signal which is sent when the colourmap should be restored. This is triggered by pressing the mouse wheel on the colourbar.

◆ 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: