![]()  | 
  
    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.  More... | |
| void | setHistogram (const Histogram &hist) | 
| Creates a histogram curve from the given histogram and plots it.  More... | |
| void | setStretch (Stretch stretch) | 
| Creates a stretch curbe from the given stretch and plots it.  More... | |
| void | clearStretch () | 
| Clears the stretch curve from the plot.  More... | |
| int | heightForWidth (int w) const | 
| Histograms have preferred sizes that keeps them all the same regardless of the contained data.  More... | |
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 | 
References Isis::HistogramItem::setColor().
| 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(), Isis::Statistics::Minimum(), and Isis::HistogramItem::setData().
Referenced by Isis::StretchType::setHistogram(), and Isis::StretchType::StretchType().
| 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().
Referenced by Isis::StretchType::updateGraph().