|
Mantid
|
A table widget containing information about the pixel the mouse is over in an image. More...
#include <ImageInfoWidgetMini.h>
Public Member Functions | |
| void | cursorAt (const double x, const double y, const double signal, const QMap< QString, QString > &extraValues) override |
| void | hideColumn (const int index) override |
| ImageInfoWidgetMini (QWidget *parent=nullptr) | |
| Constructor. | |
| void | setColumnCount (const int count) override |
| void | setItem (const int rowIndex, const int columnIndex, QTableWidgetItem *item) override |
| void | setRowCount (const int count) override |
| void | setWorkspace (const Mantid::API::Workspace_sptr &ws) override |
| Set the workspace to probe for information. | |
| void | showColumn (const int index) override |
| void | showInfo (const ImageInfoModel::ImageInfo &info) override |
| Display the information provided within the table cells. | |
Public Member Functions inherited from MantidQt::MantidWidgets::IImageInfoWidget | |
| virtual | ~IImageInfoWidget ()=default |
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 ImageInfoWidgetMini.h.
| MantidQt::MantidWidgets::ImageInfoWidgetMini::ImageInfoWidgetMini | ( | QWidget * | parent = nullptr | ) |
Constructor.
| parent | A QWidget to act as the parent widget |
Definition at line 20 of file ImageInfoWidgetMini.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 29 of file ImageInfoWidgetMini.cpp.
References m_presenter, Mantid::Geometry::x, and Mantid::Geometry::y.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 61 of file ImageInfoWidgetMini.cpp.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 59 of file ImageInfoWidgetMini.cpp.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 60 of file ImageInfoWidgetMini.cpp.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 58 of file ImageInfoWidgetMini.cpp.
|
overridevirtual |
Set the workspace to probe for information.
| ws | A pointer to a Workspace object |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 56 of file ImageInfoWidgetMini.cpp.
References m_presenter.
|
overridevirtual |
Implements MantidQt::MantidWidgets::IImageInfoWidget.
Definition at line 62 of file ImageInfoWidgetMini.cpp.
|
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 38 of file ImageInfoWidgetMini.cpp.
References MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::empty(), MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::name(), and MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::value().
|
private |
Definition at line 41 of file ImageInfoWidgetMini.h.
Referenced by cursorAt(), and setWorkspace().