ddt 1.2.1
Loading...
Searching...
No Matches
Signals | Public Attributes | Protected Attributes | Properties | List of all members
DdtImageWidget Class Reference

#include <ddtImageWidget.hpp>

Inheritance diagram for DdtImageWidget:
DdtWidget

Signals

void SetChangedDialogParameter (QString param_id, QVariant parameter)
 
void GraphicalElementsDialogClosed ()
 
void UpdatedImage (const QImage &image, const QTransform &transform, const double rotation)
 
void ImageWidgetViewChanged (QRectF visible_image_rect, int current_image_width, int current_image_height)
 
void NewBoostDataEvent ()
 
void CursorInfo (double x, double y, double pixelvalue, QString ra, QString decl)
 
void UpdateFlipStatus (bool vertical, bool horizontal)
 
void Swap ()
 
void MagnifiedImage (QImage magnified_image)
 
void ClearMagnifiedImage ()
 
void CurrentLayer (const int current_layer, const int total_layers)
 
void CurrentCutValues (double cutvalue_min, double cutvalue_max)
 
void SetCurrentColourmap (QVector< QRgb > colourtable)
 
void UpdateColourbarAxis (double min_value, double max_value, int scaling_function)
 
void InvertColourmap (bool inverted)
 
void CurrentConnectStatus (QString data_stream_id, ConnectionStatus status)
 
void ContextMenuCommandSelected (QString menu_entry)
 
void Reset ()
 
void DefaultDockWidgetsLayout ()
 
void ScaleFactorListChanged (QList< QString > scale_factor_list)
 ScaleFactorListChanged Signal to inform other about new scale values are set.
 
void UpdateScaleFactor (QString new_scale_factor)
 UpdateScaleFactor this signal inform others about a new scale factor.
 
void UpdateAutoScale (bool new_state)
 UpdateAutoScale this signal inform others about that the auto scale state changed.
 

Public Attributes

signal_response response_signal
 

Protected Attributes

ddt::DdtLoggerlogger
 
DdtOverlayRenderingoverlay_rendering
 
DdtGraphicalElementProperties overlay_properties
 
bool use_open_gl
 use_open_gl Flag for the usage of OpenGl
 
bool use_antialiasing
 use_antialiasing Flag for the usage of antialiasing
 
bool auto_scale
 auto_scale Flag for the usage of automatic scaling of new images
 
QString default_scale_factor
 default_scale_factor Value of the default scale factor
 
bool no_wait_new_data
 no_wait_new_data flag Flag indicating that the content of the data stream is displayed without waiting for new incoming data
 
QString default_bias_image
 
bool show_scrollbars
 
int current_rotation_value
 current_rotation_value The current used rotation on present image
 
QString current_scale_factor
 current_scale_factor The current used scale factor
 
QString selected_scale_factor
 selected_scale_factor Last selected scale factor
 
QString current_magnification_factor
 
QString current_pick_object_magnification_factor
 
QString current_dialog_magnification_factor
 
int last_magnify_x
 
int last_magnify_y
 
QMap< QString, float > scale_factor_pool
 scale_factor_pool Each possible scale factor is here stored with the string and float value.
 
QMap< QString, float > scale_factor_favorites
 scale_factor_favorites All favorites scale factor are here stored with the string and float value.
 
QString define_scale_factor
 define_scale_factor This string is configured from outside over the designer. The scale factors are separated by a semicolon.
 
QString default_colourmap
 default_colourmap The default colourmap
 
QString list_context_menu
 list_context_menu List of context menu items
 
QString list_dialogs_menu
 list_dialogs_menu List of context menu dialog items
 
QString colourmap_directory
 colourmap_directory The colourmap directory used
 
QString configurationmap_directory
 configurationmap_directory The configurationmap directory used
 
QTransform scaling_transform
 
QTransform rotation_transform
 

Properties

bool UseOpenGL
 
bool UseAntialiasing
 
bool AutoScale
 
QString DefaultScale
 
QString ScaleFactorList
 
QString DefaultColourmap
 
QString ListContextMenu
 
QString ListDialogsMenu
 
QString DefautBiasImage
 
bool ShowScrollbars
 
 DdtImageWidget (QWidget *parent=nullptr)
 
virtual ~DdtImageWidget ()
 
DdtOverlayRenderingGetOverlayRendering ()
 
void ProcessRemoteCommand (const std::string &command_name, const std::vector< std::string > &command_arguments)
 
void InitializeDialogMap (const QMap< QString, DdtDialog * > insert_map)
 
QString FetchDialogName (const QString dialog_id) const
 
bool get_use_open_gl () const
 
void set_use_open_gl (const bool open_gl)
 
bool get_use_antialiasing () const
 
void set_use_antialiasing (const bool antialiasing)
 
bool get_auto_scale () const
 
void set_auto_scale (const bool scale)
 
void ReadScaleFactors ()
 DdtImageWidget::readScaleFactors Reads out the string of scale values and put them converted to float values to the map.
 
QList< QString > SortedScaleFactors (QMap< QString, float > scale_map)
 DdtImageWidget::sortedScaleFactors Sorts the list of scale factors based on the float values.
 
QString get_define_scale_factor () const
 get_define_scale_factor this returns the string with scale factors which is set from outside over the properties.
 
void set_define_scale_factor (const QString new_values)
 set_define_scale_factor This is used to set the scale factors from outside over the properties.
 
QString get_default_scale_factor () const
 
void set_default_scale_factor (const QString new_default_scale_factor)
 
QString get_default_colourmap () const
 
void set_default_colourmap (const QString new_default_colourmap)
 
void set_list_context_menu (const QString new_list_context_menu)
 
QString get_list_context_menu () const
 
void set_list_dialogs_menu (const QString new_list_dialogs_menu)
 
QString get_list_dialogs_menu () const
 
QString get_default_bias_image () const
 
void set_default_bias_image (const QString set_bias_image)
 
bool get_show_scrollbars () const
 
void set_show_scrollbars (const bool set_show_scrollbars)
 
DdtGraphicalElementProperties get_overlay_properties ()
 
DdtGraphicalOverlayget_graphical_overlay ()
 
void RedrawOverlay ()
 
void set_logger (ddt::DdtLogger *const in_logger)
 
float ParseFractionString (QString fraction_str)
 
void ConvertCanvasToImage (const double x_canvas, const double y_canvas, double *const x_image, double *const y_image) const
 
void ConvertImageToCanvas (const double x_image, const double y_image, double *const x_canvas, double *const y_canvas) const
 
bool eventFilter (QObject *obj, QEvent *event)
 
void HandleNewBoostDataEvent ()
 
void CutLevelChanged ()
 
void ReloadGraphicsItem ()
 
void UpdateThumbnailImages ()
 
void UpdateAllStatistics ()
 
void CloseAllDialogs ()
 CloseAllDialogs This will close all dialogs.
 
void MarkPositions ()
 
QString EndMarkPositions ()
 
void RegisterLastSegmentCallback (std::function< void()> const &LastSegmentFunction)
 
void SetOverlayImageFile (const QString overlay_file)
 
void AddRenderingPlugins (DdtRenderingPlugin *const new_plugin)
 
void SetActiveRenderingPlugin (const int rendering_plugin_id)
 
void ActivateTimestampDisplay ()
 
void AttachImageFromPointer (float *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (double *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (int32_t *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (uint8_t *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (uint16_t *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (uint32_t *new_image_data, int nx, int ny)
 
void AttachImageFromPointer (int16_t *new_image_data, int nx, int ny)
 
void resizeEvent (QResizeEvent *event)
 
void RemoveAllItemsFromScene ()
 
void RemoveAllOverlayItemsFromScene ()
 
void GraphicsControlCheckTaggedItems (DdtGraphicalOverlay *overlay, QString tag, bool flag)
 
void CalculatePickStatistics (PickMode pick_mode, double x, double y, double pixel_value, QString ra, QString dec)
 
void GetTabularRegion (const double x_image, const double y_image)
 
void MagnifyImage (int x, int y, const bool pick_mode=false)
 
void MagnifyImageWithFactor (const QString mag_factor_str, const int mag_fact_index, const int x, const int y)
 
void SetInitialDialogParameters (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersColourmapDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersPickObjectDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersMagnificationDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersFITSHeaderDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersMetadataSampleDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersHDUDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersTabularRegionDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersGraphicalDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersGraphicsControl (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersCutValuesDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersBiasDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersScaleRotateCutValuesDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersStatisticDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersPVCMDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersReferenceLineDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersDataStreamDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersDistanceDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersMonitorSamplesDialog (DdtDialog *dialog, const QString dialog_id)
 
void SetInitialDialogParametersBinaryTableDialog (DdtDialog *dialog, const QString dialog_id)
 
void DialogParameterChangedColourmapDialog (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedPickObject (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedMagnification (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedMonitorSamples (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedTabularRegion (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedGraphicalElements (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedGraphicsControl (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedCutValues (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedScaleRotateCutValues (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedBias (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedStatistic (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedSlit (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedPVCM (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedReferenceLine (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedDataStream (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedHDU (const QString parameter_id, const QVariant parameter)
 
void DialogParameterChangedDistance (const QString parameter_id, const QVariant parameter)
 
void ChangeContrast (ddt::colorMap_t const &colourmap, ddt::colorMap_t const &colourmap_inverted, ddt::colorMapARGB_t const &colourmap_argb, ddt::colorMapARGB_t const &colourmap_argb_inverted)
 
void RestoreColourmap ()
 
void DialogParameterChanged (const QString dialog_id, const QString parameter_id, const QVariant parameter)
 
void AttachDataStream (const QString data_stream_id)
 
void DetachDataStream (const QString data_stream_id)
 
bool AttachDataFile (QString filename, const bool open_single=false)
 
void AttachImageExtensionsAsOne (QString filename)
 
void LastBrokerConnection (const QString data_stream_id)
 
void CheckInvalidImageHDUs () const
 
void SetImageScale (const QString image_scale)
 
void SetNoWaitNewData (const bool no_wait_flag)
 
QString LoadOverlayFile (const QString startup_overlay_file, const bool remote=false)
 
void FlipImage (bool vertical_axis, bool horizontal_axis)
 
void RotateImage (int rotation_angle)
 
void UpdatePosition (double scroll_fraction_x, double scroll_fraction_y)
 
void IncrementScale ()
 
void DecrementScale ()
 
void SetToDefaultScale ()
 
void SelectNewScale (QString next_scale)
 SelectScale this is called to switch the scale factor by a key.
 
void ScaleFactorForNewImage ()
 
QString FindAutoScale ()
 
void IncrementLayer (const int inc)
 
void DecrementLayer (const int dec)
 
void JumpToLayer (const int num)
 
void GraphicalElement (double x1, double y1, double x2, double y2, const QString draw_mode)
 
void GraphicalTextElement (double x1, double y1, double x2, double y2, const QString draw_mode, QString text)
 
void StatisticRectangle (const double x1, const double y1, const double x2, const double y2)
 
void SlitElement (const double target_x, const double target_y, const double slit_x, const double slit_y, const double x_offset, const double y_offset)
 
void CalculateHistogramReferenceLine (QPointF p1, QPointF p2)
 
void CalculateDistanceLine (QPointF p1, QPointF p2)
 
void SetMagnificationFactor (const QString magnification_factor)
 SetMagnificationFactor Slot that is called, when the magnification factor of the magnification widget has changed.
 
void CursorPosition (double x, double y, bool mouse_clicked)
 
void SetCutValues (const double low, const double high)
 
void SetAutoCuts ()
 
void SetMinMaxCuts ()
 
void DetachStream ()
 
void HandleNewDataEvent ()
 
void SetAutoScaleState (const bool new_auto_scale_state)
 SetAutoScaleState This will be called to set the state of the auto scale.
 

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 Image Widget that can be used to display Data Samples of various Topic IDs

Constructor & Destructor Documentation

◆ DdtImageWidget()

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

Constructor

Parameters
parentPointer to the parent widget

◆ ~DdtImageWidget()

DdtImageWidget::~DdtImageWidget ( )
virtual

Destructor

Member Function Documentation

◆ ActivateTimestampDisplay()

void DdtImageWidget::ActivateTimestampDisplay ( )

Activates the display of timestamps recieved from the data sample

◆ AddRenderingPlugins()

void DdtImageWidget::AddRenderingPlugins ( DdtRenderingPlugin *const new_plugin)

Method that allows to add further rendering plugins to the image widget

◆ AttachDataFile

bool DdtImageWidget::AttachDataFile ( QString filename,
const bool open_single = false )
slot

Slot which is called when an image shall be loaded and displayed in the image widget

Parameters
filenamePath to the image file
open_singleSpecifies if the open HDU button was clicked
Returns
true if file was attached successfully, false if not

◆ AttachDataStream

void DdtImageWidget::AttachDataStream ( const QString data_stream_id)
slot

Slot which is called when a data stream shall be attached to the image widget

Parameters
data_stream_idThe ID of the data stream (could be the URI)

◆ AttachImageExtensionsAsOne

void DdtImageWidget::AttachImageExtensionsAsOne ( QString filename)
slot

Slot which is called when all image extensions of an image shall be loaded and displayed in the image widget

Parameters
filenamePath to the image file

◆ AttachImageFromPointer() [1/7]

void DdtImageWidget::AttachImageFromPointer ( double * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type double.

◆ AttachImageFromPointer() [2/7]

void DdtImageWidget::AttachImageFromPointer ( float * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type float.

◆ AttachImageFromPointer() [3/7]

void DdtImageWidget::AttachImageFromPointer ( int16_t * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type int16_t.

◆ AttachImageFromPointer() [4/7]

void DdtImageWidget::AttachImageFromPointer ( int32_t * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type int32_t.

◆ AttachImageFromPointer() [5/7]

void DdtImageWidget::AttachImageFromPointer ( uint16_t * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type uint16_t.

◆ AttachImageFromPointer() [6/7]

void DdtImageWidget::AttachImageFromPointer ( uint32_t * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type uint32_t.

◆ AttachImageFromPointer() [7/7]

void DdtImageWidget::AttachImageFromPointer ( uint8_t * new_image_data,
int nx,
int ny )

Attaches Image obtained from an array pointer type uint8_t.

◆ CalculateDistanceLine

void DdtImageWidget::CalculateDistanceLine ( QPointF p1,
QPointF p2 )
slot

◆ CalculateHistogramReferenceLine

void DdtImageWidget::CalculateHistogramReferenceLine ( QPointF p1,
QPointF p2 )
slot

◆ CalculatePickStatistics()

void DdtImageWidget::CalculatePickStatistics ( PickMode pick_mode,
double x,
double y,
double pixel_value,
QString ra,
QString dec )
protected

Calculate statistics (fwhm etc.) for an object or the cursor position that was selected by the user

Parameters
pick_modeCurrent selection (either cursor pick or object pick)
xx cooridnate the user selected
yy coordinate the user selected
pixel_valuepixel_value at the location the user selected
raRight Ascension
decDeclination

◆ ChangeContrast

void DdtImageWidget::ChangeContrast ( ddt::colorMap_t const & colourmap,
ddt::colorMap_t const & colourmap_inverted,
ddt::colorMapARGB_t const & colourmap_argb,
ddt::colorMapARGB_t const & colourmap_argb_inverted )
slot

Slot which is called when the colourbar is changed by the user

◆ CheckInvalidImageHDUs

void DdtImageWidget::CheckInvalidImageHDUs ( ) const
slot

Checks if the image contains invalid image HDUs.

◆ ClearMagnifiedImage

void DdtImageWidget::ClearMagnifiedImage ( )
signal

◆ CloseAllDialogs()

void DdtImageWidget::CloseAllDialogs ( )

CloseAllDialogs This will close all dialogs.

◆ ContextMenuCommandSelected

void DdtImageWidget::ContextMenuCommandSelected ( QString menu_entry)
signal

Signal emitted when a command from the context menu was selected

Parameters
menu_entryThe selected menu entry

◆ ConvertCanvasToImage()

void DdtImageWidget::ConvertCanvasToImage ( const double x_canvas,
const double y_canvas,
double *const x_image,
double *const y_image ) const

Converts canvas coordinates to image coordinates

Parameters
x_canvasthe canvas x position
y_canvasthe canvas y position
x_imagethe resulting image x position
y_imagethe resulting image y position

◆ ConvertImageToCanvas()

void DdtImageWidget::ConvertImageToCanvas ( const double x_image,
const double y_image,
double *const x_canvas,
double *const y_canvas ) const

Converts image coordinates to canvas coordinates

Parameters
x_imagethe image x position
y_imagethe image y position
x_canvasthe resulting canvas x position
y_canvasthe resulting canvas y position

◆ CurrentConnectStatus

void DdtImageWidget::CurrentConnectStatus ( QString data_stream_id,
ConnectionStatus status )
signal

Signal send to the data stream widget on the current status of the connection

Parameters
data_stream_idID of the data stream
statusCurrent connection status

◆ CurrentCutValues

void DdtImageWidget::CurrentCutValues ( double cutvalue_min,
double cutvalue_max )
signal

Signal emitted when the cut levels are changed

Parameters
cutvalue_minNew minimum cut value
cutvalue_maxNew maximum cut value

◆ CurrentLayer

void DdtImageWidget::CurrentLayer ( const int current_layer,
const int total_layers )
signal

Signal emitting the current layer and the total number of layers of a 3D cube image

Parameters
current_layerthe current layer
total_layersthe total number of layers

◆ CursorInfo

void DdtImageWidget::CursorInfo ( double x,
double y,
double pixelvalue,
QString ra,
QString decl )
signal

Signal emitting the current pixel coordinates and pixelvalue at these coordinates

Parameters
xx coordinate of the pixel
yy coordinate of the pixel
pixelvaluepixelvalue at the given location
raRight Ascencion
declDeclination

◆ CursorPosition

void DdtImageWidget::CursorPosition ( double x,
double y,
bool mouse_clicked )
slot

Slot which is called when the graphics view reports a cursor position. In this slot, the cursor position is converted into an image position

Parameters
xx coordinate
yy coordinate
mouse_clickedflag, if mouse button was clicked

◆ CutLevelChanged()

void DdtImageWidget::CutLevelChanged ( )

Event handler for cut level change event

◆ DecrementLayer

void DdtImageWidget::DecrementLayer ( const int dec)
slot

Decrement the layer in a cube image

Parameters
decthe decrement value. A value of 0 will set the layer to the first one.

◆ DecrementScale

void DdtImageWidget::DecrementScale ( )
slot

Slot which is called when the decrement scale button was pressed in the Scale Buttons Widget

◆ DefaultDockWidgetsLayout

void DdtImageWidget::DefaultDockWidgetsLayout ( )
signal

Signal emitted when is need to reset the display layout of the dock widgets.

◆ DetachDataStream

void DdtImageWidget::DetachDataStream ( const QString data_stream_id)
slot

Slot which is called when a connected data stream should be disconnected

Parameters
data_stream_idThe ID of the stream to be disconnected

◆ DetachStream

void DdtImageWidget::DetachStream ( )
slot

Slot which is called when the main window closes

◆ DialogParameterChanged

void DdtImageWidget::DialogParameterChanged ( const QString dialog_id,
const QString parameter_id,
const QVariant parameter )
slot

Slot that reacts on parameter changes in any of the dialogs

Parameters
dialog_idID of the dialog
parameter_idID of the parameter that changed
parameterQVariant of the parameter that was changed

◆ DialogParameterChangedBias()

void DdtImageWidget::DialogParameterChangedBias ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the bias dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedColourmapDialog()

void DdtImageWidget::DialogParameterChangedColourmapDialog ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the colourmap dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedCutValues()

void DdtImageWidget::DialogParameterChangedCutValues ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the cut values dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedDataStream()

void DdtImageWidget::DialogParameterChangedDataStream ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the Data Stream dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedDistance()

void DdtImageWidget::DialogParameterChangedDistance ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the distance dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedGraphicalElements()

void DdtImageWidget::DialogParameterChangedGraphicalElements ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the graphical elements dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedGraphicsControl()

void DdtImageWidget::DialogParameterChangedGraphicsControl ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the graphics control dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedHDU()

void DdtImageWidget::DialogParameterChangedHDU ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the HDU dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedMagnification()

void DdtImageWidget::DialogParameterChangedMagnification ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the magnification dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedMonitorSamples()

void DdtImageWidget::DialogParameterChangedMonitorSamples ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the Monitor Samples dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedPickObject()

void DdtImageWidget::DialogParameterChangedPickObject ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the pick object dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedPVCM()

void DdtImageWidget::DialogParameterChangedPVCM ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the PVCM dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedReferenceLine()

void DdtImageWidget::DialogParameterChangedReferenceLine ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the Reference line dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedScaleRotateCutValues()

void DdtImageWidget::DialogParameterChangedScaleRotateCutValues ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the scale rotate cut values dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedSlit()

void DdtImageWidget::DialogParameterChangedSlit ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the slit dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedStatistic()

void DdtImageWidget::DialogParameterChangedStatistic ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the statistic dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ DialogParameterChangedTabularRegion()

void DdtImageWidget::DialogParameterChangedTabularRegion ( const QString parameter_id,
const QVariant parameter )
protected

Method called when dialog parameters have changed for the tabular region dialog

Parameters
parameter_idID of the parameter that has changed
parameterQVariant with the new value

◆ EndMarkPositions()

QString DdtImageWidget::EndMarkPositions ( )

End the "mark positions" mode. The coordinates of points clicked in the image widget will be returned.

◆ eventFilter()

bool DdtImageWidget::eventFilter ( QObject * obj,
QEvent * event )

Event filter that will be called especially when mouse events reach the widget

Parameters
objPointer to the object
eventPointer to the event that occurred

◆ FetchDialogName()

QString DdtImageWidget::FetchDialogName ( const QString dialog_id) const

Return the name of a dialog in human readable form

Parameters
dialog_idThe id of the dialog
Returns
Human readable name of the dialog

get the dialog name as string from the corresponding dialog id

◆ FindAutoScale

QString DdtImageWidget::FindAutoScale ( )
slot

Find the best matching scale (auto scale) to display the whole image in the widget

Returns
Best matching scale factor

◆ FlipImage

void DdtImageWidget::FlipImage ( bool vertical_axis,
bool horizontal_axis )
slot

Slot which is called when the image in the image widget shall be flipped (either horizontally or vertically)

Parameters
vertical_axistrue if the image shall be flipped along the vertical axis
horizontal_axistrue if the image shall be flipped along the horizontal axis

◆ get_auto_scale()

bool DdtImageWidget::get_auto_scale ( ) const

Get the state of the auto scale flag (Qt Designer property) return true if the image widget should auto scale new images

◆ get_default_bias_image()

QString DdtImageWidget::get_default_bias_image ( ) const

Returns the name of the default bias image

Returns
Name of the default bias image

◆ get_default_colourmap()

QString DdtImageWidget::get_default_colourmap ( ) const

Get the default colourmap

Returns
The selected default colourmap

◆ get_default_scale_factor()

QString DdtImageWidget::get_default_scale_factor ( ) const

Get the selected default scale factor (Qt Designer property)

Returns
The current default scale as a string, e.g. 1/2

◆ get_define_scale_factor()

QString DdtImageWidget::get_define_scale_factor ( ) const

get_define_scale_factor this returns the string with scale factors which is set from outside over the properties.

Returns
QString

◆ get_graphical_overlay()

DdtGraphicalOverlay * DdtImageWidget::get_graphical_overlay ( )

Gets a reference to the graphical overlay rendering which can be used to access graphical elements programatically

Returns
Pointer to the graphical overlay

◆ get_list_context_menu()

QString DdtImageWidget::get_list_context_menu ( ) const

Get the list of entries for the context menu

Returns
The list of context menu entries

◆ get_list_dialogs_menu()

QString DdtImageWidget::get_list_dialogs_menu ( ) const

Get the list of dialog entries for the context menu

Returns
The list of dialog context menu entries

◆ get_overlay_properties()

DdtGraphicalElementProperties DdtImageWidget::get_overlay_properties ( )

Get graphical element properties

Returns
The active graphical element properties

◆ get_show_scrollbars()

bool DdtImageWidget::get_show_scrollbars ( ) const

Returns the flag if scrollbars should be visible

Returns
Flag if scrollbars are visible

◆ get_use_antialiasing()

bool DdtImageWidget::get_use_antialiasing ( ) const

Get the state of the antialiasing (Qt Designer property)

Returns
true if antialiasing should be used

◆ get_use_open_gl()

bool DdtImageWidget::get_use_open_gl ( ) const

Get the state of the OpenGL selection (Qt Designer property)

Returns
true if OpenGL should be used

◆ GetOverlayRendering()

DdtOverlayRendering * DdtImageWidget::GetOverlayRendering ( )

Returns a pointer to the graphical overlay rendering.

◆ GetTabularRegion()

void DdtImageWidget::GetTabularRegion ( const double x_image,
const double y_image )
protected

Get the pixel values and statistical information for the Tabular Region Dialog

Parameters
x_imagex coordinate the user selected
y_imagey coordinate the user selected

◆ GraphicalElement

void DdtImageWidget::GraphicalElement ( double x1,
double y1,
double x2,
double y2,
const QString draw_mode )
slot

Slot which is called when the graphics view reports a graphical element.

Parameters
x1mouse x coordinate of first position
y1mouse y coordinate of first position
x2mouse x coordinate of second position
y2mouse y coordinate of second position
draw_modestring identifying the graphical element

◆ GraphicalElementsDialogClosed

void DdtImageWidget::GraphicalElementsDialogClosed ( )
signal

Signal which is sent to the graphics view if the graphical elements dialog is closed.

◆ GraphicalTextElement

void DdtImageWidget::GraphicalTextElement ( double x1,
double y1,
double x2,
double y2,
const QString draw_mode,
QString text )
slot

Slot which is called when the graphics view reports a graphical text element.

Parameters
x1mouse x coordinate of first position
y1mouse y coordinate of first position
x2mouse x coordinate of second position
y2mouse y coordinate of second position
draw_modestring identifying the graphical element
texttext of the element

◆ GraphicsControlCheckTaggedItems()

void DdtImageWidget::GraphicsControlCheckTaggedItems ( DdtGraphicalOverlay * overlay,
QString tag,
bool flag )
protected

Check enabling of overlay elements based on tags

Parameters
overlayOverlay object
tagList of tags
flagcurrent display flag

◆ HandleNewBoostDataEvent()

void DdtImageWidget::HandleNewBoostDataEvent ( )

Event handler for new data on data stream that forwards the Boost signal to the Qt signal

◆ HandleNewDataEvent

void DdtImageWidget::HandleNewDataEvent ( )
slot

Handle new data events

◆ ImageWidgetViewChanged

void DdtImageWidget::ImageWidgetViewChanged ( QRectF visible_image_rect,
int current_image_width,
int current_image_height )
signal

Signal which is sent when the current view in the image widget was changed, e.g. by scrolling

Parameters
visible_image_rectRectangle giving the currently visible area of the image
current_image_widthTotal width of the current image
current_image_heightTotal height of the current image

◆ IncrementLayer

void DdtImageWidget::IncrementLayer ( const int inc)
slot

Increment the layer in a cube image.

Parameters
incthe increment value. A value of 0 will set the layer to the last one.

◆ IncrementScale

void DdtImageWidget::IncrementScale ( )
slot

Slot which is called when the increment scale button was pressed in the Scale Buttons Widget

◆ InitializeDialogMap()

void DdtImageWidget::InitializeDialogMap ( const QMap< QString, DdtDialog * > insert_map)

Initialize the map of DDT dialogs

Parameters
insert_mapMap with dialogs mapped to dialog ids

◆ InvertColourmap

void DdtImageWidget::InvertColourmap ( bool inverted)
signal

Signal emitted when the colourmap was inverted by the colourmap dialog

Parameters
invertedtrue if colourmap was inverted, false otherwise

◆ JumpToLayer

void DdtImageWidget::JumpToLayer ( const int num)
slot

Jump to specific layer in a cube image

Parameters
numthe layer number to jump in to.

◆ LastBrokerConnection

void DdtImageWidget::LastBrokerConnection ( const QString data_stream_id)
slot

Slot which is called when datastream list has been retrieve from a broker connection

Parameters
data_stream_idThe ID of the data stream (could be the URI)

◆ LoadOverlayFile

QString DdtImageWidget::LoadOverlayFile ( const QString startup_overlay_file,
const bool remote = false )
slot

Slot which is called to set the overlay file

Parameters
startup_overlay_fileThe overlay file to load at startup
remotespecifies if function was called from a remote client
Returns
error message

◆ MagnifiedImage

void DdtImageWidget::MagnifiedImage ( QImage magnified_image)
signal

◆ MagnifyImage()

void DdtImageWidget::MagnifyImage ( int x,
int y,
const bool pick_mode = false )
protected

Create a magnified image around the given position

Parameters
xx-coordinate or -1 when last coordinate should be used
yy-coordinate or -1 when last coordinate should be used
pick_modeFlag indicating, if an object was found and needs to be magnified

◆ MagnifyImageWithFactor()

void DdtImageWidget::MagnifyImageWithFactor ( const QString mag_factor_str,
const int mag_fact_index,
const int x,
const int y )
protected

Function to magnify the image with a given magnification factor

Parameters
mag_factor_strMagnification factor as string
mag_fact_indexIndes of the magnification factor
xx coordinate
yy coordinate

◆ MarkPositions()

void DdtImageWidget::MarkPositions ( )

Start the "mark positions" mode. The coordinates of points clicked in the image widget will be stored in a list.

◆ NewBoostDataEvent

void DdtImageWidget::NewBoostDataEvent ( )
signal

Signal to be forwarded to Qt when receiving a boost signal

◆ ParseFractionString()

float DdtImageWidget::ParseFractionString ( QString fraction_str)

Function that calculates a float value from a string containing a fraction like e.g. 1/2

Parameters
fraction_strString containing a fraction as string
Returns
float value of the fraction

◆ ProcessRemoteCommand()

void DdtImageWidget::ProcessRemoteCommand ( const std::string & command_name,
const std::vector< std::string > & command_arguments )

Processes remote commands.

Parameters
command_nameName of the command.
command_argumentsArguments of the command.

◆ ReadScaleFactors()

void DdtImageWidget::ReadScaleFactors ( )

DdtImageWidget::readScaleFactors Reads out the string of scale values and put them converted to float values to the map.

◆ RedrawOverlay()

void DdtImageWidget::RedrawOverlay ( )

Triggers a redraw of the overlay

◆ RegisterLastSegmentCallback()

void DdtImageWidget::RegisterLastSegmentCallback ( std::function< void()> const & LastSegmentFunction)

Register a function to be called when an image is processed that has the "last segment" flag set

◆ ReloadGraphicsItem()

void DdtImageWidget::ReloadGraphicsItem ( )

Reload the graphics item into the scene

◆ RemoveAllItemsFromScene()

void DdtImageWidget::RemoveAllItemsFromScene ( )
protected

Remove all graphical items from Scene

◆ RemoveAllOverlayItemsFromScene()

void DdtImageWidget::RemoveAllOverlayItemsFromScene ( )
protected

Remove all graphical overlay items from Scene

◆ Reset

void DdtImageWidget::Reset ( )
signal

Signal emitted when the image in the image widget is cleared. Resets dialogs and widgets.

◆ resizeEvent()

void DdtImageWidget::resizeEvent ( QResizeEvent * event)
protected

Resize event which is triggered when the image widget is resized or scrolled

Parameters
eventPointer to the resize event that has taken place

◆ RestoreColourmap

void DdtImageWidget::RestoreColourmap ( )
slot

Slot which is called when the colourmap should be restored

◆ RotateImage

void DdtImageWidget::RotateImage ( int rotation_angle)
slot

Slot which is called when the image in the image widget shall be rotated

Parameters
rotation_angleAngle can be either 90 or -90 degrees

◆ ScaleFactorForNewImage

void DdtImageWidget::ScaleFactorForNewImage ( )
slot

Set scale factor (especially for auto-scale) for new image

◆ ScaleFactorListChanged

void DdtImageWidget::ScaleFactorListChanged ( QList< QString > scale_factor_list)
signal

ScaleFactorListChanged Signal to inform other about new scale values are set.

Parameters
scale_factor_listList of scale factors

◆ SelectNewScale

void DdtImageWidget::SelectNewScale ( QString next_scale)
slot

SelectScale this is called to switch the scale factor by a key.

Parameters
next_scale

◆ set_auto_scale()

void DdtImageWidget::set_auto_scale ( const bool scale)

Set the state of the auto scale flag

Parameters
scaletrue if autoscaling shall be used

◆ set_default_bias_image()

void DdtImageWidget::set_default_bias_image ( const QString set_bias_image)

Sets the default bias image name

Parameters
set_bias_imagePath to the new default bias image

◆ set_default_colourmap()

void DdtImageWidget::set_default_colourmap ( const QString new_default_colourmap)

Set the default colourmap

Parameters
new_default_colourmapThe colourmap to select as default

◆ set_default_scale_factor()

void DdtImageWidget::set_default_scale_factor ( const QString new_default_scale_factor)

Set the current default scale

Parameters
new_default_scale_factorDefault scale factor as a string

◆ set_define_scale_factor()

void DdtImageWidget::set_define_scale_factor ( const QString new_values)

set_define_scale_factor This is used to set the scale factors from outside over the properties.

Parameters
new_valuesNew scale factor values

◆ set_list_context_menu()

void DdtImageWidget::set_list_context_menu ( const QString new_list_context_menu)

Set the list of entries for the context menu

Parameters
new_list_context_menuThe list of context menu entries

◆ set_list_dialogs_menu()

void DdtImageWidget::set_list_dialogs_menu ( const QString new_list_dialogs_menu)

Set the list of dialog entries for the context menu

Parameters
ist_dialogs_menuThe list of dialog context menu entries

◆ set_logger()

void DdtImageWidget::set_logger ( ddt::DdtLogger *const in_logger)

Set logger

Parameters
in_loggerThe logger object

◆ set_show_scrollbars()

void DdtImageWidget::set_show_scrollbars ( const bool set_show_scrollbars)

Set the flag for the visibitly of scrollbars

Parameters
set_show_scrollbarsScrollbar flag

◆ set_use_antialiasing()

void DdtImageWidget::set_use_antialiasing ( const bool antialiasing)

Set the state of the antialiasing selection

Parameters
antialiasingtrue if antialiasing should be used

◆ set_use_open_gl()

void DdtImageWidget::set_use_open_gl ( const bool open_gl)

Set the state of the OpenGL selection

Parameters
open_gltrue if OpenGL should be activated

◆ SetActiveRenderingPlugin()

void DdtImageWidget::SetActiveRenderingPlugin ( const int rendering_plugin_id)

Method to select the active rendering plugin

Parameters
rendering_plugin_idCurrent rendering plugin ID

◆ SetAutoCuts

void DdtImageWidget::SetAutoCuts ( )
slot

Slot which is called when the user switched to auto cut levels

◆ SetAutoScaleState

void DdtImageWidget::SetAutoScaleState ( const bool new_auto_scale_state)
slot

SetAutoScaleState This will be called to set the state of the auto scale.

◆ SetChangedDialogParameter

void DdtImageWidget::SetChangedDialogParameter ( QString param_id,
QVariant parameter )
signal

Signal which is sent to a dialog, if any of this elements needs to be updated

Parameters
param_idID of the parameter that is updated
parameterQVariant of the paramter

◆ SetCurrentColourmap

void DdtImageWidget::SetCurrentColourmap ( QVector< QRgb > colourtable)
signal

Signal emitted when a new colourmap is loaded

Parameters
colourtableA vector with the new colourmap values

◆ SetCutValues

void DdtImageWidget::SetCutValues ( const double low,
const double high )
slot

Slot which is called when the cut values are changed by the user

Parameters
lowNew lower cut value
highNew higher cut value

◆ SetImageScale

void DdtImageWidget::SetImageScale ( const QString image_scale)
slot

Slot which is called to set the default image scale on startup

Parameters
image_scaleImage scale to be used on startup

◆ SetInitialDialogParameters()

void DdtImageWidget::SetInitialDialogParameters ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set initial parameters for dialogs

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersBiasDialog()

void DdtImageWidget::SetInitialDialogParametersBiasDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the bias dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersBinaryTableDialog()

void DdtImageWidget::SetInitialDialogParametersBinaryTableDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the binary table dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersColourmapDialog()

void DdtImageWidget::SetInitialDialogParametersColourmapDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the colourmap dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersCutValuesDialog()

void DdtImageWidget::SetInitialDialogParametersCutValuesDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the cut values dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersDataStreamDialog()

void DdtImageWidget::SetInitialDialogParametersDataStreamDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the data stream dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersDistanceDialog()

void DdtImageWidget::SetInitialDialogParametersDistanceDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the distance dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersFITSHeaderDialog()

void DdtImageWidget::SetInitialDialogParametersFITSHeaderDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the FITS Header dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersGraphicalDialog()

void DdtImageWidget::SetInitialDialogParametersGraphicalDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the graphical elements dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersGraphicsControl()

void DdtImageWidget::SetInitialDialogParametersGraphicsControl ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the graphics control dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersHDUDialog()

void DdtImageWidget::SetInitialDialogParametersHDUDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the HDU dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersMagnificationDialog()

void DdtImageWidget::SetInitialDialogParametersMagnificationDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the magnification dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersMetadataSampleDialog()

void DdtImageWidget::SetInitialDialogParametersMetadataSampleDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the Metadata Sample Dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersMonitorSamplesDialog()

void DdtImageWidget::SetInitialDialogParametersMonitorSamplesDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the Monitor Samples dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersPickObjectDialog()

void DdtImageWidget::SetInitialDialogParametersPickObjectDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the pick object dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersPVCMDialog()

void DdtImageWidget::SetInitialDialogParametersPVCMDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the pvcm dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersReferenceLineDialog()

void DdtImageWidget::SetInitialDialogParametersReferenceLineDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the reference line dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersScaleRotateCutValuesDialog()

void DdtImageWidget::SetInitialDialogParametersScaleRotateCutValuesDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the cut values dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersStatisticDialog()

void DdtImageWidget::SetInitialDialogParametersStatisticDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the statistic dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetInitialDialogParametersTabularRegionDialog()

void DdtImageWidget::SetInitialDialogParametersTabularRegionDialog ( DdtDialog * dialog,
const QString dialog_id )
protected

Method to set parameters in the tabular region dialog

Parameters
dialogDialog object
dialog_idThe dialog id

◆ SetMagnificationFactor

void DdtImageWidget::SetMagnificationFactor ( const QString magnification_factor)
slot

SetMagnificationFactor Slot that is called, when the magnification factor of the magnification widget has changed.

Parameters
magnification_factorThe new magnification factor

◆ SetMinMaxCuts

void DdtImageWidget::SetMinMaxCuts ( )
slot

Slot which is called when the user switched to min max cut lavels

◆ SetNoWaitNewData

void DdtImageWidget::SetNoWaitNewData ( const bool no_wait_flag)
slot

Slot which is called to set the no_wait_new_data flag

Parameters
no_wait_flagThe no_wait_new_data flag to be used

◆ SetOverlayImageFile()

void DdtImageWidget::SetOverlayImageFile ( const QString overlay_file)

Set the name of an (transparent) overlay image file (png format)

◆ SetToDefaultScale

void DdtImageWidget::SetToDefaultScale ( )
slot

Slot which is called when the default scale button was pressed in the Scale Buttons Widget

◆ SlitElement

void DdtImageWidget::SlitElement ( const double target_x,
const double target_y,
const double slit_x,
const double slit_y,
const double x_offset,
const double y_offset )
slot

Slot which is called when the graphics view reports the slit values.

Parameters
target_xmouse x coordinate of starting point
target_ymouse y coordinate of starting point
slit_xx coordinate of slit center
slit_yy coordinate of slit center
x_offsetx offset between target and slit
y_offsety offset between target and slit

◆ SortedScaleFactors()

QList< QString > DdtImageWidget::SortedScaleFactors ( QMap< QString, float > scale_map)

DdtImageWidget::sortedScaleFactors Sorts the list of scale factors based on the float values.

Parameters
scale_mapmap of scale factors

◆ StatisticRectangle

void DdtImageWidget::StatisticRectangle ( const double x1,
const double y1,
const double x2,
const double y2 )
slot

Slot which is called when the graphics view reports the statistic rectangle.

Parameters
x1mouse x coordinate of first corner of rectangle
y1mouse y coordinate of first corner of rectangle
x2mouse x coordinate of second corner of rectangle
y2mouse y coordinate of second corner of rectangle

◆ Swap

void DdtImageWidget::Swap ( )
signal

Signal to update the flip buttons in the ddtFlipRotateWidget

◆ UpdateAllStatistics()

void DdtImageWidget::UpdateAllStatistics ( )

Update all active statistics

◆ UpdateAutoScale

void DdtImageWidget::UpdateAutoScale ( bool new_state)
signal

UpdateAutoScale this signal inform others about that the auto scale state changed.

Parameters
new_stateThe new auto scale state

◆ UpdateColourbarAxis

void DdtImageWidget::UpdateColourbarAxis ( double min_value,
double max_value,
int scaling_function )
signal

Signal emitted when the scaling function is changed or the minimum, maximum values are modified

Parameters
min_valueMinimum value
max_valueMaximum value
scaling_functionCurrent scaling function

◆ UpdatedImage

void DdtImageWidget::UpdatedImage ( const QImage & image,
const QTransform & transform,
const double rotation )
signal

Signal which is sent when preview images need to be updated (e.g. in the pan widget)

Parameters
imageThe preview image to be displayed
transformTransformation to be used
rotationThe rotation angle for the compass display

◆ UpdateFlipStatus

void DdtImageWidget::UpdateFlipStatus ( bool vertical,
bool horizontal )
signal

Signal emitting the current flip status

Parameters
verticalvertical flip
horizontalhorizontal flip

◆ UpdatePosition

void DdtImageWidget::UpdatePosition ( double scroll_fraction_x,
double scroll_fraction_y )
slot

Slot which is called when the image position was updated by the pan widget

Parameters
scroll_fraction_xFraction of the width to which the image needs to be scrolled
scroll_fraction_yFraction of the height to which the image needs to be scrolled

◆ UpdateScaleFactor

void DdtImageWidget::UpdateScaleFactor ( QString new_scale_factor)
signal

UpdateScaleFactor this signal inform others about a new scale factor.

Parameters
new_scale_factorThe new scale factor

◆ UpdateThumbnailImages()

void DdtImageWidget::UpdateThumbnailImages ( )

Function that will update all thumbnails (e.g. Pan Widget, Magnification etc.)

Member Data Documentation

◆ auto_scale

bool DdtImageWidget::auto_scale
protected

auto_scale Flag for the usage of automatic scaling of new images

◆ colourmap_directory

QString DdtImageWidget::colourmap_directory
protected

colourmap_directory The colourmap directory used

◆ configurationmap_directory

QString DdtImageWidget::configurationmap_directory
protected

configurationmap_directory The configurationmap directory used

◆ current_dialog_magnification_factor

QString DdtImageWidget::current_dialog_magnification_factor
protected

The current magnification factor for the magnification dialog

◆ current_magnification_factor

QString DdtImageWidget::current_magnification_factor
protected

The current magnification factor

◆ current_pick_object_magnification_factor

QString DdtImageWidget::current_pick_object_magnification_factor
protected

The current pick object magnification factor

◆ current_rotation_value

int DdtImageWidget::current_rotation_value
protected

current_rotation_value The current used rotation on present image

◆ current_scale_factor

QString DdtImageWidget::current_scale_factor
protected

current_scale_factor The current used scale factor

◆ default_bias_image

QString DdtImageWidget::default_bias_image
protected

Path to the default bias image

◆ default_colourmap

QString DdtImageWidget::default_colourmap
protected

default_colourmap The default colourmap

◆ default_scale_factor

QString DdtImageWidget::default_scale_factor
protected

default_scale_factor Value of the default scale factor

◆ define_scale_factor

QString DdtImageWidget::define_scale_factor
protected

define_scale_factor This string is configured from outside over the designer. The scale factors are separated by a semicolon.

◆ last_magnify_x

int DdtImageWidget::last_magnify_x
protected

Last position of the mouse pointer for magnification in x direction

◆ last_magnify_y

int DdtImageWidget::last_magnify_y
protected

Last position of the mouse pointer for magnification in y direction

◆ list_context_menu

QString DdtImageWidget::list_context_menu
protected

list_context_menu List of context menu items

◆ list_dialogs_menu

QString DdtImageWidget::list_dialogs_menu
protected

list_dialogs_menu List of context menu dialog items

◆ logger

ddt::DdtLogger* DdtImageWidget::logger
protected

Logger object

◆ no_wait_new_data

bool DdtImageWidget::no_wait_new_data
protected

no_wait_new_data flag Flag indicating that the content of the data stream is displayed without waiting for new incoming data

◆ overlay_properties

DdtGraphicalElementProperties DdtImageWidget::overlay_properties
protected

Current overlay properties

◆ overlay_rendering

DdtOverlayRendering* DdtImageWidget::overlay_rendering
protected

Overlay rendering engine

◆ response_signal

signal_response DdtImageWidget::response_signal

Boost signal to send the remote command which was received via MALrr.

◆ rotation_transform

QTransform DdtImageWidget::rotation_transform
protected

Rotation transformation that can be applied to the image

◆ scale_factor_favorites

QMap<QString, float> DdtImageWidget::scale_factor_favorites
protected

scale_factor_favorites All favorites scale factor are here stored with the string and float value.

◆ scale_factor_pool

QMap<QString, float> DdtImageWidget::scale_factor_pool
protected

scale_factor_pool Each possible scale factor is here stored with the string and float value.

◆ scaling_transform

QTransform DdtImageWidget::scaling_transform
protected

Scaling transformation that can be applied to the image

◆ selected_scale_factor

QString DdtImageWidget::selected_scale_factor
protected

selected_scale_factor Last selected scale factor

◆ show_scrollbars

bool DdtImageWidget::show_scrollbars
protected

Flag if scrollbars should be visible

◆ use_antialiasing

bool DdtImageWidget::use_antialiasing
protected

use_antialiasing Flag for the usage of antialiasing

◆ use_open_gl

bool DdtImageWidget::use_open_gl
protected

use_open_gl Flag for the usage of OpenGl

Property Documentation

◆ AutoScale

bool DdtImageWidget::AutoScale
readwrite

◆ DefaultColourmap

QString DdtImageWidget::DefaultColourmap
read

◆ DefaultScale

QString DdtImageWidget::DefaultScale
read

◆ DefautBiasImage

QString DdtImageWidget::DefautBiasImage
read

◆ ListContextMenu

QString DdtImageWidget::ListContextMenu
read

◆ ListDialogsMenu

QString DdtImageWidget::ListDialogsMenu
read

◆ ScaleFactorList

QString DdtImageWidget::ScaleFactorList
read

◆ ShowScrollbars

bool DdtImageWidget::ShowScrollbars
readwrite

◆ UseAntialiasing

bool DdtImageWidget::UseAntialiasing
readwrite

◆ UseOpenGL

bool DdtImageWidget::UseOpenGL
readwrite

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