Isis 3 Programmer Reference
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. 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

MosaicGridToolm_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< QComboBoxm_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< QComboBoxm_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...
 

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

◆ MosaicGridToolConfigDialog()

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

◆ ~MosaicGridToolConfigDialog()

Isis::MosaicGridToolConfigDialog::~MosaicGridToolConfigDialog ( )

Clean up allocated memory.

Definition at line 394 of file MosaicGridToolConfigDialog.cpp.

Member Function Documentation

◆ applySettings [1/2]

void Isis::MosaicGridToolConfigDialog::applySettings ( )
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().

◆ applySettings [2/2]

◆ onBaseLatSliderChanged

void Isis::MosaicGridToolConfigDialog::onBaseLatSliderChanged ( )
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().

◆ onBaseLonSliderChanged

void Isis::MosaicGridToolConfigDialog::onBaseLonSliderChanged ( )
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().

◆ onExtentTypeChanged

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 790 of file MosaicGridToolConfigDialog.cpp.

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

Referenced by MosaicGridToolConfigDialog().

◆ onLatIncSliderChanged

void Isis::MosaicGridToolConfigDialog::onLatIncSliderChanged ( )
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().

◆ onLonIncSliderChanged

void Isis::MosaicGridToolConfigDialog::onLonIncSliderChanged ( )
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().

◆ onMaxLatExtentSliderChanged

void Isis::MosaicGridToolConfigDialog::onMaxLatExtentSliderChanged ( )
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().

◆ onMaxLonExtentSliderChanged

void Isis::MosaicGridToolConfigDialog::onMaxLonExtentSliderChanged ( )
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().

◆ onMinLatExtentSliderChanged

void Isis::MosaicGridToolConfigDialog::onMinLatExtentSliderChanged ( )
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().

◆ onMinLonExtentSliderChanged

void Isis::MosaicGridToolConfigDialog::onMinLonExtentSliderChanged ( )
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().

◆ readSettings

◆ refreshWidgetStates [1/2]

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 598 of file MosaicGridToolConfigDialog.cpp.

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

◆ refreshWidgetStates() [2/2]

Member Data Documentation

◆ m_autoApplyCheckBox

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().

◆ m_autoGridCheckBox

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().

◆ m_baseLatLabel

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().

◆ m_baseLatLineEdit

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

◆ m_baseLatSlider

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().

◆ m_baseLatTypeLabel

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().

◆ m_baseLonLabel

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().

◆ m_baseLonLineEdit

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

◆ m_baseLonSlider

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().

◆ m_baseLonTypeLabel

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().

◆ m_densityEdit

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

◆ m_densityLabel

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().

◆ m_latExtentLabel

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().

◆ m_latIncLabel

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().

◆ m_latIncLineEdit

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

◆ m_latIncSlider

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().

◆ m_latIncTypeLabel

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().

◆ m_lonDomainLabel

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().

◆ m_lonExtentLabel

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().

◆ m_lonIncLabel

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().

◆ m_lonIncLineEdit

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

◆ m_lonIncSlider

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().

◆ m_lonIncTypeLabel

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().

◆ m_maxLatExtentLabel

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().

◆ m_maxLatExtentLineEdit

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

◆ m_maxLatExtentSlider

QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_maxLatExtentSlider
private

◆ m_maxLonExtentLabel

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().

◆ m_maxLonExtentLineEdit

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().

◆ m_maxLonExtentSlider

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

◆ m_minLatExtentLabel

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().

◆ m_minLatExtentLineEdit

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

◆ m_minLatExtentSlider

QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_minLatExtentSlider
private

◆ m_minLonExtentLabel

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().

◆ m_minLonExtentLineEdit

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().

◆ m_minLonExtentSlider

QPointer<QSlider> Isis::MosaicGridToolConfigDialog::m_minLonExtentSlider
private

◆ m_showGridCheckBox

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: