|
Mantid
|
A table widget containing information about the pixel the mouse is over in an image. More...
#include <ImageInfoWidget.h>
Public Member Functions | |
| void | cursorAt (const double x, const double y, const double signal, const QMap< QString, QString > &extraValues) override |
| ImageInfoWidget (QWidget *parent=nullptr) | |
| Constructor. More... | |
| void | setWorkspace (const Mantid::API::Workspace_sptr &ws) override |
| Set the workspace to probe for information. More... | |
| void | showInfo (const ImageInfoModel::ImageInfo &info) override |
| Display the information provided within the table cells. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::IImageInfoWidget | |
| virtual void | cursorAt (const double x, const double y, const double signal, const QMap< QString, QString > &extraValues)=0 |
| IImageInfoWidget (QWidget *parent=nullptr) | |
| virtual void | setWorkspace (const Mantid::API::Workspace_sptr &ws)=0 |
| virtual void | showInfo (const ImageInfoModel::ImageInfo &info)=0 |
Private Attributes | |
| std::unique_ptr< ImageInfoPresenter > | m_presenter |
A table widget containing information about the pixel the mouse is over in an image.
Definition at line 22 of file ImageInfoWidget.h.
| MantidQt::MantidWidgets::ImageInfoWidget::ImageInfoWidget | ( | QWidget * | parent = nullptr | ) |
Constructor.
| parent | A QWidget to act as the parent widget |
Definition at line 21 of file ImageInfoWidget.cpp.
|
overridevirtual |
| x | X position if the cursor |
| y | Y position if the cursor |
| signal | Signal value at cursor position |
| extraValues | A map of extra column names and values to display |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 35 of file ImageInfoWidget.cpp.
References m_presenter, Mantid::Geometry::x, and Mantid::Geometry::y.
|
overridevirtual |
Set the workspace to probe for information.
| ws | A pointer to a Workspace object |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 66 of file ImageInfoWidget.cpp.
References m_presenter.
|
overridevirtual |
Display the information provided within the table cells.
| info | A reference to a collection of header/value pairs |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 44 of file ImageInfoWidget.cpp.
References MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::empty(), MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::name(), MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::size(), value, and MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::value().
|
private |
Definition at line 36 of file ImageInfoWidget.h.
Referenced by cursorAt(), and setWorkspace().