USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::HistogramWidget Class Reference

Histogram widget used by AdvancedStretchTool. More...

#include <HistogramWidget.h>

Inherits QwtPlot.

List of all members.

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.

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

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

void Isis::HistogramWidget::clearStretch (  ) 

Clears the stretch curve from the plot.

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
void Isis::HistogramWidget::setHistogram ( const Histogram hist  ) 
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: