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) |
ImageInfoPresenter (IImageInfoWidget *view) | |
Constructor. More... | |
const ImageInfoModel & | model () |
void | setWorkspace (const Mantid::API::Workspace_sptr &ws) |
Set a new workspace for the view to display. More... | |
Private Attributes | |
std::unique_ptr< ImageInfoModel > | m_model |
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 20 of file ImageInfoPresenter.cpp.
References m_view.
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 28 of file ImageInfoPresenter.cpp.
References m_model, m_view, MantidQt::MantidWidgets::IImageInfoWidget::showInfo(), Mantid::Geometry::x, and Mantid::Geometry::y.
|
inline |
Definition at line 26 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 38 of file ImageInfoPresenter.cpp.
|
private |
Definition at line 32 of file ImageInfoPresenter.h.
Referenced by cursorAt(), and setWorkspace().
|
private |
Definition at line 33 of file ImageInfoPresenter.h.
Referenced by cursorAt(), and ImageInfoPresenter().