Mantid
|
Simple class that holds the extents (min/max) of a given dimension in a MD workspace or MDBox. More...
#include <MDDimensionExtents.h>
Public Member Functions | |
void | expand (MDDimensionExtents &other) |
std::string | extentsStr () const |
T | getCentre () const |
T | getGridVertex (const size_t ind) const |
return the vertice in the grid, based on this extent's size More... | |
T | getMax () const |
T | getMin () const |
T | getSize () const |
bool | isUndefined () const |
MDDimensionExtents () | |
Empty constructor - reset everything. More... | |
bool | outside (T x) const |
void | scaleExtents (double scaling, double offset) |
void | setExtents (double dMin, double dMax) |
Private Attributes | |
T | m_size |
the box size; It is important to have box size defined from doubles to avoid accuracy loss when extracting two large float numbers min and max More... | |
T | max |
Extent: maximum value in that dimension. More... | |
T | min |
Extent: minimum value in that dimension. More... | |
Simple class that holds the extents (min/max) of a given dimension in a MD workspace or MDBox.
Definition at line 40 of file MDDimensionExtents.h.
|
inline |
Empty constructor - reset everything.
Definition at line 45 of file MDDimensionExtents.h.
|
inline |
Definition at line 71 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
inline |
Definition at line 51 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
inline |
Definition at line 47 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
inline |
return the vertice in the grid, based on this extent's size
Definition at line 57 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::m_size, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
inline |
Definition at line 55 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max.
Referenced by Mantid::MDAlgorithms::CompareMDWorkspaces::compare2Boxes().
|
inline |
Definition at line 54 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::min.
Referenced by Mantid::MDAlgorithms::CompareMDWorkspaces::compare2Boxes().
|
inline |
Definition at line 46 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::m_size.
|
inline |
Definition at line 49 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
inline |
Definition at line 48 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::max, Mantid::Geometry::MDDimensionExtents< T >::min, and Mantid::Geometry::x.
|
inline |
Definition at line 59 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::m_size, Mantid::Geometry::MDDimensionExtents< T >::max, Mantid::Geometry::MDDimensionExtents< T >::min, and tmp.
|
inline |
Definition at line 84 of file MDDimensionExtents.h.
References Mantid::Geometry::MDDimensionExtents< T >::m_size, Mantid::Geometry::MDDimensionExtents< T >::max, and Mantid::Geometry::MDDimensionExtents< T >::min.
|
private |
the box size; It is important to have box size defined from doubles to avoid accuracy loss when extracting two large float numbers min and max
Definition at line 98 of file MDDimensionExtents.h.
Referenced by Mantid::Geometry::MDDimensionExtents< T >::getGridVertex(), Mantid::Geometry::MDDimensionExtents< T >::getSize(), Mantid::Geometry::MDDimensionExtents< T >::scaleExtents(), and Mantid::Geometry::MDDimensionExtents< T >::setExtents().
|
private |
Extent: maximum value in that dimension.
Definition at line 94 of file MDDimensionExtents.h.
Referenced by Mantid::Geometry::MDDimensionExtents< T >::expand(), Mantid::Geometry::MDDimensionExtents< T >::extentsStr(), Mantid::Geometry::MDDimensionExtents< T >::getCentre(), Mantid::Geometry::MDDimensionExtents< T >::getMax(), Mantid::Geometry::MDDimensionExtents< T >::isUndefined(), Mantid::Geometry::MDDimensionExtents< T >::outside(), Mantid::Geometry::MDDimensionExtents< T >::scaleExtents(), and Mantid::Geometry::MDDimensionExtents< T >::setExtents().
|
private |
Extent: minimum value in that dimension.
Definition at line 92 of file MDDimensionExtents.h.
Referenced by Mantid::Geometry::MDDimensionExtents< T >::expand(), Mantid::Geometry::MDDimensionExtents< T >::extentsStr(), Mantid::Geometry::MDDimensionExtents< T >::getCentre(), Mantid::Geometry::MDDimensionExtents< T >::getGridVertex(), Mantid::Geometry::MDDimensionExtents< T >::getMin(), Mantid::Geometry::MDDimensionExtents< T >::isUndefined(), Mantid::Geometry::MDDimensionExtents< T >::outside(), Mantid::Geometry::MDDimensionExtents< T >::scaleExtents(), and Mantid::Geometry::MDDimensionExtents< T >::setExtents().