|
Mantid
|
A table widget containing information about the pixel the mouse is over in an image. More...
#include <ImageInfoPresenter.h>
Public Member Functions | |
| void | cursorAt (const double x, const double y, const double signal, const QMap< QString, QString > &extraValues) |
| void | fillTableCells (const ImageInfoModel::ImageInfo &info) |
| Fill the view table cells using the model. | |
| ImageInfoPresenter (IImageInfoWidget *view) | |
| Constructor. | |
| const ImageInfoModel & | model () |
| void | setShowSignal (const bool showSignal) |
| void | setWorkspace (const Mantid::API::Workspace_sptr &ws) |
| Set a new workspace for the view to display. | |
Private Attributes | |
| std::unique_ptr< ImageInfoModel > | m_model |
| bool | m_showSignal |
| IImageInfoWidget * | m_view |
A table widget containing information about the pixel the mouse is over in an image.
Definition at line 21 of file ImageInfoPresenter.h.
| MantidQt::MantidWidgets::ImageInfoPresenter::ImageInfoPresenter | ( | IImageInfoWidget * | view | ) |
Constructor.
| view | A pointer to a view object that displays the information |
Definition at line 22 of file ImageInfoPresenter.cpp.
References m_view, and MantidQt::MantidWidgets::IImageInfoWidget::setRowCount().
| void MantidQt::MantidWidgets::ImageInfoPresenter::cursorAt | ( | const double | x, |
| const double | y, | ||
| const double | signal, | ||
| const QMap< QString, QString > & | extraValues | ||
| ) |
| x | X position on an image of the workspace |
| y | Y position on an image of the workspace |
| signal | The signal value at the given position |
| extraValues | A map of extra column names and values to display |
Definition at line 32 of file ImageInfoPresenter.cpp.
References m_model, m_view, MantidQt::MantidWidgets::IImageInfoWidget::showInfo(), Mantid::Geometry::x, and Mantid::Geometry::y.
| void MantidQt::MantidWidgets::ImageInfoPresenter::fillTableCells | ( | const ImageInfoModel::ImageInfo & | info | ) |
Fill the view table cells using the model.
| info | A reference to a collection of header/value pairs |
Definition at line 54 of file ImageInfoPresenter.cpp.
References MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::empty(), MantidQt::MantidWidgets::IImageInfoWidget::hideColumn(), m_showSignal, m_view, name, MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::name(), MantidQt::MantidWidgets::IImageInfoWidget::setColumnCount(), MantidQt::MantidWidgets::IImageInfoWidget::setItem(), MantidQt::MantidWidgets::IImageInfoWidget::showColumn(), MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::size(), value, and MantidQt::MantidWidgets::ImageInfoModel::ImageInfo::value().
|
inline |
Definition at line 26 of file ImageInfoPresenter.h.
|
inline |
Definition at line 31 of file ImageInfoPresenter.h.
| void MantidQt::MantidWidgets::ImageInfoPresenter::setWorkspace | ( | const Mantid::API::Workspace_sptr & | workspace | ) |
Set a new workspace for the view to display.
| workspace | A pointer to a new workspace |
Definition at line 42 of file ImageInfoPresenter.cpp.
|
private |
Definition at line 34 of file ImageInfoPresenter.h.
Referenced by cursorAt(), and setWorkspace().
|
private |
Definition at line 36 of file ImageInfoPresenter.h.
Referenced by fillTableCells().
|
private |
Definition at line 35 of file ImageInfoPresenter.h.
Referenced by cursorAt(), fillTableCells(), and ImageInfoPresenter().