Mantid
|
Public Member Functions | |
coord_t | getBinWidth () const override |
Return the bin width taking into account if the stored values are actually bin centres or not. More... | |
const std::string & | getDimensionId () const override |
short name which identify the dimension among other dimension. More... | |
bool | getIsIntegrated () const override |
if the dimension is integrated (e.g. have single bin) More... | |
coord_t | getMaximum () const override |
const Geometry::MDFrame & | getMDFrame () const override |
const Kernel::MDUnit & | getMDUnits () const override |
coord_t | getMinimum () const override |
std::string | getName () const override |
the name of the dimennlsion as can be displayed along the axis More... | |
size_t | getNBins () const override |
number of bins dimension have (an integrated has one). More... | |
size_t | getNBoundaries () const override |
number of bin boundaries (axis points) More... | |
const Kernel::UnitLabel | getUnits () const override |
coord_t | getX (size_t ind) const override |
Get coordinate for index;. More... | |
MWDimension (const Axis *axis, std::string dimensionId) | |
void | setRange (size_t, coord_t, coord_t) override |
Change the extents and number of bins. More... | |
std::string | toXMLString () const override |
Public Member Functions inherited from Mantid::Geometry::IMDDimension | |
virtual coord_t | getBinWidth () const |
virtual const std::string & | getDimensionId () const =0 |
short name which identify the dimension among other dimension. More... | |
virtual bool | getIsIntegrated () const |
virtual coord_t | getMaximum () const =0 |
virtual const Geometry::MDFrame & | getMDFrame () const =0 |
virtual const Kernel::MDUnit & | getMDUnits () const =0 |
virtual coord_t | getMinimum () const =0 |
virtual std::string | getName () const =0 |
virtual size_t | getNBins () const =0 |
virtual size_t | getNBoundaries () const =0 |
virtual const Kernel::UnitLabel | getUnits () const =0 |
virtual coord_t | getX (size_t ind) const =0 |
bool | operator!= (const IMDDimension &) const |
bool | operator== (const IMDDimension &) const |
virtual void | setRange (size_t nBins, coord_t min, coord_t max)=0 |
Change the extents and number of bins. More... | |
virtual std::string | toXMLString () const =0 |
virtual | ~IMDDimension ()=default |
Destructor. More... | |
Private Attributes | |
const Axis & | m_axis |
const std::string | m_dimensionId |
const Geometry::MDFrame_const_uptr | m_frame |
const bool | m_haveEdges |
Definition at line 1437 of file MatrixWorkspace.cpp.
|
inline |
Definition at line 1439 of file MatrixWorkspace.cpp.
|
inlineoverridevirtual |
Return the bin width taking into account if the stored values are actually bin centres or not.
Reimplemented from Mantid::Geometry::IMDDimension.
Definition at line 1495 of file MatrixWorkspace.cpp.
References getMaximum(), getMinimum(), getNBins(), and m_haveEdges.
|
inlineoverridevirtual |
short name which identify the dimension among other dimension.
A dimension can be usually find by its ID and various various method exist to manipulate set of dimensions by their names.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1459 of file MatrixWorkspace.cpp.
References m_dimensionId.
|
inlineoverridevirtual |
if the dimension is integrated (e.g. have single bin)
Reimplemented from Mantid::Geometry::IMDDimension.
Definition at line 1462 of file MatrixWorkspace.cpp.
References Mantid::API::Axis::length(), and m_axis.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1468 of file MatrixWorkspace.cpp.
References Mantid::API::Axis::getMax(), and m_axis.
Referenced by getBinWidth().
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1504 of file MatrixWorkspace.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1503 of file MatrixWorkspace.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1465 of file MatrixWorkspace.cpp.
References Mantid::API::Axis::getMin(), and m_axis.
Referenced by getBinWidth().
|
inlineoverridevirtual |
the name of the dimennlsion as can be displayed along the axis
Implements Mantid::Geometry::IMDDimension.
Definition at line 1445 of file MatrixWorkspace.cpp.
References m_axis, Mantid::API::Axis::title(), and Mantid::API::Axis::unit().
|
inlineoverridevirtual |
number of bins dimension have (an integrated has one).
A axis directed along dimension would have getNBins+1 axis points.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1472 of file MatrixWorkspace.cpp.
References Mantid::API::Axis::length(), m_axis, and m_haveEdges.
Referenced by getBinWidth().
|
inlineoverridevirtual |
number of bin boundaries (axis points)
Implements Mantid::Geometry::IMDDimension.
Definition at line 1480 of file MatrixWorkspace.cpp.
References Mantid::API::Axis::length(), and m_axis.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1454 of file MatrixWorkspace.cpp.
References m_axis, and Mantid::API::Axis::unit().
|
inlineoverridevirtual |
Get coordinate for index;.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1488 of file MatrixWorkspace.cpp.
References m_axis.
Change the extents and number of bins.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1483 of file MatrixWorkspace.cpp.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1501 of file MatrixWorkspace.cpp.
|
private |
Definition at line 1507 of file MatrixWorkspace.cpp.
Referenced by getIsIntegrated(), getMaximum(), getMinimum(), getName(), getNBins(), getNBoundaries(), getUnits(), and getX().
|
private |
Definition at line 1508 of file MatrixWorkspace.cpp.
Referenced by getDimensionId().
|
private |
Definition at line 1510 of file MatrixWorkspace.cpp.
Referenced by getMDFrame(), and getMDUnits().
|
private |
Definition at line 1509 of file MatrixWorkspace.cpp.
Referenced by getBinWidth(), and getNBins().