Isis Developer Reference
Isis::HistogramWidget Class Reference

Histogram widget used by AdvancedStretchTool. More...

#include <HistogramWidget.h>

Inheritance diagram for Isis::HistogramWidget:
Inheritance graph
Collaboration diagram for Isis::HistogramWidget:
Collaboration graph

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...
 

Detailed Description

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.

Author
2009-05-01 Noah Hilt

Constructor & Destructor Documentation

◆ HistogramWidget()

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.

Parameters
title
histColor
stretchColor

References Isis::HistogramItem::setColor().

Member Function Documentation

◆ clearStretch()

void Isis::HistogramWidget::clearStretch ( )

Clears the stretch curve from the plot.

◆ heightForWidth()

int Isis::HistogramWidget::heightForWidth ( int  w) const
inline

Histograms have preferred sizes that keeps them all the same regardless of the contained data.

This causes that.

Prefer 1:1

Parameters
w
Returns
int

◆ setHistogram()

void Isis::HistogramWidget::setHistogram ( const Histogram hist)

◆ setStretch()

void Isis::HistogramWidget::setStretch ( Stretch  stretch)

Creates a stretch curbe from the given stretch and plots it.

Parameters
stretch

References Isis::Stretch::Input(), Isis::Stretch::Output(), and Isis::Stretch::Pairs().

Referenced by Isis::StretchType::updateGraph().


The documentation for this class was generated from the following files: