|
Mantid
|
An implementation of IMDDimension for MatrixWorkspace that points to the X vector of the first spectrum. More...
Public Member Functions | |
| 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 |
| coord_t the minimum extent of this dimension More... | |
| 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 axis points (bin boundaries) More... | |
| const Kernel::UnitLabel | getUnits () const override |
| coord_t | getX (size_t ind) const override |
| Get coordinate for index;. More... | |
| MWXDimension (const MatrixWorkspace *ws, 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 std::string | m_dimensionId |
| Dimension ID string. More... | |
| const Geometry::MDFrame_const_uptr | m_frame |
| Unit. More... | |
| const MatrixWorkspace * | m_ws |
| Workspace we refer to. More... | |
| MantidVec | m_X |
| Cached X vector. More... | |
An implementation of IMDDimension for MatrixWorkspace that points to the X vector of the first spectrum.
Definition at line 1517 of file MatrixWorkspace.cpp.
|
inline |
Definition at line 1519 of file MatrixWorkspace.cpp.
|
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 1540 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 1543 of file MatrixWorkspace.cpp.
References m_X.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1549 of file MatrixWorkspace.cpp.
References m_X.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1569 of file MatrixWorkspace.cpp.
References m_frame.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1568 of file MatrixWorkspace.cpp.
References m_frame.
|
inlineoverridevirtual |
coord_t the minimum extent of this dimension
Implements Mantid::Geometry::IMDDimension.
Definition at line 1546 of file MatrixWorkspace.cpp.
References m_X.
|
inlineoverridevirtual |
the name of the dimennlsion as can be displayed along the axis
Implements Mantid::Geometry::IMDDimension.
Definition at line 1525 of file MatrixWorkspace.cpp.
References Mantid::API::MatrixWorkspace::getAxis(), m_ws, 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 1553 of file MatrixWorkspace.cpp.
References Mantid::API::MatrixWorkspace::isHistogramData(), m_ws, and m_X.
|
inlineoverridevirtual |
number of axis points (bin boundaries)
Implements Mantid::Geometry::IMDDimension.
Definition at line 1556 of file MatrixWorkspace.cpp.
References m_X.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1535 of file MatrixWorkspace.cpp.
References Mantid::API::MatrixWorkspace::getAxis(), m_ws, and Mantid::API::Axis::unit().
|
inlineoverridevirtual |
Get coordinate for index;.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1564 of file MatrixWorkspace.cpp.
References m_X.
Change the extents and number of bins.
Implements Mantid::Geometry::IMDDimension.
Definition at line 1559 of file MatrixWorkspace.cpp.
|
inlineoverridevirtual |
Implements Mantid::Geometry::IMDDimension.
Definition at line 1567 of file MatrixWorkspace.cpp.
|
private |
Dimension ID string.
Definition at line 1577 of file MatrixWorkspace.cpp.
Referenced by getDimensionId().
|
private |
Unit.
Definition at line 1579 of file MatrixWorkspace.cpp.
Referenced by getMDFrame(), and getMDUnits().
|
private |
Workspace we refer to.
Definition at line 1573 of file MatrixWorkspace.cpp.
Referenced by getName(), getNBins(), and getUnits().
|
private |
Cached X vector.
Definition at line 1575 of file MatrixWorkspace.cpp.
Referenced by getIsIntegrated(), getMaximum(), getMinimum(), getNBins(), getNBoundaries(), and getX().