OpenMS
|
#include <OpenMS/KERNEL/DimMapper.h>
Public Types | |
using | AreaXYType = DRange< N_DIM > |
The Area in X,Y,(Z)... dimension (number of dimensions depends on N_DIM) More... | |
Public Member Functions | |
Area ()=delete | |
No default C'tor. More... | |
Area (const DimMapper< N_DIM > *const dims) | |
Custom C'tor with a mapper (non owning pointer) More... | |
Area (const Area &range)=default | |
Copy C'tor. More... | |
Area & | operator= (const Area &rhs) |
Assignment operator - which checks for identical DimMappers and throws otherwise. More... | |
bool | operator== (const Area &rhs) const |
bool | operator!= (const Area &rhs) const |
const Area & | setArea (const RangeAllType &data) |
Set the area using unit data (RT, m/z, ...) More... | |
const Area & | setArea (const AreaXYType &data) |
Set the area using axis data (X and Y) More... | |
const AreaXYType & | getAreaXY () const |
const RangeAllType & | getAreaUnit () const |
Area | cloneWith (const AreaXYType &data) const |
Clone the current object, set the area of the clone using axis data (X and Y) and return the clone. More... | |
Area | cloneWith (const RangeAllType &data) const |
Clone the current object, set the area of the clone using unit data (RT, m/z, ...) and return the clone. More... | |
void | pushInto (const RangeAllType &sandbox) |
Push the area into a sandbox (if its outside the sandbox). See UnitRange::pushInto() More... | |
void | clear () |
empty all dimensions More... | |
Private Attributes | |
RangeAllType | data_range_ |
range in units More... | |
AreaXYType | visible_area_ = AreaXYType::empty |
const DimMapper< N_DIM > * | mapper_ |
and a mapper (non-owning pointer) to translate between the two More... | |
The data is stored in two members, one axis-related (X and Y; unit does not matter), and one unit-related (units; no mapping to axis) You can set either, and the other will be updated accordingly as long as you provide a DimMapper which translates between the two representations.
using AreaXYType = DRange<N_DIM> |
The Area in X,Y,(Z)... dimension (number of dimensions depends on N_DIM)
|
delete |
No default C'tor.
|
inline |
empty all dimensions
References Area< N_DIM >::setArea().
|
inline |
Clone the current object, set the area of the clone using axis data (X and Y) and return the clone.
data | New area as displayed on the axis |
References Area< N_DIM >::setArea().
|
inline |
Clone the current object, set the area of the clone using unit data (RT, m/z, ...) and return the clone.
data | New area in units |
References Area< N_DIM >::setArea().
|
inline |
References Area< N_DIM >::data_range_.
|
inline |
References Area< N_DIM >::visible_area_.
|
inline |
References Area< N_DIM >::operator==().
Assignment operator - which checks for identical DimMappers and throws otherwise.
References Area< N_DIM >::data_range_, Area< N_DIM >::mapper_, and Area< N_DIM >::visible_area_.
|
inline |
References Area< N_DIM >::data_range_, Area< N_DIM >::mapper_, and Area< N_DIM >::visible_area_.
Referenced by Area< N_DIM >::operator!=().
|
inline |
Push the area into a sandbox (if its outside the sandbox). See UnitRange::pushInto()
sandbox | The sandbox which delimits the range of this area |
References Area< N_DIM >::data_range_, RangeManager< RangeBases >::pushInto(), and Area< N_DIM >::setArea().
|
inline |
Set the area using axis data (X and Y)
data | Area as displayed on the axis |
References Area< N_DIM >::data_range_, Area< N_DIM >::mapper_, and Area< N_DIM >::visible_area_.
|
inline |
Set the area using unit data (RT, m/z, ...)
data | Area in units |
References Area< N_DIM >::data_range_, Area< N_DIM >::mapper_, and Area< N_DIM >::visible_area_.
Referenced by Area< N_DIM >::clear(), Area< N_DIM >::cloneWith(), PlotCanvas::getPixelRange(), and Area< N_DIM >::pushInto().
|
private |
range in units
Referenced by Area< N_DIM >::getAreaUnit(), Area< N_DIM >::operator=(), Area< N_DIM >::operator==(), Area< N_DIM >::pushInto(), and Area< N_DIM >::setArea().
|
private |
and a mapper (non-owning pointer) to translate between the two
Referenced by Area< N_DIM >::operator=(), Area< N_DIM >::operator==(), and Area< N_DIM >::setArea().
|
private |
range in terms of axis (X and Y axis)
Referenced by Area< N_DIM >::getAreaXY(), Area< N_DIM >::operator=(), Area< N_DIM >::operator==(), and Area< N_DIM >::setArea().