File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
Isis Developer Reference
MosaicGridToolConfigDialog.h
Go to the documentation of this file.
1 #ifndef MosaicGridToolConfigDialog_h
2 #define MosaicGridToolConfigDialog_h
3 
4 #include <QDialog>
5 #include <QPointer>
6 
7 class QCheckBox;
8 class QComboBox;
9 class QLabel;
10 class QLineEdit;
11 class QPushButton;
12 class QSlider;
13 
14 namespace Isis {
15  class MosaicGridTool;
16 
38  Q_OBJECT
39 
40  public:
42  QWidget *parent);
44 
45  public slots:
46  void applySettings();
47  void applySettings(bool shouldReadSettings);
48  void readSettings();
49  void refreshWidgetStates();
50 
53  void onLatIncSliderChanged();
54  void onLonIncSliderChanged();
55  void onExtentTypeChanged();
60 
61  private:
62  Q_DISABLE_COPY(MosaicGridToolConfigDialog);
63  void refreshWidgetStates(bool canAutoApply);
64 
65  MosaicGridTool *m_tool;
66 
67  QPointer<QCheckBox> m_showGridCheckBox;
68  QPointer<QCheckBox> m_autoGridCheckBox;
69 
70  QPointer<QLabel> m_baseLatLabel;
71  QPointer<QLineEdit> m_baseLatLineEdit;
72  QPointer<QSlider> m_baseLatSlider;
73  QPointer<QLabel> m_baseLatTypeLabel;
74 
75  QPointer<QLabel> m_baseLonLabel;
76  QPointer<QLineEdit> m_baseLonLineEdit;
77  QPointer<QSlider> m_baseLonSlider;
78  QPointer<QLabel> m_baseLonTypeLabel;
79 
80  QPointer<QLabel> m_latIncLabel;
81  QPointer<QLineEdit> m_latIncLineEdit;
82  QPointer<QSlider> m_latIncSlider;
83  QPointer<QLabel> m_latIncTypeLabel;
84 
85  QPointer<QLabel> m_lonIncLabel;
86  QPointer<QLineEdit> m_lonIncLineEdit;
87  QPointer<QSlider> m_lonIncSlider;
88  QPointer<QLabel> m_lonIncTypeLabel;
89 
90  QPointer<QLabel> m_latExtentLabel;
91  QPointer<QComboBox> m_latExtentCombo;
93  QPointer<QLabel> m_latExtentTypeLabel;
94 
95  QPointer<QLabel> m_minLatExtentLabel;
96  QPointer<QLineEdit> m_minLatExtentLineEdit;
97  QPointer<QSlider> m_minLatExtentSlider;
98  QPointer<QLabel> m_minLatExtentTypeLabel;
99 
100  QPointer<QLabel> m_maxLatExtentLabel;
101  QPointer<QLineEdit> m_maxLatExtentLineEdit;
102  QPointer<QSlider> m_maxLatExtentSlider;
103  QPointer<QLabel> m_maxLatExtentTypeLabel;
104 
105  QPointer<QLabel> m_lonExtentLabel;
106  QPointer<QComboBox> m_lonExtentCombo;
108  QPointer<QLabel> m_lonDomainLabel;
109 
110  QPointer<QLabel> m_minLonExtentLabel;
111  QPointer<QLineEdit> m_minLonExtentLineEdit;
112  QPointer<QSlider> m_minLonExtentSlider;
113  QPointer<QLabel> m_minLonExtentTypeLabel;
114 
115  QPointer<QLabel> m_maxLonExtentLabel;
116  QPointer<QLineEdit> m_maxLonExtentLineEdit;
117  QPointer<QSlider> m_maxLonExtentSlider;
118  QPointer<QLabel> m_maxLonExtentTypeLabel;
119 
120  QPointer<QLabel> m_densityLabel;
121  QPointer<QLineEdit> m_densityEdit;
122 
123  QPointer<QCheckBox> m_autoApplyCheckBox;
124  };
125 }
126 
127 #endif
Isis::MosaicGridToolConfigDialog::onMinLonExtentSliderChanged
void onMinLonExtentSliderChanged()
Updates the corresponding line edit when the minLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:804
Isis::MosaicGridTool::setBaseLon
void setBaseLon(Longitude baseLon)
Modify the base longitude.
Definition: MosaicGridTool.cpp:281
Isis::MosaicGridToolConfigDialog::onMaxLonExtentSliderChanged
void onMaxLonExtentSliderChanged()
Updates the corresponding line edit when the maxLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:817
Isis::Angle::Degrees
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
Isis::MosaicGridTool::density
int density()
The density or resolution of the grid.
Definition: MosaicGridTool.cpp:113
QWidget
Isis::MosaicGridTool::maxLon
Longitude maxLon()
The maximum longitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:211
Isis::MosaicGridTool::latExtents
GridExtentSource latExtents()
The extent type (Map, Cubes, Manual) for the latitude.
Definition: MosaicGridTool.cpp:133
Isis::MosaicGridTool::setBaseLat
void setBaseLat(Latitude baseLat)
Modify the base latitude.
Definition: MosaicGridTool.cpp:271
Isis::MosaicSceneWidget::getProjection
Projection * getProjection() const
Definition: MosaicSceneWidget.h:170
MosaicSceneWidget.h
Isis::Latitude
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
Isis::MosaicGridTool
This controls the 'Grid' abilities in the MosaicSceneWidget.
Definition: MosaicGridTool.h:53
Isis::MosaicGridToolConfigDialog::MosaicGridToolConfigDialog
MosaicGridToolConfigDialog(MosaicGridTool *tool, QWidget *parent)
Create a config dialog that configures the given MosaicGridTool.
Definition: MosaicGridToolConfigDialog.cpp:34
Isis::MosaicGridTool::clearGrid
void clearGrid()
Clears the grid from the scene.
Definition: MosaicGridTool.cpp:781
Isis::Latitude::planetographic
double planetographic(Angle::Units units=Angle::Radians) const
Get the latitude in the planetographic coordinate system.
Definition: Latitude.cpp:315
Isis::MosaicGridToolConfigDialog::onLatIncSliderChanged
void onLatIncSliderChanged()
Updates the corresponding line edit when the latIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:746
Isis::MosaicGridTool::Manual
@ Manual
The grid will be drawn using the extents that the user specifies.
Definition: MosaicGridTool.h:70
Isis::MosaicGridToolConfigDialog
Configure user's settings for the grid tool.
Definition: MosaicGridToolConfigDialog.h:37
Isis::MosaicGridTool::domainMaxLon
Longitude domainMaxLon()
Definition: MosaicGridTool.cpp:691
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
Isis::MosaicGridTool::drawGrid
void drawGrid()
Creates the GridGraphicsItem that will draw the grid.
Definition: MosaicGridTool.cpp:835
PvlGroup.h
Isis::MosaicGridTool::GridExtentSource
GridExtentSource
Definition: MosaicGridTool.h:57
Longitude.h
Isis::MosaicGridTool::autoGrid
void autoGrid(bool draw)
Calculates the lat/lon increments from the bounding rectangle of the open cubes.
Definition: MosaicGridTool.cpp:715
Isis::MosaicGridTool::setDensity
void setDensity(int density)
Modify the density.
Definition: MosaicGridTool.cpp:291
Isis::MosaicGridToolConfigDialog::~MosaicGridToolConfigDialog
~MosaicGridToolConfigDialog()
Clean up allocated memory.
Definition: MosaicGridToolConfigDialog.cpp:394
Isis::MosaicGridToolConfigDialog::onLonIncSliderChanged
void onLonIncSliderChanged()
Updates the corresponding line edit when the lonIncSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:754
Isis::MosaicGridTool::showGrid
bool showGrid()
True if grid is displayed.
Definition: MosaicGridTool.cpp:251
Isis::MosaicGridToolConfigDialog::onBaseLonSliderChanged
void onBaseLonSliderChanged()
Updates the corresponding line edit when the baseLonSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:737
Isis::MosaicGridToolConfigDialog::onMaxLatExtentSliderChanged
void onMaxLatExtentSliderChanged()
Updates the corresponding line edit when the maxLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:775
Isis::MosaicGridTool::setLatInc
void setLatInc(Angle latInc)
Modify the latitude increment.
Definition: MosaicGridTool.cpp:413
Isis::MosaicGridTool::domainMinLon
Longitude domainMinLon()
Definition: MosaicGridTool.cpp:673
QComboBox
Isis::Longitude
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
MosaicGridTool.h
Isis::MosaicGridTool::setLatExtents
void setLatExtents(GridExtentSource source, Latitude minLat, Latitude maxLat)
Set the maximum and minimum latitude of the grid.
Definition: MosaicGridTool.cpp:303
Isis::MosaicGridTool::setShowGrid
void setShowGrid(bool show)
Modify the check state of the checkbox.
Definition: MosaicGridTool.cpp:549
Isis::MosaicGridTool::setLonExtents
void setLonExtents(GridExtentSource source, Longitude minLon, Longitude maxLon)
Set the maximum and minimum longitude of the grid.
Definition: MosaicGridTool.cpp:427
Isis::MosaicGridTool::Map
@ Map
The grid will be drawn using the extents from the map projection.
Definition: MosaicGridTool.h:61
Latitude.h
Isis::MosaicGridTool::latInc
Angle latInc()
The angle of the latitude increment.
Definition: MosaicGridTool.cpp:123
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::MosaicGridToolConfigDialog::onExtentTypeChanged
void onExtentTypeChanged()
Updates the dialog when the lat or lon extent source is changed.
Definition: MosaicGridToolConfigDialog.cpp:790
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::MosaicGridToolConfigDialog::onBaseLatSliderChanged
void onBaseLatSliderChanged()
Updates the corresponding line edit when the baseLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:728
Isis::toInt
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
Isis::MosaicGridTool::lonDomain
QString lonDomain()
The longitude domain of the projection of the scene.
Definition: MosaicGridTool.cpp:162
Isis::Projection::Mapping
virtual PvlGroup Mapping()=0
Isis::MosaicGridToolConfigDialog::applySettings
void applySettings()
Slot that calls applySettings with true to call readSettings also.
Definition: MosaicGridToolConfigDialog.cpp:536
Isis::MosaicGridTool::baseLat
Latitude baseLat()
The base latitude.
Definition: MosaicGridTool.cpp:92
Isis::MosaicGridTool::maxLat
Latitude maxLat()
The maximum latitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:201
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::Angle
Defines an angle and provides unit conversions.
Definition: Angle.h:45
Isis::MosaicGridToolConfigDialog::refreshWidgetStates
void refreshWidgetStates()
Calls the private method refreshWidgetStates with true as the argument in order to have refreshWidget...
Definition: MosaicGridToolConfigDialog.cpp:598
Isis::MosaicGridTool::autoGridCheckBox
bool autoGridCheckBox()
True if checked.
Definition: MosaicGridTool.cpp:82
Isis::MosaicGridTool::minLat
Latitude minLat()
The minimum latitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:221
IException.h
Isis::MosaicGridTool::setAutoGridCheckBox
void setAutoGridCheckBox(bool checked)
Modify the check state of the checkbox.
Definition: MosaicGridTool.cpp:261
MosaicGridToolConfigDialog.h
Isis::MosaicGridTool::setLonInc
void setLonInc(Angle lonInc)
Modify the longitude increment.
Definition: MosaicGridTool.cpp:534
Angle.h
Isis::Angle::degrees
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
Projection.h
Isis::MosaicGridToolConfigDialog::readSettings
void readSettings()
Read the tool's current settings and set the widget states to match.
Definition: MosaicGridToolConfigDialog.cpp:544
QDialog
Isis::MosaicGridTool::Cubes
@ Cubes
The grid will be drawn using the extents from the bounding rectangle of the open cubes.
Definition: MosaicGridTool.h:66
Isis::MosaicGridTool::latType
QString latType()
The latitude type (planetocentric/planetographic) of the projection of the scene.
Definition: MosaicGridTool.cpp:143
Isis::MosaicGridTool::minLon
Longitude minLon()
The minimum longitude used to determine the grid's extents and increments.
Definition: MosaicGridTool.cpp:231
Isis::MosaicGridTool::lonExtents
GridExtentSource lonExtents()
The extent type (Map, Cubes, Manual) for the longitude.
Definition: MosaicGridTool.cpp:181
Isis::MosaicGridToolConfigDialog::onMinLatExtentSliderChanged
void onMinLatExtentSliderChanged()
Updates the corresponding line edit when the minLatSlider changes.
Definition: MosaicGridToolConfigDialog.cpp:762
Isis::MosaicGridTool::lonInc
Angle lonInc()
The angle of the longitude increment.
Definition: MosaicGridTool.cpp:191
Isis::MosaicGridTool::sceneWidget
MosaicSceneWidget * sceneWidget()
Definition: MosaicGridTool.cpp:241
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::MosaicGridTool::baseLon
Longitude baseLon()
The base longitude.
Definition: MosaicGridTool.cpp:102

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:11:51