Isis 3.0 Programmer Reference
Back | Home
JigsawWorkOrder.cpp
Go to the documentation of this file.
1 
23 #include "JigsawWorkOrder.h"
24 
25 #include <QtDebug>
26 
27 #include <QDockWidget>
28 #include <QFileDialog>
29 #include <QInputDialog>
30 #include <QMessageBox>
31 
32 #include "Control.h"
33 #include "Directory.h"
34 #include "JigsawDialog.h"
35 #include "Project.h"
36 
37 namespace Isis {
38 
46  WorkOrder(project) {
47  QAction::setText(tr("&Bundle Adjustment..."));
48  QUndoCommand::setText("&Bundle Adjustment...");
49  }
50 
55  WorkOrder(other) {
56  }
57 
62  }
63 
70  return new JigsawWorkOrder(*this);
71  }
72 
80  return (project()->controls().size() > 0 && project()->images().size() > 0);
81  }
82 
89  bool success = WorkOrder::execute();
90 /*
91  if (success) {
92  JigsawDialog* bundledlg = new JigsawDialog(project());
93  bundledlg->setAttribute(Qt::WA_DeleteOnClose);
94  bundledlg->show();
95 // QUndoCommand::setText(tr("&Bundle Adjustment")
96 // .arg(controlList().first()->displayProperties()->displayName()));
97  }
98 */
99  if (success) {
100 // QDockWidget* dock = new QDockWidget();
101 // dock->setMinimumWidth(525);
102 // dock->setMinimumHeight(325);
103 // dock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
104  JigsawDialog* bundledlg = new JigsawDialog(project());
105  bundledlg->setAttribute(Qt::WA_DeleteOnClose);
106  bundledlg->show();
107 // dock->setWidget(bundledlg);
108 // dock->show();
109  }
110 
111  return success;
112  }
113 
123  // depend on types of ourselves.
124  return dynamic_cast<JigsawWorkOrder *>(other);
125  }
126 
132 // TargetInfoWidget *targetInfoWidget =
133 // project()->directory()->addTargetInfoView(targetBody());
134 
135 
136 // if (!targetInfoWidget) {
137 // QString msg = "error displaying target info";
138 // throw IException(IException::Programmer, msg, _FILEINFO_);
139 // }
140  }
141 
147  //delete project()->directory()->cnetEditorViews().last();
148  }
149 }
150 
The main project for cnetsuite.
Definition: Project.h:105
virtual JigsawWorkOrder * clone() const
This method clones the JigsawViewWorkOrder.
bool dependsOn(WorkOrder *other) const
This method returns true if other depends on a JigsawViewWorkOrder.
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1116
JigsawWorkOrder(Project *project)
This method sets the text of the work order.
virtual bool isExecutable()
This check is used by Directory::supportedActions(DataType data).
void syncUndo()
As of 06/06/2016 this method is not implemented as the contents are commented out.
~JigsawWorkOrder()
Destructor.
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
This dialog allows the user to select the bundle adjust parameters, run the bundle, and view the results.
Definition: JigsawDialog.h:41
This work order allows the user to run a bundle adjustment (jigsaw).
bool execute()
If WorkOrder::execute() returns true, this method creates a JigsawDialog.
void syncRedo()
As of 06/06/2016 this method is not implemented as the contents are commented out.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
Definition: WorkOrder.cpp:1078

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 ISIS Support Center
File Modified: 07/12/2023 23:21:30