Isis 3 Programmer Reference
ViewControlNet3DWorkOrder.cpp
Go to the documentation of this file.
1 
24 
25 #include <QFileDialog>
26 #include <QInputDialog>
27 #include <QMessageBox>
28 #include <QtDebug>
29 
30 #include "Control.h"
31 #include "ControlList.h"
32 #include "Directory.h"
33 #include "Project.h"
34 
35 namespace Isis {
36 
42  WorkOrder(project) {
43  QAction::setText(tr("&View ControlNet 3D..."));
44  m_isSavedToHistory = false;
45 }
46 
47 
53  WorkOrder(other) {
54  }
55 
56 
61  }
62 
63 
69  return new ViewControlNet3DWorkOrder(*this);
70  }
71 
72 
79  //tjw 3956
81  if (!controls)
82  return false;
83  return (controls->count() == 1);
84  }
85 
86 
92  bool success = WorkOrder::setupExecution();
93 
94  if (success) {
95 
96 //TODO::Find out why this is commented out.
97 
98 // JigsawDialog* bundledlg = new JigsawDialog(project());
99 // bundledlg->setAttribute(Qt::WA_DeleteOnClose);
100 // bundledlg->show();
101 // QUndoCommand::setText(tr("&Bundle Adjustment")
102 // .arg(controlList().first()->displayProperties()->displayName()));
103  }
104 
105  return success;
106  }
107 
108 
115  // depend on types of ourselves.
116  return dynamic_cast<ViewControlNet3DWorkOrder *>(other);
117  }
118 
119 
124 
125  //project()->directory()->addCnetEditorView(controlList().first());
126  //project()->setClean(false);
127  }
128 
129 
134  //delete project()->directory()->cnetEditorViews().last();
135  }
136 }
bool setupExecution()
Prompt user for any information need to display the control network.
The main project for ipce.
Definition: Project.h:289
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:36
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1275
virtual bool isExecutable(ControlList *controls)
Determines if there is a control net to display.
ViewControlNet3DWorkOrder(Project *project)
Creates a WorkOrder that will display a control net.
This work order displays a control network in 3D in an OpenGL view.
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
virtual ViewControlNet3DWorkOrder * clone() const
Returns a copy of this ViewControlNet3DWorkOrder instance.
void undoExecution()
Deletes the last view.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon ViewControlNet3DWorkOrder.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition: WorkOrder.h:548
void execute()
Display the 3D control network.