USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::ScatterPlotConfigDialog Class Reference

This configuration dialog is for users to determine the scatter plot parameters required to create a scatter plot. More...

#include <ScatterPlotConfigDialog.h>

Inherits QDialog.

List of all members.

Public Member Functions

 ScatterPlotConfigDialog (MdiCubeViewport *activeViewport, Workspace *workspace, QWidget *parent=NULL)
 This method creates all the dialog boxes required for the scatter plot window.
virtual QSize sizeHint () const
 This is overridden to give a better default size than what Qt calculates by default.
CubexAxisCube () const
 The current user selection for a cube for the x-axis data for a scatter plot.
CubeyAxisCube () const
 The current user selection for a cube for the x-axis data for a scatter plot.
int xAxisCubeBand () const
 The current user selection for the band in the x-axis cube to get data from.
int yAxisCubeBand () const
 The current user selection for the band in the y-axis cube to get data from.
int xAxisBinCount () const
 The current user selection for the resolution of the scatter plot's x data.
int yAxisBinCount () const
 The current user selection for the resolution of the scatter plot's y data.
QwtInterval sampleRange () const
 This is the sample range from which the scatter plot should be created.
QwtInterval lineRange () const
 This is the line range from which the scatter plot should be created.
MdiCubeViewportxAxisCubeViewport () const
 This returns a viewport which contains the x-axis cube.
MdiCubeViewportyAxisCubeViewport () const
 This returns a viewport which contains the y-axis cube.

Detailed Description

This configuration dialog is for users to determine the scatter plot parameters required to create a scatter plot.

Author:
2012-01-18 Steven Lambright

Constructor & Destructor Documentation

Isis::ScatterPlotConfigDialog::ScatterPlotConfigDialog ( MdiCubeViewport activeViewport,
Workspace workspace,
QWidget parent = NULL 
)

This method creates all the dialog boxes required for the scatter plot window.

Parameters:
activeViewport The current user-selected viewport
workspace The workspace containing all of the viewports
parent The Qt-parent for this dialog

References Isis::CubeViewport::cube().


Member Function Documentation

QwtInterval Isis::ScatterPlotConfigDialog::lineRange (  )  const

This is the line range from which the scatter plot should be created.

The return value is 1-based (lines start at 1) and inclusive. The range 1 and nlines is the entire line range.

Returns:
The line range for the scatter plot data
QwtInterval Isis::ScatterPlotConfigDialog::sampleRange (  )  const

This is the sample range from which the scatter plot should be created.

The return value is 1-based (samples start at 1) and inclusive. The range 1 and nsamples is the entire sample range.

Returns:
The sample range for the scatter plot data
QSize Isis::ScatterPlotConfigDialog::sizeHint (  )  const [virtual]

This is overridden to give a better default size than what Qt calculates by default.

Returns:
The recommended size for this dialog
int Isis::ScatterPlotConfigDialog::xAxisBinCount (  )  const

The current user selection for the resolution of the scatter plot's x data.

Returns:
The x-axis data's bin count for a histogram/spectrogram
Cube * Isis::ScatterPlotConfigDialog::xAxisCube (  )  const

The current user selection for a cube for the x-axis data for a scatter plot.

This never returns null if the dialog was accepted().

Returns:
The x-axis cube or NULL if there isn't one selected.

Referenced by xAxisCubeViewport().

int Isis::ScatterPlotConfigDialog::xAxisCubeBand (  )  const

The current user selection for the band in the x-axis cube to get data from.

This isn't valid unless there is an xAxisCube().

Returns:
The x-axis cube's band to get data from.
MdiCubeViewport * Isis::ScatterPlotConfigDialog::xAxisCubeViewport (  )  const

This returns a viewport which contains the x-axis cube.

Returns:
a viewport which contains the x-axis cube

References Isis::CubeViewport::cube(), Isis::Workspace::cubeViewportList(), and xAxisCube().

int Isis::ScatterPlotConfigDialog::yAxisBinCount (  )  const

The current user selection for the resolution of the scatter plot's y data.

Returns:
The y-axis data's bin count for a histogram/spectrogram
Cube * Isis::ScatterPlotConfigDialog::yAxisCube (  )  const

The current user selection for a cube for the x-axis data for a scatter plot.

This never returns null if the dialog was accepted().

Returns:
The y-axis cube or NULL if there isn't one selected.

Referenced by yAxisCubeViewport().

int Isis::ScatterPlotConfigDialog::yAxisCubeBand (  )  const

The current user selection for the band in the y-axis cube to get data from.

This isn't valid unless there is an yAxisCube().

Returns:
The y-axis cube's band to get data from.
MdiCubeViewport * Isis::ScatterPlotConfigDialog::yAxisCubeViewport (  )  const

This returns a viewport which contains the y-axis cube.

Returns:
a viewport which contains the y-axis cube

References Isis::CubeViewport::cube(), Isis::Workspace::cubeViewportList(), and yAxisCube().


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