Isis 3 Programmer Reference
|
This is the configuration dialog for alarming scatter plots between the plot window and cube viewports. More...
#include <ScatterPlotAlarmConfigDialog.h>
Public Slots | |
void | applySettingsToScatterPlot () |
Take the settings that have been configured and apply them to the scatter plot. More... | |
void | readSettingsFromScatterPlot () |
Update the current widgets' states with the current settings in the scatter plot window. More... | |
Public Member Functions | |
ScatterPlotAlarmConfigDialog (ScatterPlotWindow *window, QWidget *parent=NULL) | |
Create an alarming configuration dialog. More... | |
Private Slots | |
void | refreshWidgetStates () |
Update the enabled/disabled states of the various widgets based on the current user inputs' states. More... | |
Private Member Functions | |
ScatterPlotAlarmConfigDialog (const ScatterPlotAlarmConfigDialog &other) | |
Copying this class is disallowed. More... | |
ScatterPlotAlarmConfigDialog & | operator= (const ScatterPlotAlarmConfigDialog &other) |
Assignment of this class is disallowed. More... | |
Private Attributes | |
QPointer< QCheckBox > | m_alarmOntoPlot |
This is the user option for enabling alarming viewport->plot. More... | |
QPointer< QSpinBox > | m_alarmOntoPlotSamples |
This is the sample box size for alarming viewport->plot. More... | |
QPointer< QSpinBox > | m_alarmOntoPlotLines |
This is the line box size for alarming viewport->plot. More... | |
QPointer< QCheckBox > | m_alarmOntoViewport |
This is the user option for enabling alarming plot->viewport. More... | |
QPointer< QComboBox > | m_alarmOntoViewportUnits |
This is whether alarming plot->viewport should be screen pixels or a set box size regardless of zoom level/axis units. More... | |
QPointer< QLineEdit > | m_alarmOntoViewportXDnSize |
The X-Pixel Cube DN Box Size for alarming plot->viewport. More... | |
QPointer< QLineEdit > | m_alarmOntoViewportYDnSize |
The Y-Pixel Cube DN Box Size for alarming plot->viewport. More... | |
QPointer< QSpinBox > | m_alarmOntoViewportWidth |
The X-Pixel Screen Box Size for alarming plot->viewport. More... | |
QPointer< QSpinBox > | m_alarmOntoViewportHeight |
The Y-Pixel Screen Box Size for alarming plot->viewport. More... | |
QPointer< QPushButton > | m_okayButton |
Button for accepting the current settings and closing the window. More... | |
QPointer< QPushButton > | m_applyButton |
Button for accepting the current settings. More... | |
QPointer< ScatterPlotWindow > | m_window |
The scatter plot window that we're configuring alarming on. More... | |
This is the configuration dialog for alarming scatter plots between the plot window and cube viewports.
Definition at line 27 of file ScatterPlotAlarmConfigDialog.h.
Isis::ScatterPlotAlarmConfigDialog::ScatterPlotAlarmConfigDialog | ( | ScatterPlotWindow * | window, |
QWidget * | parent = NULL |
||
) |
Create an alarming configuration dialog.
This fully initializes the state, but a valid scatter plot window must be specified.
window | The scatter plot window to be configured, this must not be NULL. |
parent | The Qt-parent for this dialog. |
The layout is shown below:
|-----------------------------------------------------------—| | Text rowspan=1, colspan=3 | |-----------------------------------------------------------—| | Alarm onto plot | [] Checkbox | |-----------------------------------------------------------—| | Text rowspan=1, colspan=3 | |-----------------------------------------------------------—| | | Samples | Input Spin | |-----------------------------------------------------------—| | | Lines | Input Spin | |-----------------------------------------------------------—| | Alarm onto viewport | [] Checkbox | |-----------------------------------------------------------—| | Text rowspan=1, colspan=3 | |-----------------------------------------------------------—| | | Range (units) | Input Combo (screen v. cube) | |-----------------------------------------------------------—| | | Samples | Input Spin | |-----------------------------------------------------------—| | | Lines | Input Spin | |-----------------------------------------------------------—| | | Width | Input Spin | |-----------------------------------------------------------—| | | Height | Input Spin | |-----------------------------------------------------------—| | Ok Apply Cancel | |-----------------------------------------------------------—|
Definition at line 29 of file ScatterPlotAlarmConfigDialog.cpp.
References applySettingsToScatterPlot(), Isis::ScatterPlotWindow::CubeUnits, m_alarmOntoPlot, m_alarmOntoPlotLines, m_alarmOntoPlotSamples, m_alarmOntoViewport, m_alarmOntoViewportHeight, m_alarmOntoViewportUnits, m_alarmOntoViewportWidth, m_alarmOntoViewportXDnSize, m_alarmOntoViewportYDnSize, m_applyButton, m_okayButton, m_window, readSettingsFromScatterPlot(), refreshWidgetStates(), and Isis::ScatterPlotWindow::ScreenUnits.
|
private |
Copying this class is disallowed.
other | Nothing. |
|
slot |
Take the settings that have been configured and apply them to the scatter plot.
Any settings which fail to apply will be reverted in the GUI.
Definition at line 222 of file ScatterPlotAlarmConfigDialog.cpp.
References m_alarmOntoPlot, m_alarmOntoPlotLines, m_alarmOntoPlotSamples, m_alarmOntoViewport, m_alarmOntoViewportHeight, m_alarmOntoViewportUnits, m_alarmOntoViewportWidth, m_alarmOntoViewportXDnSize, m_alarmOntoViewportYDnSize, m_window, readSettingsFromScatterPlot(), Isis::ToDouble(), Isis::toInt(), and Isis::IString::ToQt().
Referenced by ScatterPlotAlarmConfigDialog().
|
private |
Assignment of this class is disallowed.
other | Nothing. |
|
slot |
Update the current widgets' states with the current settings in the scatter plot window.
Definition at line 262 of file ScatterPlotAlarmConfigDialog.cpp.
References m_alarmOntoPlot, m_alarmOntoPlotLines, m_alarmOntoPlotSamples, m_alarmOntoViewport, m_alarmOntoViewportHeight, m_alarmOntoViewportUnits, m_alarmOntoViewportWidth, m_alarmOntoViewportXDnSize, m_alarmOntoViewportYDnSize, m_window, refreshWidgetStates(), and Isis::IString::ToQt().
Referenced by applySettingsToScatterPlot(), and ScatterPlotAlarmConfigDialog().
|
privateslot |
Update the enabled/disabled states of the various widgets based on the current user inputs' states.
Definition at line 296 of file ScatterPlotAlarmConfigDialog.cpp.
References Isis::ScatterPlotWindow::CubeUnits, m_alarmOntoPlot, m_alarmOntoPlotLines, m_alarmOntoPlotSamples, m_alarmOntoViewport, m_alarmOntoViewportHeight, m_alarmOntoViewportUnits, m_alarmOntoViewportWidth, m_alarmOntoViewportXDnSize, m_alarmOntoViewportYDnSize, m_applyButton, m_okayButton, and Isis::toInt().
Referenced by readSettingsFromScatterPlot(), and ScatterPlotAlarmConfigDialog().
|
private |
This is the user option for enabling alarming viewport->plot.
Definition at line 58 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
This is the line box size for alarming viewport->plot.
Definition at line 62 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
This is the sample box size for alarming viewport->plot.
Definition at line 60 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
This is the user option for enabling alarming plot->viewport.
Definition at line 65 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
The Y-Pixel Screen Box Size for alarming plot->viewport.
Definition at line 78 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
This is whether alarming plot->viewport should be screen pixels or a set box size regardless of zoom level/axis units.
Definition at line 70 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
The X-Pixel Screen Box Size for alarming plot->viewport.
Definition at line 76 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
The X-Pixel Cube DN Box Size for alarming plot->viewport.
Definition at line 72 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
The Y-Pixel Cube DN Box Size for alarming plot->viewport.
Definition at line 74 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
Button for accepting the current settings.
This may be disabled if the user inputs don't make sense.
Definition at line 90 of file ScatterPlotAlarmConfigDialog.h.
Referenced by refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
Button for accepting the current settings and closing the window.
This may be disabled if the user inputs don't make sense.
Definition at line 84 of file ScatterPlotAlarmConfigDialog.h.
Referenced by refreshWidgetStates(), and ScatterPlotAlarmConfigDialog().
|
private |
The scatter plot window that we're configuring alarming on.
Definition at line 93 of file ScatterPlotAlarmConfigDialog.h.
Referenced by applySettingsToScatterPlot(), readSettingsFromScatterPlot(), and ScatterPlotAlarmConfigDialog().