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
35namespace Isis {
36
42 WorkOrder(project) {
43 QAction::setText(tr("&View ControlNet 3D..."));
44 m_isSavedToHistory = false;
45}
46
47
55
56
62
63
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}
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
Definition ControlList.h:44
The main project for ipce.
Definition Project.h:289
This work order displays a control network in 3D in an OpenGL view.
virtual ViewControlNet3DWorkOrder * clone() const
Returns a copy of this ViewControlNet3DWorkOrder instance.
void undoExecution()
Deletes the last view.
bool setupExecution()
Prompt user for any information need to display the control network.
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.
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon ViewControlNet3DWorkOrder.
void execute()
Display the 3D control network.
Provide Undo/redo abilities, serialization, and history for an operation.
Definition WorkOrder.h:311
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition WorkOrder.h:537
virtual bool setupExecution()
This sets up the state for the work order.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16