An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
Histogram widget used by AdvancedStretchTool. More...
#include <HistogramWidget.h>
Public Member Functions | |
HistogramWidget (const QString title, const QColor histColor=Qt::gray, const QColor stretchColor=Qt::darkGray) | |
HistogramWidget constructor. | |
void | setHistogram (const Histogram &hist) |
Creates a histogram curve from the given histogram and plots it. | |
void | setStretch (Stretch stretch) |
Creates a stretch curbe from the given stretch and plots it. | |
void | clearStretch () |
Clears the stretch curve from the plot. | |
int | heightForWidth (int w) const |
Histograms have preferred sizes that keeps them all the same regardless of the contained data. | |
Histogram widget used by AdvancedStretchTool.
The HistogramWidget displays a given histogram and stretch in a graph and contains inputs for changing the min/max of the histogram.
Isis::HistogramWidget::HistogramWidget | ( | const QString | title, |
const QColor | histColor = Qt::gray, | ||
const QColor | stretchColor = Qt::darkGray ) |
HistogramWidget constructor.
Initializes all of the widgets and sets the plot title, histogram curve's color and stretch curve's color.
title | |
histColor | |
stretchColor |
void Isis::HistogramWidget::clearStretch | ( | ) |
Clears the stretch curve from the plot.
|
inline |
Histograms have preferred sizes that keeps them all the same regardless of the contained data.
This causes that.
Prefer 1:1
w |
void Isis::HistogramWidget::setHistogram | ( | const Histogram & | hist | ) |
Creates a histogram curve from the given histogram and plots it.
hist |
References Isis::Histogram::BinCount(), Isis::Histogram::BinMiddle(), Isis::Histogram::Bins(), Isis::Histogram::BinSize(), Isis::Histogram::MaxBinCount(), Isis::Statistics::Maximum(), and Isis::Statistics::Minimum().
void Isis::HistogramWidget::setStretch | ( | Stretch | stretch | ) |
Creates a stretch curbe from the given stretch and plots it.
stretch |
References Isis::Stretch::Input(), Isis::Stretch::Output(), and Isis::Stretch::Pairs().