USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::MosaicGridToolConfigDialog Class Reference

Configure user's settings for the grid tool. More...

#include <MosaicGridToolConfigDialog.h>

Inheritance diagram for Isis::MosaicGridToolConfigDialog:
Inheritance graph
Collaboration diagram for Isis::MosaicGridToolConfigDialog:
Collaboration graph

Public Slots

void applySettings ()
 Slot that calls applySettings with true to call readSettings also.
 
void applySettings (bool shouldReadSettings)
 Apply the user's current settings to the tool.
 
void readSettings ()
 Read the tool's current settings and set the widget states to match.
 
void refreshWidgetStates ()
 Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidgetStates call apply settings.
 
void onBaseLatSliderChanged ()
 Updates the corresponding line edit when the baseLatSlider changes.
 
void onBaseLonSliderChanged ()
 Updates the corresponding line edit when the baseLonSlider changes.
 
void onLatIncSliderChanged ()
 Updates the corresponding line edit when the latIncSlider changes.
 
void onLonIncSliderChanged ()
 Updates the corresponding line edit when the lonIncSlider changes.
 
void onExtentTypeChanged ()
 Updates the dialog when the lat or lon extent source is changed.
 
void onMinLatExtentSliderChanged ()
 Updates the corresponding line edit when the minLatSlider changes.
 
void onMaxLatExtentSliderChanged ()
 Updates the corresponding line edit when the maxLatSlider changes.
 
void onMinLonExtentSliderChanged ()
 Updates the corresponding line edit when the minLonSlider changes.
 
void onMaxLonExtentSliderChanged ()
 Updates the corresponding line edit when the maxLonSlider changes.
 

Public Member Functions

 MosaicGridToolConfigDialog (MosaicGridTool *tool, QWidget *parent)
 Create a config dialog that configures the given MosaicGridTool.
 
 ~MosaicGridToolConfigDialog ()
 Clean up allocated memory.
 

Private Member Functions

 Q_DISABLE_COPY (MosaicGridToolConfigDialog)
 
void refreshWidgetStates (bool canAutoApply)
 Enables or disables widgets depending on the state of the tool.
 

Private Attributes

MosaicGridToolm_tool
 
QPointer< QCheckBox > m_showGridCheckBox
 The tool we're configuring.
 
QPointer< QCheckBox > m_autoGridCheckBox
 True if grid properties come form open cubes.
 
QPointer< QLabel > m_baseLatLabel
 Label for the base latitude.
 
QPointer< QLineEdit > m_baseLatLineEdit
 Input for base latitude.
 
QPointer< QSlider > m_baseLatSlider
 Input for base latitude.
 
QPointer< QLabel > m_baseLatTypeLabel
 Label for the baselat type (degrees/radians)
 
QPointer< QLabel > m_baseLonLabel
 Label for the base longitude.
 
QPointer< QLineEdit > m_baseLonLineEdit
 Input for base longitude.
 
QPointer< QSlider > m_baseLonSlider
 Input for base longitude.
 
QPointer< QLabel > m_baseLonTypeLabel
 Label for the baselon type (degrees/radians)
 
QPointer< QLabel > m_latIncLabel
 Label for the latitude increment.
 
QPointer< QLineEdit > m_latIncLineEdit
 Input for latitude increment.
 
QPointer< QSlider > m_latIncSlider
 Input for latitude increment.
 
QPointer< QLabel > m_latIncTypeLabel
 Label for the increment type (degrees/radians)
 
QPointer< QLabel > m_lonIncLabel
 Label for the longitude increment.
 
QPointer< QLineEdit > m_lonIncLineEdit
 Input for longitude increment.
 
QPointer< QSlider > m_lonIncSlider
 Input for longitude increment.
 
QPointer< QLabel > m_lonIncTypeLabel
 Label for the increment type (degrees/radians)
 
QPointer< QLabel > m_latExtentLabel
 
                                   Label for the latitude range

< Selection for the latitude extent source (Map, Cube, Manual)

 
QPointer< QComboBoxm_latExtentCombo
 
QPointer< QLabel > m_latExtentTypeLabel
 
QPointer< QLabel > m_minLatExtentLabel
 Label for the minimum latitude.
 
QPointer< QLineEdit > m_minLatExtentLineEdit
 Input for the minimum latitude.
 
QPointer< QSlider > m_minLatExtentSlider
 Input for the minimum latitude.
 
QPointer< QLabel > m_minLatExtentTypeLabel
 
QPointer< QLabel > m_maxLatExtentLabel
 Label for the maximum latitude.
 
QPointer< QLineEdit > m_maxLatExtentLineEdit
 Input for the maximum latitude.
 
QPointer< QSlider > m_maxLatExtentSlider
 Input for the maximum latitude.
 
QPointer< QLabel > m_maxLatExtentTypeLabel
 
QPointer< QLabel > m_lonExtentLabel
 
                                   Label for the longitude range

< Selection for the longitude extent source (Map, Cube, Manual)

 
QPointer< QComboBoxm_lonExtentCombo
 
QPointer< QLabel > m_lonDomainLabel
 Label for the longitude domain.
 
QPointer< QLabel > m_minLonExtentLabel
 Label for the minimum longitude.
 
QPointer< QLineEdit > m_minLonExtentLineEdit
 Input for the minimum longitude.
 
QPointer< QSlider > m_minLonExtentSlider
 Input for the minimumlongitude.
 
QPointer< QLabel > m_minLonExtentTypeLabel
 
QPointer< QLabel > m_maxLonExtentLabel
 Label for the maximum longitude.
 
QPointer< QLineEdit > m_maxLonExtentLineEdit
 Input for the maximum longitude.
 
QPointer< QSlider > m_maxLonExtentSlider
 Input for the maximum longitude.
 
QPointer< QLabel > m_maxLonExtentTypeLabel
 
QPointer< QLabel > m_densityLabel
 Label for the grid density.
 
QPointer< QLineEdit > m_densityEdit
 Input for grid density.
 
QPointer< QCheckBox > m_autoApplyCheckBox
 True to applySettings on state change.
 

Detailed Description

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.

Author
2012-07-25 Kimberly Oyama and Steven Lambright
History:
2013-03-19 Steven Lambright - When the mosaic scene's projection is in 180 domain, the longitude extent sliders will now properly range from -180 to
  1. Before they would always be 0-360.

Definition at line 37 of file MosaicGridToolConfigDialog.h.

Constructor & Destructor Documentation

Isis::MosaicGridToolConfigDialog::MosaicGridToolConfigDialog ( MosaicGridTool tool,
QWidget parent 
)
Isis::MosaicGridToolConfigDialog::~MosaicGridToolConfigDialog ( )

Clean up allocated memory.

Definition at line 392 of file MosaicGridToolConfigDialog.cpp.

Member Function Documentation

void Isis::MosaicGridToolConfigDialog::applySettings ( )
slot

Slot that calls applySettings with true to call readSettings also.

Definition at line 534 of file MosaicGridToolConfigDialog.cpp.

Referenced by MosaicGridToolConfigDialog(), onExtentTypeChanged(), and refreshWidgetStates().

void Isis::MosaicGridToolConfigDialog::onBaseLatSliderChanged ( )
slot

Updates the corresponding line edit when the baseLatSlider changes.

Definition at line 726 of file MosaicGridToolConfigDialog.cpp.

References m_baseLatLineEdit, m_baseLatSlider, and m_latIncLineEdit.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onBaseLonSliderChanged ( )
slot

Updates the corresponding line edit when the baseLonSlider changes.

Definition at line 735 of file MosaicGridToolConfigDialog.cpp.

References m_baseLonLineEdit, m_baseLonSlider, and m_lonIncLineEdit.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onExtentTypeChanged ( )
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 788 of file MosaicGridToolConfigDialog.cpp.

References applySettings(), m_densityEdit, and refreshWidgetStates().

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onLatIncSliderChanged ( )
slot

Updates the corresponding line edit when the latIncSlider changes.

Definition at line 744 of file MosaicGridToolConfigDialog.cpp.

References m_latIncLineEdit, and m_latIncSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onLonIncSliderChanged ( )
slot

Updates the corresponding line edit when the lonIncSlider changes.

Definition at line 752 of file MosaicGridToolConfigDialog.cpp.

References m_lonIncLineEdit, and m_lonIncSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onMaxLatExtentSliderChanged ( )
slot

Updates the corresponding line edit when the maxLatSlider changes.

Definition at line 773 of file MosaicGridToolConfigDialog.cpp.

References m_maxLatExtentLineEdit, m_maxLatExtentSlider, and m_minLatExtentSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onMaxLonExtentSliderChanged ( )
slot

Updates the corresponding line edit when the maxLonSlider changes.

Definition at line 815 of file MosaicGridToolConfigDialog.cpp.

References m_maxLonExtentLineEdit, m_maxLonExtentSlider, and m_minLonExtentSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onMinLatExtentSliderChanged ( )
slot

Updates the corresponding line edit when the minLatSlider changes.

Definition at line 760 of file MosaicGridToolConfigDialog.cpp.

References m_maxLatExtentSlider, m_minLatExtentLineEdit, and m_minLatExtentSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::onMinLonExtentSliderChanged ( )
slot

Updates the corresponding line edit when the minLonSlider changes.

Definition at line 802 of file MosaicGridToolConfigDialog.cpp.

References m_maxLonExtentSlider, m_minLonExtentLineEdit, and m_minLonExtentSlider.

Referenced by MosaicGridToolConfigDialog().

void Isis::MosaicGridToolConfigDialog::refreshWidgetStates ( )
slot

Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidgetStates call apply settings.

Definition at line 596 of file MosaicGridToolConfigDialog.cpp.

Referenced by MosaicGridToolConfigDialog(), onExtentTypeChanged(), and readSettings().

Member Data Documentation

QPointer<QCheckBox> Isis::MosaicGridToolConfigDialog::m_autoApplyCheckBox
private

True to applySettings on state change.

Definition at line 123 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), readSettings(), and refreshWidgetStates().

QPointer<QCheckBox> Isis::MosaicGridToolConfigDialog::m_autoGridCheckBox
private

True if grid properties come form open cubes.

Definition at line 68 of file MosaicGridToolConfigDialog.h.

Referenced by applySettings(), MosaicGridToolConfigDialog(), readSettings(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_baseLatLabel
private

Label for the base latitude.

Definition at line 70 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_baseLatLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_baseLatSlider
private

Input for base latitude.

Definition at line 72 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), onBaseLatSliderChanged(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_baseLatTypeLabel
private

Label for the baselat type (degrees/radians)

Definition at line 73 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_baseLonLabel
private

Label for the base longitude.

Definition at line 75 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_baseLonLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_baseLonSlider
private

Input for base longitude.

Definition at line 77 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), onBaseLonSliderChanged(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_baseLonTypeLabel
private

Label for the baselon type (degrees/radians)

Definition at line 78 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_densityEdit
private
QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_densityLabel
private

Label for the grid density.

Definition at line 120 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_latExtentLabel
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().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_latIncLabel
private

Label for the latitude increment.

Definition at line 80 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_latIncLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_latIncSlider
private

Input for latitude increment.

Definition at line 82 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), onLatIncSliderChanged(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_latIncTypeLabel
private

Label for the increment type (degrees/radians)

Definition at line 83 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_lonDomainLabel
private

Label for the longitude domain.

Definition at line 108 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_lonExtentLabel
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().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_lonIncLabel
private

Label for the longitude increment.

Definition at line 85 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_lonIncLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_lonIncSlider
private

Input for longitude increment.

Definition at line 87 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), onLonIncSliderChanged(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_lonIncTypeLabel
private

Label for the increment type (degrees/radians)

Definition at line 88 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_maxLatExtentLabel
private

Label for the maximum latitude.

Definition at line 100 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_maxLatExtentLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_maxLatExtentSlider
private
QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_maxLonExtentLabel
private

Label for the maximum longitude.

Definition at line 115 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_maxLonExtentLineEdit
private

Input for the maximum longitude.

Definition at line 116 of file MosaicGridToolConfigDialog.h.

Referenced by applySettings(), MosaicGridToolConfigDialog(), onMaxLonExtentSliderChanged(), readSettings(), and refreshWidgetStates().

QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_maxLonExtentSlider
private
QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_minLatExtentLabel
private

Label for the minimum latitude.

Definition at line 95 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_minLatExtentLineEdit
private
QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_minLatExtentSlider
private
QPointer<QLabel> Isis::MosaicGridToolConfigDialog::m_minLonExtentLabel
private

Label for the minimum longitude.

Definition at line 110 of file MosaicGridToolConfigDialog.h.

Referenced by MosaicGridToolConfigDialog(), and refreshWidgetStates().

QPointer<QLineEdit> Isis::MosaicGridToolConfigDialog::m_minLonExtentLineEdit
private

Input for the minimum longitude.

Definition at line 111 of file MosaicGridToolConfigDialog.h.

Referenced by applySettings(), MosaicGridToolConfigDialog(), onMinLonExtentSliderChanged(), readSettings(), and refreshWidgetStates().

QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_minLonExtentSlider
private
QPointer<QCheckBox> Isis::MosaicGridToolConfigDialog::m_showGridCheckBox
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().


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