Loading isis/src/qisis/objs/Directory/JigsawWorkOrder.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,20 @@ namespace Isis { } /** * This method is no longer necessary and will remain commented out until it needs to be implemented * * If WorkOrder:setupExecution() returns true, this creates a setup dialog. * * When the setup is successful (i.e. the user does not cancel the dialog), this work order * will be read to execute. * * @return bool Returns True if setup dialog for the bundle adjustment is successful. */ // bool JigsawWorkOrder::setupExecution() { // } /** * This check is used by Directory::supportedActions(DataType data). * Loading isis/src/qisis/objs/JigsawRunWidget/JigsawRunWidget.cpp +10 −26 Original line number Diff line number Diff line Loading @@ -29,9 +29,9 @@ namespace Isis { /** * @brief Constructor. * * Creates a dialog for running a jigsaw (bundle adjustment) and changing the solve settings. * Creates a widget for running a jigsaw (bundle adjustment) and changing the solve settings. * * @param Project *project Pointer to the project this dialog belongs to. * @param Project *project Pointer to the project this widget belongs to. * @param QWidget *parent Pointer to parent widget. */ JigsawRunWidget::JigsawRunWidget(Project *project, QWidget *parent) : m_ui(new Ui::JigsawRunWidget) { Loading @@ -44,11 +44,11 @@ namespace Isis { /** * @brief Constructor that takes bundle settings and a selected control. * * Creates a dialog after the jigsaw solve settings have been set up and a control has been * Creates a widget after the jigsaw solve settings have been set up and a control has been * selected. * * @param Project *project Pointer to the project this dialog belongs to. * @param BundleSettingsQsp bundleSettings Settings to give to this dialog to use for a jigsaw. * @param Project *project Pointer to the project this widget belongs to. * @param BundleSettingsQsp bundleSettings Settings to give to this widget to use for a jigsaw. * @param Control *selectedControl Pointer to the selected control to adjust. * @param QWidget *parent Pointer to the parent widget. */ Loading Loading @@ -84,30 +84,21 @@ namespace Isis { // If aborting a bundle, only close will be enabled. m_accept = new QPushButton(tr("&Accept")); m_reject = new QPushButton(tr("&Reject")); m_close = new QPushButton(tr("&Close")); m_accept->setEnabled(false); m_reject->setEnabled(false); m_ui->JigsawRunButton->setEnabled(false); m_close->setEnabled(true); // Add tool tips to the buttons m_accept->setToolTip(tr("Accept the bundle results and save them to the project.")); m_reject->setToolTip(tr("Reject and discard the bundle results. This resets the dialog.")); m_close->setToolTip(tr("Close this dialog.")); m_reject->setToolTip(tr("Reject and discard the bundle results. This resets the widget.")); // Add the buttons to the QDialogButtonBox defined in the UI file. // Note that according to the Qt doc'n for QDialogButtonBox, addButton() causes the // dialog box to take ownership of the QPushButton's, so we don't manually manage their memory. m_ui->buttonBox->addButton(m_accept, QDialogButtonBox::ActionRole); m_ui->buttonBox->addButton(m_reject, QDialogButtonBox::ActionRole); m_ui->buttonBox->addButton(m_close, QDialogButtonBox::AcceptRole); // Accept will handle saving the results. connect(m_accept, SIGNAL(clicked(bool)), this, SLOT(acceptBundleResults())); connect(m_accept, SIGNAL(clicked(bool)), this, SLOT(acceptBundleResults())); // Reject will handle discarding the results. connect(m_reject, SIGNAL(clicked(bool)), this, SLOT(rejectBundleResults())); connect(m_reject, SIGNAL(clicked(bool)), this, SLOT(rejectBundleResults())); m_bundleAdjust = NULL; m_bundleSolutionInfo = NULL; Loading Loading @@ -271,7 +262,6 @@ namespace Isis { // change "Run" button text to "Abort" (or maybe pause) m_bRunning = true; m_close->setEnabled(false); m_ui->JigsawRunButton->setText("&Abort"); update(); } Loading Loading @@ -469,8 +459,6 @@ namespace Isis { // Make sure that when we add our results, we let the use last settings box be checkable. m_ui->useLastSettings->setEnabled(true); // Once the bundle has been accepted, re-enable the close button m_close->setEnabled(true); // m_ui->convergenceStatusLabel->setText("Bundle converged, camera pointing updated"); //This bundle was bad so we should delete all remenants. Loading @@ -493,7 +481,6 @@ namespace Isis { // Disable the "Accept" and "Reject" buttons, enable the "Close" button m_accept->setEnabled(false); m_reject->setEnabled(false); m_close->setEnabled(true); // Clear the dialog so the lcd's are 0 and the status text is cleared. clearDialog(); Loading Loading @@ -559,9 +546,6 @@ namespace Isis { updateScrollBar(); update(); // Re-enable the close button m_close->setEnabled(true); } Loading Loading @@ -594,9 +578,9 @@ namespace Isis { /** * @brief Notifies the dialog that the bundle thread has finished. * @brief Notifies the widget that the bundle thread has finished. * * This slot is used to notify the dialog that the bundle has finished. The bundle thread * This slot is used to notify the widget that the bundle has finished. The bundle thread * finishes when the bundle adjust finishes (either successfully or unsuccessfully, or if the * user aborts the run). */ Loading isis/src/qisis/objs/JigsawRunWidget/JigsawRunWidget.h +2 −3 Original line number Diff line number Diff line Loading @@ -121,9 +121,8 @@ namespace Isis { private: bool m_bRunning; /**< Indicates whether or not the bundle adjust is running. */ QPushButton *m_accept; /**< Dialog's accept button that is used to save the bundle results. */ QPushButton *m_close; /**< Dialog's close button that is used to close the dialog. */ QPushButton *m_reject; /**< Dialog's reject button that is used to discard the results. */ QPushButton *m_accept; /**< widget's accept button that is used to save the bundle results. */ QPushButton *m_reject; /**< widget's reject button that is used to discard the results. */ /** * Functor used to copy images to a specified destination directory. This is used by Loading isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.cpp +288 −98 File changed.Preview size limit exceeded, changes collapsed. Show changes isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.h +22 −8 Original line number Diff line number Diff line Loading @@ -61,6 +61,8 @@ namespace Isis { * fred.net, the output filename QLineEdit is automatically changed to * fred-out.net. The user can always manually change the output control * net name to anything they choose. * @history 2018-06-01 Christopher Combs - Added support for ui changes, exclusive options and * input validators. */ class JigsawSetupDialog : public QDialog { Loading @@ -84,21 +86,33 @@ namespace Isis { private slots: void on_pointRadiusSigmaCheckBox_toggled(bool checked); //void on_projectItemSelectionChanged(const QList<ProjectItem *> selectedItems); void on_radiusCheckBox_toggled(bool checked); //void on_outlierRejectionCheckBox_toggled(bool checked); // general tab void on_positionComboBox_currentIndexChanged(int index); void on_pointingComboBox_currentIndexChanged(int index); void on_controlNetworkComboBox_currentTextChanged(const QString &arg1); // void on_positionComboBox_currentIndexChanged(int index); // void on_pointingComboBox_currentIndexChanged(int index); void on_inputControlNetCombo_currentTextChanged(const QString &arg1); // general tab - line edit validators void on_pointLatitudeSigmaLineEdit_textChanged(const QString &arg1); void on_pointLongitudeSigmaLineEdit_textChanged(const QString &arg1); void on_pointRadiusSigmaLineEdit_textChanged(const QString &arg1); void on_outlierRejectionMultiplierLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel1QuantileLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel2QuantileLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel3QuantileLineEdit_textChanged(const QString &arg1); void on_sigma0ThresholdLineEdit_textChanged(const QString &arg1); void on_maximumIterationsLineEdit_textChanged(const QString &arg1); // maximum liklihood tab // general tab - outlier rejection exclusivity lock/unlocks void on_maximumLikelihoodModel1ComboBox_currentIndexChanged(int index); void on_maximumLikelihoodModel2ComboBox_currentIndexChanged(int index); void on_maximumLikelihoodModel3ComboBox_currentIndexChanged(int index); void on_outlierRejectionCheckBox_stateChanged(int arg1); // target body tab void on_poleRaCheckBox_stateChanged(int arg1); Loading @@ -110,7 +124,7 @@ namespace Isis { void on_radiiButtonGroupClicked(int arg1); void on_aRadiusLineEdit_textChanged(const QString &arg1); void on_targetBodyComboBox_currentIndexChanged(int index); void on_spkSolveDegreeSpinBox_2_valueChanged(int arg1); void on_spkSolveDegreeSpinBox_valueChanged(int arg1); void on_rightAscensionLineEdit_textChanged(const QString &arg1); void on_declinationLineEdit_textChanged(const QString &arg1); void on_rightAscensionVelocityLineEdit_textChanged(const QString &arg1); Loading Loading
isis/src/qisis/objs/Directory/JigsawWorkOrder.cpp +14 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,20 @@ namespace Isis { } /** * This method is no longer necessary and will remain commented out until it needs to be implemented * * If WorkOrder:setupExecution() returns true, this creates a setup dialog. * * When the setup is successful (i.e. the user does not cancel the dialog), this work order * will be read to execute. * * @return bool Returns True if setup dialog for the bundle adjustment is successful. */ // bool JigsawWorkOrder::setupExecution() { // } /** * This check is used by Directory::supportedActions(DataType data). * Loading
isis/src/qisis/objs/JigsawRunWidget/JigsawRunWidget.cpp +10 −26 Original line number Diff line number Diff line Loading @@ -29,9 +29,9 @@ namespace Isis { /** * @brief Constructor. * * Creates a dialog for running a jigsaw (bundle adjustment) and changing the solve settings. * Creates a widget for running a jigsaw (bundle adjustment) and changing the solve settings. * * @param Project *project Pointer to the project this dialog belongs to. * @param Project *project Pointer to the project this widget belongs to. * @param QWidget *parent Pointer to parent widget. */ JigsawRunWidget::JigsawRunWidget(Project *project, QWidget *parent) : m_ui(new Ui::JigsawRunWidget) { Loading @@ -44,11 +44,11 @@ namespace Isis { /** * @brief Constructor that takes bundle settings and a selected control. * * Creates a dialog after the jigsaw solve settings have been set up and a control has been * Creates a widget after the jigsaw solve settings have been set up and a control has been * selected. * * @param Project *project Pointer to the project this dialog belongs to. * @param BundleSettingsQsp bundleSettings Settings to give to this dialog to use for a jigsaw. * @param Project *project Pointer to the project this widget belongs to. * @param BundleSettingsQsp bundleSettings Settings to give to this widget to use for a jigsaw. * @param Control *selectedControl Pointer to the selected control to adjust. * @param QWidget *parent Pointer to the parent widget. */ Loading Loading @@ -84,30 +84,21 @@ namespace Isis { // If aborting a bundle, only close will be enabled. m_accept = new QPushButton(tr("&Accept")); m_reject = new QPushButton(tr("&Reject")); m_close = new QPushButton(tr("&Close")); m_accept->setEnabled(false); m_reject->setEnabled(false); m_ui->JigsawRunButton->setEnabled(false); m_close->setEnabled(true); // Add tool tips to the buttons m_accept->setToolTip(tr("Accept the bundle results and save them to the project.")); m_reject->setToolTip(tr("Reject and discard the bundle results. This resets the dialog.")); m_close->setToolTip(tr("Close this dialog.")); m_reject->setToolTip(tr("Reject and discard the bundle results. This resets the widget.")); // Add the buttons to the QDialogButtonBox defined in the UI file. // Note that according to the Qt doc'n for QDialogButtonBox, addButton() causes the // dialog box to take ownership of the QPushButton's, so we don't manually manage their memory. m_ui->buttonBox->addButton(m_accept, QDialogButtonBox::ActionRole); m_ui->buttonBox->addButton(m_reject, QDialogButtonBox::ActionRole); m_ui->buttonBox->addButton(m_close, QDialogButtonBox::AcceptRole); // Accept will handle saving the results. connect(m_accept, SIGNAL(clicked(bool)), this, SLOT(acceptBundleResults())); connect(m_accept, SIGNAL(clicked(bool)), this, SLOT(acceptBundleResults())); // Reject will handle discarding the results. connect(m_reject, SIGNAL(clicked(bool)), this, SLOT(rejectBundleResults())); connect(m_reject, SIGNAL(clicked(bool)), this, SLOT(rejectBundleResults())); m_bundleAdjust = NULL; m_bundleSolutionInfo = NULL; Loading Loading @@ -271,7 +262,6 @@ namespace Isis { // change "Run" button text to "Abort" (or maybe pause) m_bRunning = true; m_close->setEnabled(false); m_ui->JigsawRunButton->setText("&Abort"); update(); } Loading Loading @@ -469,8 +459,6 @@ namespace Isis { // Make sure that when we add our results, we let the use last settings box be checkable. m_ui->useLastSettings->setEnabled(true); // Once the bundle has been accepted, re-enable the close button m_close->setEnabled(true); // m_ui->convergenceStatusLabel->setText("Bundle converged, camera pointing updated"); //This bundle was bad so we should delete all remenants. Loading @@ -493,7 +481,6 @@ namespace Isis { // Disable the "Accept" and "Reject" buttons, enable the "Close" button m_accept->setEnabled(false); m_reject->setEnabled(false); m_close->setEnabled(true); // Clear the dialog so the lcd's are 0 and the status text is cleared. clearDialog(); Loading Loading @@ -559,9 +546,6 @@ namespace Isis { updateScrollBar(); update(); // Re-enable the close button m_close->setEnabled(true); } Loading Loading @@ -594,9 +578,9 @@ namespace Isis { /** * @brief Notifies the dialog that the bundle thread has finished. * @brief Notifies the widget that the bundle thread has finished. * * This slot is used to notify the dialog that the bundle has finished. The bundle thread * This slot is used to notify the widget that the bundle has finished. The bundle thread * finishes when the bundle adjust finishes (either successfully or unsuccessfully, or if the * user aborts the run). */ Loading
isis/src/qisis/objs/JigsawRunWidget/JigsawRunWidget.h +2 −3 Original line number Diff line number Diff line Loading @@ -121,9 +121,8 @@ namespace Isis { private: bool m_bRunning; /**< Indicates whether or not the bundle adjust is running. */ QPushButton *m_accept; /**< Dialog's accept button that is used to save the bundle results. */ QPushButton *m_close; /**< Dialog's close button that is used to close the dialog. */ QPushButton *m_reject; /**< Dialog's reject button that is used to discard the results. */ QPushButton *m_accept; /**< widget's accept button that is used to save the bundle results. */ QPushButton *m_reject; /**< widget's reject button that is used to discard the results. */ /** * Functor used to copy images to a specified destination directory. This is used by Loading
isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.cpp +288 −98 File changed.Preview size limit exceeded, changes collapsed. Show changes
isis/src/qisis/objs/JigsawSetupDialog/JigsawSetupDialog.h +22 −8 Original line number Diff line number Diff line Loading @@ -61,6 +61,8 @@ namespace Isis { * fred.net, the output filename QLineEdit is automatically changed to * fred-out.net. The user can always manually change the output control * net name to anything they choose. * @history 2018-06-01 Christopher Combs - Added support for ui changes, exclusive options and * input validators. */ class JigsawSetupDialog : public QDialog { Loading @@ -84,21 +86,33 @@ namespace Isis { private slots: void on_pointRadiusSigmaCheckBox_toggled(bool checked); //void on_projectItemSelectionChanged(const QList<ProjectItem *> selectedItems); void on_radiusCheckBox_toggled(bool checked); //void on_outlierRejectionCheckBox_toggled(bool checked); // general tab void on_positionComboBox_currentIndexChanged(int index); void on_pointingComboBox_currentIndexChanged(int index); void on_controlNetworkComboBox_currentTextChanged(const QString &arg1); // void on_positionComboBox_currentIndexChanged(int index); // void on_pointingComboBox_currentIndexChanged(int index); void on_inputControlNetCombo_currentTextChanged(const QString &arg1); // general tab - line edit validators void on_pointLatitudeSigmaLineEdit_textChanged(const QString &arg1); void on_pointLongitudeSigmaLineEdit_textChanged(const QString &arg1); void on_pointRadiusSigmaLineEdit_textChanged(const QString &arg1); void on_outlierRejectionMultiplierLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel1QuantileLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel2QuantileLineEdit_textChanged(const QString &arg1); void on_maximumLikelihoodModel3QuantileLineEdit_textChanged(const QString &arg1); void on_sigma0ThresholdLineEdit_textChanged(const QString &arg1); void on_maximumIterationsLineEdit_textChanged(const QString &arg1); // maximum liklihood tab // general tab - outlier rejection exclusivity lock/unlocks void on_maximumLikelihoodModel1ComboBox_currentIndexChanged(int index); void on_maximumLikelihoodModel2ComboBox_currentIndexChanged(int index); void on_maximumLikelihoodModel3ComboBox_currentIndexChanged(int index); void on_outlierRejectionCheckBox_stateChanged(int arg1); // target body tab void on_poleRaCheckBox_stateChanged(int arg1); Loading @@ -110,7 +124,7 @@ namespace Isis { void on_radiiButtonGroupClicked(int arg1); void on_aRadiusLineEdit_textChanged(const QString &arg1); void on_targetBodyComboBox_currentIndexChanged(int index); void on_spkSolveDegreeSpinBox_2_valueChanged(int arg1); void on_spkSolveDegreeSpinBox_valueChanged(int arg1); void on_rightAscensionLineEdit_textChanged(const QString &arg1); void on_declinationLineEdit_textChanged(const QString &arg1); void on_rightAscensionVelocityLineEdit_textChanged(const QString &arg1); Loading