BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides few helper functions for ColorMapPlot.
Functions | |
QCPColorGradient | getGradient (const QString &gradientName) |
QCPRange | itemDataRange (const IntensityDataItem *item) |
Returns z-axis data range. More... | |
QCPRange | itemDataZoom (const IntensityDataItem *item) |
Returns z-axis visible range (zoom). More... | |
QCPColorGradient | itemGradient (const IntensityDataItem *item) |
QCPRange | itemXrange (const IntensityDataItem *item) |
Returns x-axis range. More... | |
QCPRange | itemYrange (const IntensityDataItem *item) |
Returns y-axis range. More... | |
QCPRange | itemZoomX (const IntensityDataItem *item) |
Returns x-axis vizible range (zoom). More... | |
QCPRange | itemZoomY (const IntensityDataItem *item) |
Returns y-axis vizible range (zoom). More... | |
void | setDefaultMargins (QCustomPlot *customPlot) |
Sets default margins for axes rectangle plot. More... | |
void | setLogz (QCPAxis *axis, bool isLogz) |
void | setLogz (QCPColorScale *scale, bool isLogz) |
QCPColorGradient GUI::View::RangeUtils::getGradient | ( | const QString & | gradientName | ) |
Definition at line 64 of file RangeUtils.cpp.
Referenced by itemGradient().
QCPRange GUI::View::RangeUtils::itemDataRange | ( | const IntensityDataItem * | item | ) |
Returns z-axis data range.
Definition at line 99 of file RangeUtils.cpp.
References IntensityDataItem::dataRange().
QCPRange GUI::View::RangeUtils::itemDataZoom | ( | const IntensityDataItem * | item | ) |
Returns z-axis visible range (zoom).
Definition at line 105 of file RangeUtils.cpp.
References IntensityDataItem::getLowerZ(), and IntensityDataItem::getUpperZ().
Referenced by ColorMap::setDataRangeFromItem(), and ProjectionsPlot::updateAxesRange().
QCPColorGradient GUI::View::RangeUtils::itemGradient | ( | const IntensityDataItem * | item | ) |
Definition at line 74 of file RangeUtils.cpp.
References getGradient(), and IntensityDataItem::getGradientValue().
Referenced by ColorMap::onPropertyChanged(), and ColorMap::setColorScaleAppearanceFromItem().
QCPRange GUI::View::RangeUtils::itemXrange | ( | const IntensityDataItem * | item | ) |
Returns x-axis range.
Definition at line 79 of file RangeUtils.cpp.
References IntensityDataItem::xMax(), IntensityDataItem::xMin(), and IntensityDataItem::xSize().
Referenced by ColorMap::setAxesRangeFromItem().
QCPRange GUI::View::RangeUtils::itemYrange | ( | const IntensityDataItem * | item | ) |
Returns y-axis range.
Definition at line 89 of file RangeUtils.cpp.
References IntensityDataItem::yMax(), IntensityDataItem::yMin(), and IntensityDataItem::ySize().
Referenced by ColorMap::setAxesRangeFromItem().
QCPRange GUI::View::RangeUtils::itemZoomX | ( | const IntensityDataItem * | item | ) |
Returns x-axis vizible range (zoom).
Definition at line 84 of file RangeUtils.cpp.
References IntensityDataItem::getLowerX(), and IntensityDataItem::getUpperX().
Referenced by ColorMap::onAxisPropertyChanged(), and ProjectionsPlot::updateAxesRange().
QCPRange GUI::View::RangeUtils::itemZoomY | ( | const IntensityDataItem * | item | ) |
Returns y-axis vizible range (zoom).
Definition at line 94 of file RangeUtils.cpp.
References IntensityDataItem::getLowerY(), and IntensityDataItem::getUpperY().
Referenced by ColorMap::onAxisPropertyChanged(), and ProjectionsPlot::updateAxesRange().
void GUI::View::RangeUtils::setDefaultMargins | ( | QCustomPlot * | customPlot | ) |
Sets default margins for axes rectangle plot.
Definition at line 138 of file RangeUtils.cpp.
Referenced by ProjectionsPlot::ProjectionsPlot(), and ColorMap::setFixedColorMapMargins().
void GUI::View::RangeUtils::setLogz | ( | QCPAxis * | axis, |
bool | isLogz | ||
) |
Definition at line 121 of file RangeUtils.cpp.
void GUI::View::RangeUtils::setLogz | ( | QCPColorScale * | scale, |
bool | isLogz | ||
) |
Definition at line 110 of file RangeUtils.cpp.
Referenced by Plot1D::setLog(), SpecularPlot::setLog(), ProjectionsPlot::setLogz(), and ColorMap::setLogz().