Mantid
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
MantidQt::MantidWidgets::ImageInfoModel Class Referenceabstract

#include <ImageInfoModel.h>

Inheritance diagram for MantidQt::MantidWidgets::ImageInfoModel:
MantidQt::MantidWidgets::ImageInfoModelMD MantidQt::MantidWidgets::ImageInfoModelMatrixWS

Classes

class  ImageInfo
 

Public Member Functions

virtual ImageInfoModel::ImageInfo info (const double x, const double y, const double signal, const QMap< QString, QString > &extraValues) const =0
 Creates information about the point at the given coordinates in the workspace. More...
 
virtual ~ImageInfoModel ()=default
 

Static Public Member Functions

static const QString defaultFormat (const double x)
 
static const QString defaultFormat (const int x)
 

Static Public Attributes

static constexpr auto DecimalFormat = 'f'
 Default float format. More...
 
static constexpr auto FourDigitPrecision = 4
 Default float precision. More...
 
static const QString MissingValue = QString("-")
 MissingValue identifier. More...
 
static constexpr auto UnsetValue = std::numeric_limits<double>::max()
 Value to indicate that a MissingValue should be shown. More...
 

Detailed Description

Definition at line 22 of file ImageInfoModel.h.

Constructor & Destructor Documentation

◆ ~ImageInfoModel()

virtual MantidQt::MantidWidgets::ImageInfoModel::~ImageInfoModel ( )
virtualdefault

Member Function Documentation

◆ defaultFormat() [1/2]

static const QString MantidQt::MantidWidgets::ImageInfoModel::defaultFormat ( const double  x)
inlinestatic

◆ defaultFormat() [2/2]

static const QString MantidQt::MantidWidgets::ImageInfoModel::defaultFormat ( const int  x)
inlinestatic

Definition at line 53 of file ImageInfoModel.h.

References Mantid::Geometry::x.

◆ info()

virtual ImageInfoModel::ImageInfo MantidQt::MantidWidgets::ImageInfoModel::info ( const double  x,
const double  y,
const double  signal,
const QMap< QString, QString > &  extraValues 
) const
pure virtual

Creates information about the point at the given coordinates in the workspace.

Parameters
xx data coordinate
yy data coordinate
signalthe signal value at x, y
extraValuesextra values to be displayed in the image info table
Returns
An ImageInfo object

Implemented in MantidQt::MantidWidgets::ImageInfoModelMatrixWS, and MantidQt::MantidWidgets::ImageInfoModelMD.

Member Data Documentation

◆ DecimalFormat

constexpr auto MantidQt::MantidWidgets::ImageInfoModel::DecimalFormat = 'f'
staticconstexpr

Default float format.

Definition at line 41 of file ImageInfoModel.h.

◆ FourDigitPrecision

constexpr auto MantidQt::MantidWidgets::ImageInfoModel::FourDigitPrecision = 4
staticconstexpr

Default float precision.

Definition at line 39 of file ImageInfoModel.h.

◆ MissingValue

const QString MantidQt::MantidWidgets::ImageInfoModel::MissingValue = QString("-")
inlinestatic

◆ UnsetValue

constexpr auto MantidQt::MantidWidgets::ImageInfoModel::UnsetValue = std::numeric_limits<double>::max()
staticconstexpr

Value to indicate that a MissingValue should be shown.

Definition at line 43 of file ImageInfoModel.h.

Referenced by MantidQt::MantidWidgets::ImageInfoModelMatrixWS::info(), and MantidQt::MantidWidgets::ImageInfoModelMD::info().


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