Isis 3 Programmer Reference
|
Configure user's settings for the grid tool. More...
#include <MosaicGridToolConfigDialog.h>
Public Slots | |
void | applySettings () |
Slot that calls applySettings with true to call readSettings also. More... | |
void | applySettings (bool shouldReadSettings) |
Apply the user's current settings to the tool. More... | |
void | readSettings () |
Read the tool's current settings and set the widget states to match. More... | |
void | refreshWidgetStates () |
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidgetStates call apply settings. More... | |
void | onBaseLatSliderChanged () |
Updates the corresponding line edit when the baseLatSlider changes. More... | |
void | onBaseLonSliderChanged () |
Updates the corresponding line edit when the baseLonSlider changes. More... | |
void | onLatIncSliderChanged () |
Updates the corresponding line edit when the latIncSlider changes. More... | |
void | onLonIncSliderChanged () |
Updates the corresponding line edit when the lonIncSlider changes. More... | |
void | onExtentTypeChanged () |
Updates the dialog when the lat or lon extent source is changed. More... | |
void | onMinLatExtentSliderChanged () |
Updates the corresponding line edit when the minLatSlider changes. More... | |
void | onMaxLatExtentSliderChanged () |
Updates the corresponding line edit when the maxLatSlider changes. More... | |
void | onMinLonExtentSliderChanged () |
Updates the corresponding line edit when the minLonSlider changes. More... | |
void | onMaxLonExtentSliderChanged () |
Updates the corresponding line edit when the maxLonSlider changes. More... | |
Public Member Functions | |
MosaicGridToolConfigDialog (MosaicGridTool *tool, QWidget *parent) | |
Create a config dialog that configures the given MosaicGridTool. More... | |
~MosaicGridToolConfigDialog () | |
Clean up allocated memory. More... | |
Private Member Functions | |
Q_DISABLE_COPY (MosaicGridToolConfigDialog) | |
void | refreshWidgetStates (bool canAutoApply) |
Enables or disables widgets depending on the state of the tool. More... | |
Private Attributes | |
MosaicGridTool * | m_tool |
QPointer< QCheckBox > | m_showGridCheckBox |
The tool we're configuring. More... | |
QPointer< QCheckBox > | m_autoGridCheckBox |
True if grid properties come form open cubes. More... | |
QPointer< QLabel > | m_baseLatLabel |
Label for the base latitude. More... | |
QPointer< QLineEdit > | m_baseLatLineEdit |
Input for base latitude. More... | |
QPointer< QSlider > | m_baseLatSlider |
Input for base latitude. More... | |
QPointer< QLabel > | m_baseLatTypeLabel |
Label for the baselat type (degrees/radians) More... | |
QPointer< QLabel > | m_baseLonLabel |
Label for the base longitude. More... | |
QPointer< QLineEdit > | m_baseLonLineEdit |
Input for base longitude. More... | |
QPointer< QSlider > | m_baseLonSlider |
Input for base longitude. More... | |
QPointer< QLabel > | m_baseLonTypeLabel |
Label for the baselon type (degrees/radians) More... | |
QPointer< QLabel > | m_latIncLabel |
Label for the latitude increment. More... | |
QPointer< QLineEdit > | m_latIncLineEdit |
Input for latitude increment. More... | |
QPointer< QSlider > | m_latIncSlider |
Input for latitude increment. More... | |
QPointer< QLabel > | m_latIncTypeLabel |
Label for the increment type (degrees/radians) More... | |
QPointer< QLabel > | m_lonIncLabel |
Label for the longitude increment. More... | |
QPointer< QLineEdit > | m_lonIncLineEdit |
Input for longitude increment. More... | |
QPointer< QSlider > | m_lonIncSlider |
Input for longitude increment. More... | |
QPointer< QLabel > | m_lonIncTypeLabel |
Label for the increment type (degrees/radians) More... | |
QPointer< QLabel > | m_latExtentLabel |
Label for the latitude range Selection for the latitude extent source (Map, Cube, Manual) More... | |
QPointer< QComboBox > | m_latExtentCombo |
QPointer< QLabel > | m_latExtentTypeLabel |
QPointer< QLabel > | m_minLatExtentLabel |
Label for the minimum latitude. More... | |
QPointer< QLineEdit > | m_minLatExtentLineEdit |
Input for the minimum latitude. More... | |
QPointer< QSlider > | m_minLatExtentSlider |
Input for the minimum latitude. More... | |
QPointer< QLabel > | m_minLatExtentTypeLabel |
QPointer< QLabel > | m_maxLatExtentLabel |
Label for the maximum latitude. More... | |
QPointer< QLineEdit > | m_maxLatExtentLineEdit |
Input for the maximum latitude. More... | |
QPointer< QSlider > | m_maxLatExtentSlider |
Input for the maximum latitude. More... | |
QPointer< QLabel > | m_maxLatExtentTypeLabel |
QPointer< QLabel > | m_lonExtentLabel |
Label for the longitude range Selection for the longitude extent source (Map, Cube, Manual) More... | |
QPointer< QComboBox > | m_lonExtentCombo |
QPointer< QLabel > | m_lonDomainLabel |
Label for the longitude domain. More... | |
QPointer< QLabel > | m_minLonExtentLabel |
Label for the minimum longitude. More... | |
QPointer< QLineEdit > | m_minLonExtentLineEdit |
Input for the minimum longitude. More... | |
QPointer< QSlider > | m_minLonExtentSlider |
Input for the minimumlongitude. More... | |
QPointer< QLabel > | m_minLonExtentTypeLabel |
QPointer< QLabel > | m_maxLonExtentLabel |
Label for the maximum longitude. More... | |
QPointer< QLineEdit > | m_maxLonExtentLineEdit |
Input for the maximum longitude. More... | |
QPointer< QSlider > | m_maxLonExtentSlider |
Input for the maximum longitude. More... | |
QPointer< QLabel > | m_maxLonExtentTypeLabel |
QPointer< QLabel > | m_densityLabel |
Label for the grid density. More... | |
QPointer< QLineEdit > | m_densityEdit |
Input for grid density. More... | |
QPointer< QCheckBox > | m_autoApplyCheckBox |
True to applySettings on state change. More... | |
Configure user's settings for the grid tool.
This dialog enables the user to configure the given grid tool. You can show or hid the grid, draw an auto grid that is based on the open cubes or the user selected grid extents, and change the parameters of a custom drawn grid. It allows the user to select the source of the longitude and latitude ranges (from the map, from the open cubes, or manually entered). The widgets are enabled/disabled depending on the state of the tool. There is also an option to 'auto apply' the grid settings, which allows the user to see live updates of the grid as the parameters are changed. If the tool and dialog take too long to update the grid, the density will be reduced to increase the speed with which the grid is drawn. References #604.
Definition at line 37 of file MosaicGridToolConfigDialog.h.
Isis::MosaicGridToolConfigDialog::MosaicGridToolConfigDialog | ( | MosaicGridTool * | tool, |
QWidget * | parent | ||
) |
Create a config dialog that configures the given MosaicGridTool.
tool | The tool to read settings from and write settings to. |
parent | The qt-parent relationship parent. |
Definition at line 34 of file MosaicGridToolConfigDialog.cpp.
References applySettings(), Isis::MosaicGridTool::Cubes, Isis::MosaicGridTool::latExtents(), Isis::MosaicGridTool::latType(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicGridTool::lonExtents(), m_autoApplyCheckBox, m_autoGridCheckBox, m_baseLatLabel, m_baseLatLineEdit, m_baseLatSlider, m_baseLatTypeLabel, m_baseLonLabel, m_baseLonLineEdit, m_baseLonSlider, m_baseLonTypeLabel, m_densityEdit, m_densityLabel, m_latExtentLabel, m_latIncLabel, m_latIncLineEdit, m_latIncSlider, m_latIncTypeLabel, m_lonDomainLabel, m_lonExtentLabel, m_lonIncLabel, m_lonIncLineEdit, m_lonIncSlider, m_lonIncTypeLabel, m_maxLatExtentLabel, m_maxLatExtentLineEdit, m_maxLatExtentSlider, m_maxLonExtentLabel, m_maxLonExtentLineEdit, m_maxLonExtentSlider, m_minLatExtentLabel, m_minLatExtentLineEdit, m_minLatExtentSlider, m_minLonExtentLabel, m_minLonExtentLineEdit, m_minLonExtentSlider, m_showGridCheckBox, Isis::MosaicGridTool::Manual, Isis::MosaicGridTool::Map, onBaseLatSliderChanged(), onBaseLonSliderChanged(), onExtentTypeChanged(), onLatIncSliderChanged(), onLonIncSliderChanged(), onMaxLatExtentSliderChanged(), onMaxLonExtentSliderChanged(), onMinLatExtentSliderChanged(), onMinLonExtentSliderChanged(), readSettings(), and refreshWidgetStates().
Isis::MosaicGridToolConfigDialog::~MosaicGridToolConfigDialog | ( | ) |
Clean up allocated memory.
Definition at line 394 of file MosaicGridToolConfigDialog.cpp.
|
slot |
Slot that calls applySettings with true to call readSettings also.
Definition at line 536 of file MosaicGridToolConfigDialog.cpp.
Referenced by MosaicGridToolConfigDialog(), onExtentTypeChanged(), and refreshWidgetStates().
|
slot |
Apply the user's current settings to the tool.
Draw or clear the grid depending on the settings.
Definition at line 402 of file MosaicGridToolConfigDialog.cpp.
References _FILEINFO_, Isis::MosaicGridTool::autoGrid(), Isis::MosaicGridTool::clearGrid(), Isis::Angle::Degrees, Isis::MosaicGridTool::drawGrid(), m_autoGridCheckBox, m_baseLatLineEdit, m_baseLonLineEdit, m_densityEdit, m_latIncLineEdit, m_lonIncLineEdit, m_maxLatExtentLineEdit, m_maxLonExtentLineEdit, m_minLatExtentLineEdit, m_minLonExtentLineEdit, m_showGridCheckBox, readSettings(), Isis::MosaicGridTool::sceneWidget(), Isis::MosaicGridTool::setAutoGridCheckBox(), Isis::MosaicGridTool::setBaseLat(), Isis::MosaicGridTool::setBaseLon(), Isis::MosaicGridTool::setDensity(), Isis::MosaicGridTool::setLatExtents(), Isis::MosaicGridTool::setLatInc(), Isis::MosaicGridTool::setLonExtents(), Isis::MosaicGridTool::setLonInc(), Isis::MosaicGridTool::setShowGrid(), Isis::toInt(), and Isis::IException::Unknown.
|
slot |
Updates the corresponding line edit when the baseLatSlider changes.
Definition at line 728 of file MosaicGridToolConfigDialog.cpp.
References m_baseLatLineEdit, m_baseLatSlider, and m_latIncLineEdit.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the baseLonSlider changes.
Definition at line 737 of file MosaicGridToolConfigDialog.cpp.
References m_baseLonLineEdit, m_baseLonSlider, and m_lonIncLineEdit.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the dialog when the lat or lon extent source is changed.
This is necessary because the tools values will change and they need to be brought back to the dialog.
Definition at line 790 of file MosaicGridToolConfigDialog.cpp.
References applySettings(), m_densityEdit, and refreshWidgetStates().
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the latIncSlider changes.
Definition at line 746 of file MosaicGridToolConfigDialog.cpp.
References m_latIncLineEdit, and m_latIncSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the lonIncSlider changes.
Definition at line 754 of file MosaicGridToolConfigDialog.cpp.
References m_lonIncLineEdit, and m_lonIncSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the maxLatSlider changes.
Definition at line 775 of file MosaicGridToolConfigDialog.cpp.
References m_maxLatExtentLineEdit, m_maxLatExtentSlider, and m_minLatExtentSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the maxLonSlider changes.
Definition at line 817 of file MosaicGridToolConfigDialog.cpp.
References m_maxLonExtentLineEdit, m_maxLonExtentSlider, and m_minLonExtentSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the minLatSlider changes.
Definition at line 762 of file MosaicGridToolConfigDialog.cpp.
References m_maxLatExtentSlider, m_minLatExtentLineEdit, and m_minLatExtentSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the minLonSlider changes.
Definition at line 804 of file MosaicGridToolConfigDialog.cpp.
References m_maxLonExtentSlider, m_minLonExtentLineEdit, and m_minLonExtentSlider.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Read the tool's current settings and set the widget states to match.
Definition at line 544 of file MosaicGridToolConfigDialog.cpp.
References Isis::MosaicGridTool::autoGridCheckBox(), Isis::MosaicGridTool::baseLat(), Isis::MosaicGridTool::baseLon(), Isis::Angle::Degrees, Isis::Angle::degrees(), Isis::MosaicGridTool::density(), Isis::MosaicGridTool::latExtents(), Isis::MosaicGridTool::latInc(), Isis::MosaicGridTool::lonExtents(), Isis::MosaicGridTool::lonInc(), m_autoApplyCheckBox, m_autoGridCheckBox, m_baseLatLineEdit, m_baseLonLineEdit, m_densityEdit, m_latIncLineEdit, m_lonIncLineEdit, m_maxLatExtentLineEdit, m_maxLonExtentLineEdit, m_minLatExtentLineEdit, m_minLonExtentLineEdit, m_showGridCheckBox, Isis::MosaicGridTool::maxLat(), Isis::MosaicGridTool::maxLon(), Isis::MosaicGridTool::minLat(), Isis::MosaicGridTool::minLon(), Isis::Latitude::planetographic(), refreshWidgetStates(), Isis::MosaicGridTool::sceneWidget(), and Isis::MosaicGridTool::showGrid().
Referenced by applySettings(), and MosaicGridToolConfigDialog().
|
slot |
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidgetStates call apply settings.
Definition at line 598 of file MosaicGridToolConfigDialog.cpp.
Referenced by MosaicGridToolConfigDialog(), onExtentTypeChanged(), and readSettings().
|
private |
Enables or disables widgets depending on the state of the tool.
Also calls apply if the auto apply checkbox is checked.
Definition at line 607 of file MosaicGridToolConfigDialog.cpp.
References applySettings(), Isis::Angle::degrees(), m_autoApplyCheckBox, m_autoGridCheckBox, m_baseLatLabel, m_baseLatLineEdit, m_baseLatSlider, m_baseLatTypeLabel, m_baseLonLabel, m_baseLonLineEdit, m_baseLonSlider, m_baseLonTypeLabel, m_densityEdit, m_densityLabel, m_latExtentLabel, m_latIncLabel, m_latIncLineEdit, m_latIncSlider, m_latIncTypeLabel, m_lonDomainLabel, m_lonExtentLabel, m_lonIncLabel, m_lonIncLineEdit, m_lonIncSlider, m_lonIncTypeLabel, m_maxLatExtentLabel, m_maxLatExtentLineEdit, m_maxLatExtentSlider, m_maxLonExtentLabel, m_maxLonExtentLineEdit, m_maxLonExtentSlider, m_minLatExtentLabel, m_minLatExtentLineEdit, m_minLatExtentSlider, m_minLonExtentLabel, m_minLonExtentLineEdit, m_minLonExtentSlider, m_showGridCheckBox, Isis::MosaicGridTool::Manual, Isis::MosaicGridTool::sceneWidget(), and Isis::toInt().
|
private |
True to applySettings on state change.
Definition at line 123 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), readSettings(), and refreshWidgetStates().
|
private |
True if grid properties come form open cubes.
Definition at line 68 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), readSettings(), and refreshWidgetStates().
|
private |
Label for the base latitude.
Definition at line 70 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for base latitude.
Definition at line 71 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onBaseLatSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for base latitude.
Definition at line 72 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onBaseLatSliderChanged(), and refreshWidgetStates().
|
private |
Label for the baselat type (degrees/radians)
Definition at line 73 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the base longitude.
Definition at line 75 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for base longitude.
Definition at line 76 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onBaseLonSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for base longitude.
Definition at line 77 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onBaseLonSliderChanged(), and refreshWidgetStates().
|
private |
Label for the baselon type (degrees/radians)
Definition at line 78 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for grid density.
Definition at line 121 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onExtentTypeChanged(), readSettings(), and refreshWidgetStates().
|
private |
Label for the grid density.
Definition at line 120 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the latitude range Selection for the latitude extent source (Map, Cube, Manual)
Definition at line 90 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the latitude increment.
Definition at line 80 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for latitude increment.
Definition at line 81 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onBaseLatSliderChanged(), onLatIncSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for latitude increment.
Definition at line 82 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onLatIncSliderChanged(), and refreshWidgetStates().
|
private |
Label for the increment type (degrees/radians)
Definition at line 83 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the longitude domain.
Definition at line 108 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the longitude range Selection for the longitude extent source (Map, Cube, Manual)
Definition at line 105 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the longitude increment.
Definition at line 85 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for longitude increment.
Definition at line 86 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onBaseLonSliderChanged(), onLonIncSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for longitude increment.
Definition at line 87 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onLonIncSliderChanged(), and refreshWidgetStates().
|
private |
Label for the increment type (degrees/radians)
Definition at line 88 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Label for the maximum latitude.
Definition at line 100 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for the maximum latitude.
Definition at line 101 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onMaxLatExtentSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for the maximum latitude.
Definition at line 102 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onMaxLatExtentSliderChanged(), onMinLatExtentSliderChanged(), and refreshWidgetStates().
|
private |
Label for the maximum longitude.
Definition at line 115 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for the maximum longitude.
Definition at line 116 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onMaxLonExtentSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for the maximum longitude.
Definition at line 117 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onMaxLonExtentSliderChanged(), onMinLonExtentSliderChanged(), and refreshWidgetStates().
|
private |
Label for the minimum latitude.
Definition at line 95 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for the minimum latitude.
Definition at line 96 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onMinLatExtentSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for the minimum latitude.
Definition at line 97 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onMaxLatExtentSliderChanged(), onMinLatExtentSliderChanged(), and refreshWidgetStates().
|
private |
Label for the minimum longitude.
Definition at line 110 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().
|
private |
Input for the minimum longitude.
Definition at line 111 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), onMinLonExtentSliderChanged(), readSettings(), and refreshWidgetStates().
|
private |
Input for the minimumlongitude.
Definition at line 112 of file MosaicGridToolConfigDialog.h.
Referenced by MosaicGridToolConfigDialog(), onMaxLonExtentSliderChanged(), onMinLonExtentSliderChanged(), and refreshWidgetStates().
|
private |
The tool we're configuring.
True to display grid.
Definition at line 67 of file MosaicGridToolConfigDialog.h.
Referenced by applySettings(), MosaicGridToolConfigDialog(), readSettings(), and refreshWidgetStates().