Mantid
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::ImageInfoPresenter Class Reference

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 ImageInfoModelmodel ()
 
void setWorkspace (const Mantid::API::Workspace_sptr &ws)
 Set a new workspace for the view to display. More...
 

Private Attributes

std::unique_ptr< ImageInfoModelm_model
 
IImageInfoWidgetm_view
 

Detailed Description

A table widget containing information about the pixel the mouse is over in an image.

Definition at line 21 of file ImageInfoPresenter.h.

Constructor & Destructor Documentation

◆ ImageInfoPresenter()

MantidQt::MantidWidgets::ImageInfoPresenter::ImageInfoPresenter ( IImageInfoWidget view)

Constructor.

Parameters
viewA pointer to a view object that displays the information

Definition at line 20 of file ImageInfoPresenter.cpp.

References m_view.

Member Function Documentation

◆ cursorAt()

void MantidQt::MantidWidgets::ImageInfoPresenter::cursorAt ( const double  x,
const double  y,
const double  signal,
const QMap< QString, QString >  extraValues 
)
Parameters
xX position on an image of the workspace
yY position on an image of the workspace
signalThe signal value at the given position
extraValuesA 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.

◆ model()

const ImageInfoModel & MantidQt::MantidWidgets::ImageInfoPresenter::model ( )
inline

Definition at line 26 of file ImageInfoPresenter.h.

◆ setWorkspace()

void MantidQt::MantidWidgets::ImageInfoPresenter::setWorkspace ( const Mantid::API::Workspace_sptr workspace)

Set a new workspace for the view to display.

Parameters
workspaceA pointer to a new workspace

Definition at line 38 of file ImageInfoPresenter.cpp.

References m_model, and workspace.

Member Data Documentation

◆ m_model

std::unique_ptr<ImageInfoModel> MantidQt::MantidWidgets::ImageInfoPresenter::m_model
private

Definition at line 32 of file ImageInfoPresenter.h.

Referenced by cursorAt(), and setWorkspace().

◆ m_view

IImageInfoWidget* MantidQt::MantidWidgets::ImageInfoPresenter::m_view
private

Definition at line 33 of file ImageInfoPresenter.h.

Referenced by cursorAt(), and ImageInfoPresenter().


The documentation for this class was generated from the following files: