BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides few helper functions for ColorMapPlot. More...
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) |
Provides few helper functions for ColorMapPlot.
QCPColorGradient ColorMapUtils::getGradient | ( | const QString & | gradientName | ) |
Definition at line 64 of file ColorMapUtils.cpp.
Referenced by itemGradient(), IntensityDataCanvas::onPropertyChanged(), and ModelView::ColorMapPlotController::ColorMapPlotControllerImpl::update_gradient().
QCPRange ColorMapUtils::itemDataRange | ( | const IntensityDataItem * | item | ) |
Returns z-axis data range.
Definition at line 101 of file ColorMapUtils.cpp.
References IntensityDataItem::dataRange().
QCPRange ColorMapUtils::itemDataZoom | ( | const IntensityDataItem * | item | ) |
Returns z-axis visible range (zoom).
Definition at line 107 of file ColorMapUtils.cpp.
References IntensityDataItem::getLowerZ(), and IntensityDataItem::getUpperZ().
Referenced by ColorMap::setDataRangeFromItem(), and ProjectionsPlot::updateAxesRange().
QCPColorGradient ColorMapUtils::itemGradient | ( | const IntensityDataItem * | item | ) |
Definition at line 76 of file ColorMapUtils.cpp.
References IntensityDataItem::getGradient(), and getGradient().
Referenced by ColorMap::onPropertyChanged(), and ColorMap::setColorScaleAppearanceFromItem().
QCPRange ColorMapUtils::itemXrange | ( | const IntensityDataItem * | item | ) |
Returns x-axis range.
Definition at line 81 of file ColorMapUtils.cpp.
References IntensityDataItem::getNbinsX(), IntensityDataItem::getXmax(), and IntensityDataItem::getXmin().
Referenced by ColorMap::setAxesRangeFromItem().
QCPRange ColorMapUtils::itemYrange | ( | const IntensityDataItem * | item | ) |
Returns y-axis range.
Definition at line 91 of file ColorMapUtils.cpp.
References IntensityDataItem::getNbinsY(), IntensityDataItem::getYmax(), and IntensityDataItem::getYmin().
Referenced by ColorMap::setAxesRangeFromItem().
QCPRange ColorMapUtils::itemZoomX | ( | const IntensityDataItem * | item | ) |
Returns x-axis vizible range (zoom).
Definition at line 86 of file ColorMapUtils.cpp.
References IntensityDataItem::getLowerX(), and IntensityDataItem::getUpperX().
Referenced by ColorMap::onAxisPropertyChanged(), and ProjectionsPlot::updateAxesRange().
QCPRange ColorMapUtils::itemZoomY | ( | const IntensityDataItem * | item | ) |
Returns y-axis vizible range (zoom).
Definition at line 96 of file ColorMapUtils.cpp.
References IntensityDataItem::getLowerY(), and IntensityDataItem::getUpperY().
Referenced by ColorMap::onAxisPropertyChanged(), and ProjectionsPlot::updateAxesRange().
void ColorMapUtils::setDefaultMargins | ( | QCustomPlot * | customPlot | ) |
Sets default margins for axes rectangle plot.
Definition at line 140 of file ColorMapUtils.cpp.
Referenced by ProjectionsPlot::ProjectionsPlot(), and ColorMap::setFixedColorMapMargins().
void ColorMapUtils::setLogz | ( | QCPAxis * | axis, |
bool | isLogz | ||
) |
Definition at line 123 of file ColorMapUtils.cpp.
void ColorMapUtils::setLogz | ( | QCPColorScale * | scale, |
bool | isLogz | ||
) |
Definition at line 112 of file ColorMapUtils.cpp.
Referenced by Plot1D::setLog(), SpecularPlot::setLog(), ProjectionsPlot::setLogz(), and ColorMap::setLogz().