|
ddt 1.2.1
|
#include <ddtImageWidget.hpp>
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::DdtLogger * | logger |
| DdtOverlayRendering * | overlay_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 () |
| DdtOverlayRendering * | GetOverlayRendering () |
| 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 () |
| DdtGraphicalOverlay * | get_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. | |
Class for the Image Widget that can be used to display Data Samples of various Topic IDs
|
explicit |
Constructor
| parent | Pointer to the parent widget |
|
virtual |
Destructor
| void DdtImageWidget::ActivateTimestampDisplay | ( | ) |
Activates the display of timestamps recieved from the data sample
| void DdtImageWidget::AddRenderingPlugins | ( | DdtRenderingPlugin *const | new_plugin | ) |
Method that allows to add further rendering plugins to the image widget
|
slot |
Slot which is called when an image shall be loaded and displayed in the image widget
| filename | Path to the image file |
| open_single | Specifies if the open HDU button was clicked |
|
slot |
Slot which is called when a data stream shall be attached to the image widget
| data_stream_id | The ID of the data stream (could be the URI) |
|
slot |
Slot which is called when all image extensions of an image shall be loaded and displayed in the image widget
| filename | Path to the image file |
| void DdtImageWidget::AttachImageFromPointer | ( | double * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type double.
| void DdtImageWidget::AttachImageFromPointer | ( | float * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type float.
| void DdtImageWidget::AttachImageFromPointer | ( | int16_t * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type int16_t.
| void DdtImageWidget::AttachImageFromPointer | ( | int32_t * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type int32_t.
| void DdtImageWidget::AttachImageFromPointer | ( | uint16_t * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type uint16_t.
| void DdtImageWidget::AttachImageFromPointer | ( | uint32_t * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type uint32_t.
| void DdtImageWidget::AttachImageFromPointer | ( | uint8_t * | new_image_data, |
| int | nx, | ||
| int | ny ) |
Attaches Image obtained from an array pointer type uint8_t.
|
slot |
|
slot |
|
protected |
Calculate statistics (fwhm etc.) for an object or the cursor position that was selected by the user
| pick_mode | Current selection (either cursor pick or object pick) |
| x | x cooridnate the user selected |
| y | y coordinate the user selected |
| pixel_value | pixel_value at the location the user selected |
| ra | Right Ascension |
| dec | Declination |
|
slot |
Slot which is called when the colourbar is changed by the user
|
slot |
Checks if the image contains invalid image HDUs.
|
signal |
| void DdtImageWidget::CloseAllDialogs | ( | ) |
CloseAllDialogs This will close all dialogs.
|
signal |
Signal emitted when a command from the context menu was selected
| menu_entry | The selected menu entry |
| 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
| x_canvas | the canvas x position |
| y_canvas | the canvas y position |
| x_image | the resulting image x position |
| y_image | the resulting image y position |
| 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
| x_image | the image x position |
| y_image | the image y position |
| x_canvas | the resulting canvas x position |
| y_canvas | the resulting canvas y position |
|
signal |
Signal send to the data stream widget on the current status of the connection
| data_stream_id | ID of the data stream |
| status | Current connection status |
|
signal |
Signal emitted when the cut levels are changed
| cutvalue_min | New minimum cut value |
| cutvalue_max | New maximum cut value |
|
signal |
Signal emitting the current layer and the total number of layers of a 3D cube image
| current_layer | the current layer |
| total_layers | the total number of layers |
|
signal |
Signal emitting the current pixel coordinates and pixelvalue at these coordinates
| x | x coordinate of the pixel |
| y | y coordinate of the pixel |
| pixelvalue | pixelvalue at the given location |
| ra | Right Ascencion |
| decl | Declination |
|
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
| x | x coordinate |
| y | y coordinate |
| mouse_clicked | flag, if mouse button was clicked |
| void DdtImageWidget::CutLevelChanged | ( | ) |
Event handler for cut level change event
|
slot |
Decrement the layer in a cube image
| dec | the decrement value. A value of 0 will set the layer to the first one. |
|
slot |
Slot which is called when the decrement scale button was pressed in the Scale Buttons Widget
|
signal |
Signal emitted when is need to reset the display layout of the dock widgets.
|
slot |
Slot which is called when a connected data stream should be disconnected
| data_stream_id | The ID of the stream to be disconnected |
|
slot |
Slot which is called when the main window closes
|
slot |
Slot that reacts on parameter changes in any of the dialogs
| dialog_id | ID of the dialog |
| parameter_id | ID of the parameter that changed |
| parameter | QVariant of the parameter that was changed |
|
protected |
Method called when dialog parameters have changed for the bias dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the colourmap dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the cut values dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the Data Stream dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the distance dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the graphical elements dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the graphics control dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the HDU dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the magnification dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the Monitor Samples dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the pick object dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the PVCM dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the Reference line dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the scale rotate cut values dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the slit dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the statistic dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
|
protected |
Method called when dialog parameters have changed for the tabular region dialog
| parameter_id | ID of the parameter that has changed |
| parameter | QVariant with the new value |
| QString DdtImageWidget::EndMarkPositions | ( | ) |
End the "mark positions" mode. The coordinates of points clicked in the image widget will be returned.
| bool DdtImageWidget::eventFilter | ( | QObject * | obj, |
| QEvent * | event ) |
Event filter that will be called especially when mouse events reach the widget
| obj | Pointer to the object |
| event | Pointer to the event that occurred |
| QString DdtImageWidget::FetchDialogName | ( | const QString | dialog_id | ) | const |
Return the name of a dialog in human readable form
| dialog_id | The id of the dialog |
get the dialog name as string from the corresponding dialog id
|
slot |
Find the best matching scale (auto scale) to display the whole image in the widget
|
slot |
Slot which is called when the image in the image widget shall be flipped (either horizontally or vertically)
| vertical_axis | true if the image shall be flipped along the vertical axis |
| horizontal_axis | true if the image shall be flipped along the horizontal axis |
| 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
| QString DdtImageWidget::get_default_bias_image | ( | ) | const |
Returns the name of the default bias image
| QString DdtImageWidget::get_default_colourmap | ( | ) | const |
Get the default colourmap
| QString DdtImageWidget::get_default_scale_factor | ( | ) | const |
Get the selected default scale factor (Qt Designer property)
| 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.
| DdtGraphicalOverlay * DdtImageWidget::get_graphical_overlay | ( | ) |
Gets a reference to the graphical overlay rendering which can be used to access graphical elements programatically
| QString DdtImageWidget::get_list_context_menu | ( | ) | const |
Get the list of entries for the context menu
| QString DdtImageWidget::get_list_dialogs_menu | ( | ) | const |
Get the list of dialog entries for the context menu
| DdtGraphicalElementProperties DdtImageWidget::get_overlay_properties | ( | ) |
Get graphical element properties
| bool DdtImageWidget::get_show_scrollbars | ( | ) | const |
Returns the flag if scrollbars should be visible
| bool DdtImageWidget::get_use_antialiasing | ( | ) | const |
Get the state of the antialiasing (Qt Designer property)
| bool DdtImageWidget::get_use_open_gl | ( | ) | const |
Get the state of the OpenGL selection (Qt Designer property)
| DdtOverlayRendering * DdtImageWidget::GetOverlayRendering | ( | ) |
Returns a pointer to the graphical overlay rendering.
|
protected |
Get the pixel values and statistical information for the Tabular Region Dialog
| x_image | x coordinate the user selected |
| y_image | y coordinate the user selected |
|
slot |
Slot which is called when the graphics view reports a graphical element.
| x1 | mouse x coordinate of first position |
| y1 | mouse y coordinate of first position |
| x2 | mouse x coordinate of second position |
| y2 | mouse y coordinate of second position |
| draw_mode | string identifying the graphical element |
|
signal |
Signal which is sent to the graphics view if the graphical elements dialog is closed.
|
slot |
Slot which is called when the graphics view reports a graphical text element.
| x1 | mouse x coordinate of first position |
| y1 | mouse y coordinate of first position |
| x2 | mouse x coordinate of second position |
| y2 | mouse y coordinate of second position |
| draw_mode | string identifying the graphical element |
| text | text of the element |
|
protected |
Check enabling of overlay elements based on tags
| overlay | Overlay object |
| tag | List of tags |
| flag | current display flag |
| void DdtImageWidget::HandleNewBoostDataEvent | ( | ) |
Event handler for new data on data stream that forwards the Boost signal to the Qt signal
|
slot |
Handle new data events
|
signal |
Signal which is sent when the current view in the image widget was changed, e.g. by scrolling
| visible_image_rect | Rectangle giving the currently visible area of the image |
| current_image_width | Total width of the current image |
| current_image_height | Total height of the current image |
|
slot |
Increment the layer in a cube image.
| inc | the increment value. A value of 0 will set the layer to the last one. |
|
slot |
Slot which is called when the increment scale button was pressed in the Scale Buttons Widget
| void DdtImageWidget::InitializeDialogMap | ( | const QMap< QString, DdtDialog * > | insert_map | ) |
Initialize the map of DDT dialogs
| insert_map | Map with dialogs mapped to dialog ids |
|
signal |
Signal emitted when the colourmap was inverted by the colourmap dialog
| inverted | true if colourmap was inverted, false otherwise |
|
slot |
Jump to specific layer in a cube image
| num | the layer number to jump in to. |
|
slot |
Slot which is called when datastream list has been retrieve from a broker connection
| data_stream_id | The ID of the data stream (could be the URI) |
|
slot |
Slot which is called to set the overlay file
| startup_overlay_file | The overlay file to load at startup |
| remote | specifies if function was called from a remote client |
|
signal |
|
protected |
Create a magnified image around the given position
| x | x-coordinate or -1 when last coordinate should be used |
| y | y-coordinate or -1 when last coordinate should be used |
| pick_mode | Flag indicating, if an object was found and needs to be magnified |
|
protected |
Function to magnify the image with a given magnification factor
| mag_factor_str | Magnification factor as string |
| mag_fact_index | Indes of the magnification factor |
| x | x coordinate |
| y | y coordinate |
| void DdtImageWidget::MarkPositions | ( | ) |
Start the "mark positions" mode. The coordinates of points clicked in the image widget will be stored in a list.
|
signal |
Signal to be forwarded to Qt when receiving a boost signal
| float DdtImageWidget::ParseFractionString | ( | QString | fraction_str | ) |
Function that calculates a float value from a string containing a fraction like e.g. 1/2
| fraction_str | String containing a fraction as string |
| void DdtImageWidget::ProcessRemoteCommand | ( | const std::string & | command_name, |
| const std::vector< std::string > & | command_arguments ) |
Processes remote commands.
| command_name | Name of the command. |
| command_arguments | Arguments of the command. |
| void DdtImageWidget::ReadScaleFactors | ( | ) |
DdtImageWidget::readScaleFactors Reads out the string of scale values and put them converted to float values to the map.
| void DdtImageWidget::RedrawOverlay | ( | ) |
Triggers a redraw of the overlay
| 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
| void DdtImageWidget::ReloadGraphicsItem | ( | ) |
Reload the graphics item into the scene
|
protected |
Remove all graphical items from Scene
|
protected |
Remove all graphical overlay items from Scene
|
signal |
Signal emitted when the image in the image widget is cleared. Resets dialogs and widgets.
|
protected |
Resize event which is triggered when the image widget is resized or scrolled
| event | Pointer to the resize event that has taken place |
|
slot |
Slot which is called when the colourmap should be restored
|
slot |
Slot which is called when the image in the image widget shall be rotated
| rotation_angle | Angle can be either 90 or -90 degrees |
|
slot |
Set scale factor (especially for auto-scale) for new image
|
signal |
ScaleFactorListChanged Signal to inform other about new scale values are set.
| scale_factor_list | List of scale factors |
|
slot |
SelectScale this is called to switch the scale factor by a key.
| next_scale |
| void DdtImageWidget::set_auto_scale | ( | const bool | scale | ) |
Set the state of the auto scale flag
| scale | true if autoscaling shall be used |
| void DdtImageWidget::set_default_bias_image | ( | const QString | set_bias_image | ) |
Sets the default bias image name
| set_bias_image | Path to the new default bias image |
| void DdtImageWidget::set_default_colourmap | ( | const QString | new_default_colourmap | ) |
Set the default colourmap
| new_default_colourmap | The colourmap to select as default |
| void DdtImageWidget::set_default_scale_factor | ( | const QString | new_default_scale_factor | ) |
Set the current default scale
| new_default_scale_factor | Default scale factor as a string |
| 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.
| new_values | New scale factor values |
| void DdtImageWidget::set_list_context_menu | ( | const QString | new_list_context_menu | ) |
Set the list of entries for the context menu
| new_list_context_menu | The list of context menu entries |
| void DdtImageWidget::set_list_dialogs_menu | ( | const QString | new_list_dialogs_menu | ) |
Set the list of dialog entries for the context menu
| ist_dialogs_menu | The list of dialog context menu entries |
| void DdtImageWidget::set_logger | ( | ddt::DdtLogger *const | in_logger | ) |
Set logger
| in_logger | The logger object |
| void DdtImageWidget::set_show_scrollbars | ( | const bool | set_show_scrollbars | ) |
Set the flag for the visibitly of scrollbars
| set_show_scrollbars | Scrollbar flag |
| void DdtImageWidget::set_use_antialiasing | ( | const bool | antialiasing | ) |
Set the state of the antialiasing selection
| antialiasing | true if antialiasing should be used |
| void DdtImageWidget::set_use_open_gl | ( | const bool | open_gl | ) |
Set the state of the OpenGL selection
| open_gl | true if OpenGL should be activated |
| void DdtImageWidget::SetActiveRenderingPlugin | ( | const int | rendering_plugin_id | ) |
Method to select the active rendering plugin
| rendering_plugin_id | Current rendering plugin ID |
|
slot |
Slot which is called when the user switched to auto cut levels
|
slot |
SetAutoScaleState This will be called to set the state of the auto scale.
|
signal |
Signal which is sent to a dialog, if any of this elements needs to be updated
| param_id | ID of the parameter that is updated |
| parameter | QVariant of the paramter |
|
signal |
Signal emitted when a new colourmap is loaded
| colourtable | A vector with the new colourmap values |
|
slot |
Slot which is called when the cut values are changed by the user
| low | New lower cut value |
| high | New higher cut value |
|
slot |
Slot which is called to set the default image scale on startup
| image_scale | Image scale to be used on startup |
|
protected |
Method to set initial parameters for dialogs
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the bias dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the binary table dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the colourmap dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the cut values dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the data stream dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the distance dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the FITS Header dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the graphical elements dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the graphics control dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the HDU dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the magnification dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the Metadata Sample Dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the Monitor Samples dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the pick object dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the pvcm dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the reference line dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the cut values dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the statistic dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
protected |
Method to set parameters in the tabular region dialog
| dialog | Dialog object |
| dialog_id | The dialog id |
|
slot |
SetMagnificationFactor Slot that is called, when the magnification factor of the magnification widget has changed.
| magnification_factor | The new magnification factor |
|
slot |
Slot which is called when the user switched to min max cut lavels
|
slot |
Slot which is called to set the no_wait_new_data flag
| no_wait_flag | The no_wait_new_data flag to be used |
| void DdtImageWidget::SetOverlayImageFile | ( | const QString | overlay_file | ) |
Set the name of an (transparent) overlay image file (png format)
|
slot |
Slot which is called when the default scale button was pressed in the Scale Buttons Widget
|
slot |
Slot which is called when the graphics view reports the slit values.
| target_x | mouse x coordinate of starting point |
| target_y | mouse y coordinate of starting point |
| slit_x | x coordinate of slit center |
| slit_y | y coordinate of slit center |
| x_offset | x offset between target and slit |
| y_offset | y offset between target and slit |
| QList< QString > DdtImageWidget::SortedScaleFactors | ( | QMap< QString, float > | scale_map | ) |
DdtImageWidget::sortedScaleFactors Sorts the list of scale factors based on the float values.
| scale_map | map of scale factors |
|
slot |
Slot which is called when the graphics view reports the statistic rectangle.
| x1 | mouse x coordinate of first corner of rectangle |
| y1 | mouse y coordinate of first corner of rectangle |
| x2 | mouse x coordinate of second corner of rectangle |
| y2 | mouse y coordinate of second corner of rectangle |
|
signal |
Signal to update the flip buttons in the ddtFlipRotateWidget
| void DdtImageWidget::UpdateAllStatistics | ( | ) |
Update all active statistics
|
signal |
UpdateAutoScale this signal inform others about that the auto scale state changed.
| new_state | The new auto scale state |
|
signal |
Signal emitted when the scaling function is changed or the minimum, maximum values are modified
| min_value | Minimum value |
| max_value | Maximum value |
| scaling_function | Current scaling function |
|
signal |
Signal which is sent when preview images need to be updated (e.g. in the pan widget)
| image | The preview image to be displayed |
| transform | Transformation to be used |
| rotation | The rotation angle for the compass display |
|
signal |
Signal emitting the current flip status
| vertical | vertical flip |
| horizontal | horizontal flip |
|
slot |
Slot which is called when the image position was updated by the pan widget
| scroll_fraction_x | Fraction of the width to which the image needs to be scrolled |
| scroll_fraction_y | Fraction of the height to which the image needs to be scrolled |
|
signal |
UpdateScaleFactor this signal inform others about a new scale factor.
| new_scale_factor | The new scale factor |
| void DdtImageWidget::UpdateThumbnailImages | ( | ) |
Function that will update all thumbnails (e.g. Pan Widget, Magnification etc.)
|
protected |
auto_scale Flag for the usage of automatic scaling of new images
|
protected |
colourmap_directory The colourmap directory used
|
protected |
configurationmap_directory The configurationmap directory used
|
protected |
The current magnification factor for the magnification dialog
|
protected |
The current magnification factor
|
protected |
The current pick object magnification factor
|
protected |
current_rotation_value The current used rotation on present image
|
protected |
current_scale_factor The current used scale factor
|
protected |
Path to the default bias image
|
protected |
default_colourmap The default colourmap
|
protected |
default_scale_factor Value of the default scale factor
|
protected |
define_scale_factor This string is configured from outside over the designer. The scale factors are separated by a semicolon.
|
protected |
Last position of the mouse pointer for magnification in x direction
|
protected |
Last position of the mouse pointer for magnification in y direction
|
protected |
list_context_menu List of context menu items
|
protected |
list_dialogs_menu List of context menu dialog items
|
protected |
Logger object
|
protected |
no_wait_new_data flag Flag indicating that the content of the data stream is displayed without waiting for new incoming data
|
protected |
Current overlay properties
|
protected |
Overlay rendering engine
| signal_response DdtImageWidget::response_signal |
Boost signal to send the remote command which was received via MALrr.
|
protected |
Rotation transformation that can be applied to the image
|
protected |
scale_factor_favorites All favorites scale factor are here stored with the string and float value.
|
protected |
scale_factor_pool Each possible scale factor is here stored with the string and float value.
|
protected |
Scaling transformation that can be applied to the image
|
protected |
selected_scale_factor Last selected scale factor
|
protected |
Flag if scrollbars should be visible
|
protected |
use_antialiasing Flag for the usage of antialiasing
|
protected |
use_open_gl Flag for the usage of OpenGl
|
readwrite |
|
read |
|
read |
|
read |
|
read |
|
read |
|
read |
|
readwrite |
|
readwrite |
|
readwrite |