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 }
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::ViewControlNet3DWorkOrder::clone
virtual ViewControlNet3DWorkOrder * clone() const
Returns a copy of this ViewControlNet3DWorkOrder instance.
Definition: ViewControlNet3DWorkOrder.cpp:68
Isis::WorkOrder::m_isSavedToHistory
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition: WorkOrder.h:537
Isis::ControlList
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
Definition: ControlList.h:44
Isis::ViewControlNet3DWorkOrder
This work order displays a control network in 3D in an OpenGL view.
Definition: ViewControlNet3DWorkOrder.h:47
Isis::ViewControlNet3DWorkOrder::undoExecution
void undoExecution()
Deletes the last view.
Definition: ViewControlNet3DWorkOrder.cpp:133
Isis::ViewControlNet3DWorkOrder::dependsOn
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon ViewControlNet3DWorkOrder.
Definition: ViewControlNet3DWorkOrder.cpp:114
Isis::Project
The main project for ipce.
Definition: Project.h:289
ViewControlNet3DWorkOrder.h
Isis::ViewControlNet3DWorkOrder::execute
void execute()
Display the 3D control network.
Definition: ViewControlNet3DWorkOrder.cpp:123
Isis::ViewControlNet3DWorkOrder::~ViewControlNet3DWorkOrder
~ViewControlNet3DWorkOrder()
The Destructor.
Definition: ViewControlNet3DWorkOrder.cpp:60
Isis::ViewControlNet3DWorkOrder::setupExecution
bool setupExecution()
Prompt user for any information need to display the control network.
Definition: ViewControlNet3DWorkOrder.cpp:91
Isis::ViewControlNet3DWorkOrder::isExecutable
virtual bool isExecutable(ControlList *controls)
Determines if there is a control net to display.
Definition: ViewControlNet3DWorkOrder.cpp:80
Isis::ViewControlNet3DWorkOrder::ViewControlNet3DWorkOrder
ViewControlNet3DWorkOrder(Project *project)
Creates a WorkOrder that will display a control net.
Definition: ViewControlNet3DWorkOrder.cpp:41
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16