Isis Developer 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... | |
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.
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. |
References applySettings(), Isis::MosaicGridTool::Cubes, Isis::MosaicGridTool::latExtents(), Isis::MosaicGridTool::latType(), Isis::MosaicGridTool::lonDomain(), Isis::MosaicGridTool::lonExtents(), 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.
|
slot |
Slot that calls applySettings with true to call readSettings also.
Referenced by MosaicGridToolConfigDialog(), and onExtentTypeChanged().
|
slot |
Apply the user's current settings to the tool.
Draw or clear the grid depending on the settings.
References _FILEINFO_, Isis::MosaicGridTool::autoGrid(), Isis::MosaicGridTool::clearGrid(), Isis::Angle::Degrees, Isis::MosaicGridTool::drawGrid(), Isis::MosaicSceneWidget::getProjection(), Isis::Projection::Mapping(), 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(), and Isis::IException::Unknown.
|
slot |
Updates the corresponding line edit when the baseLatSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the baseLonSlider changes.
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.
References applySettings(), and refreshWidgetStates().
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the latIncSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the lonIncSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the maxLatSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the maxLonSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the minLatSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Updates the corresponding line edit when the minLonSlider changes.
Referenced by MosaicGridToolConfigDialog().
|
slot |
Read the tool's current settings and set the widget states to match.
References Isis::MosaicGridTool::autoGridCheckBox(), Isis::MosaicGridTool::baseLat(), Isis::MosaicGridTool::baseLon(), Isis::Angle::Degrees, Isis::Angle::degrees(), Isis::MosaicGridTool::density(), Isis::MosaicSceneWidget::getProjection(), Isis::MosaicGridTool::latExtents(), Isis::MosaicGridTool::latInc(), Isis::MosaicGridTool::lonExtents(), Isis::MosaicGridTool::lonInc(), Isis::Projection::Mapping(), 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.
Referenced by MosaicGridToolConfigDialog(), onExtentTypeChanged(), and readSettings().