Isis 3 Programmer Reference
Isis::QHistogram Class Reference

Plot Histograms. More...

#include <QHistogram.h>

Inheritance diagram for Isis::QHistogram:
Inheritance graph
Collaboration diagram for Isis::QHistogram:
Collaboration graph

Public Slots

void trackerEnabled ()
 Enables mouse tracking on the plot.
 
void cdfCurveVisible ()
 Hide/show the cdf curve.
 
void printPlot ()
 Provide printing capabilities.
 
void savePlot ()
 Allows user to save the plot to an image file.
 
void switchBackground ()
 Switches the plot background color between black and white.
 
void showHelp ()
 Provides help text in a dialog box.
 

Public Member Functions

 QHistogram (QWidget *parent=NULL)
 Constructs a QHistogram object with default titles.
 
 ~QHistogram ()
 Destroys the QHistogram object.
 
void Load (Histogram &hist)
 Plots the given Isis Histogram in the plot window.
 

Private Attributes

QwtPlotZoomer * p_zoomer
 Plot Zoomer.
 
QwtPlotCurvep_histCurve
 Historgram plot curve.
 
QwtPlotCurvep_cdfCurve
 CDF plot curve.
 

Detailed Description

Plot Histograms.

This class is used to plot histograms. It is a utility class for the hist application.

Author
2006-12-21 Elizabeth Miller
History
2016-09-14 Ian Humphrey - Modified printPlot() and savePlot() - replaced deprecated static QPixmap::grabWidget with QWidget::grab. References #4304.

Definition at line 34 of file QHistogram.h.

Constructor & Destructor Documentation

◆ QHistogram()

Isis::QHistogram::QHistogram ( QWidget * parent = NULL)

Constructs a QHistogram object with default titles.

Parameters
parent

Definition at line 35 of file QHistogram.cpp.

References p_zoomer.

◆ ~QHistogram()

Isis::QHistogram::~QHistogram ( )
inline

Destroys the QHistogram object.

Definition at line 41 of file QHistogram.h.

Member Function Documentation

◆ cdfCurveVisible

void Isis::QHistogram::cdfCurveVisible ( )
slot

Hide/show the cdf curve.

Definition at line 121 of file QHistogram.cpp.

References p_cdfCurve.

◆ Load()

void Isis::QHistogram::Load ( Histogram & hist)

Plots the given Isis Histogram in the plot window.

Parameters
histThe Isis Histogram to plot

Definition at line 65 of file QHistogram.cpp.

References p_cdfCurve, p_histCurve, and p_zoomer.

◆ printPlot

void Isis::QHistogram::printPlot ( )
slot

Provide printing capabilities.

Definition at line 131 of file QHistogram.cpp.

◆ savePlot

void Isis::QHistogram::savePlot ( )
slot

Allows user to save the plot to an image file.

Definition at line 162 of file QHistogram.cpp.

◆ showHelp

void Isis::QHistogram::showHelp ( )
slot

Provides help text in a dialog box.

Definition at line 205 of file QHistogram.cpp.

◆ switchBackground

void Isis::QHistogram::switchBackground ( )
slot

Switches the plot background color between black and white.

Definition at line 184 of file QHistogram.cpp.

References p_zoomer.

◆ trackerEnabled

void Isis::QHistogram::trackerEnabled ( )
slot

Enables mouse tracking on the plot.

Definition at line 107 of file QHistogram.cpp.

References p_zoomer.

Member Data Documentation

◆ p_cdfCurve

QwtPlotCurve* Isis::QHistogram::p_cdfCurve
private

CDF plot curve.

Definition at line 56 of file QHistogram.h.

Referenced by cdfCurveVisible(), and Load().

◆ p_histCurve

QwtPlotCurve* Isis::QHistogram::p_histCurve
private

Historgram plot curve.

Definition at line 55 of file QHistogram.h.

Referenced by Load().

◆ p_zoomer

QwtPlotZoomer* Isis::QHistogram::p_zoomer
private

Plot Zoomer.

Definition at line 54 of file QHistogram.h.

Referenced by Load(), QHistogram(), switchBackground(), and trackerEnabled().


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