Isis 3.0 Programmer Reference
Back | Home
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  }
45 
46 
52  WorkOrder(other) {
53  }
54 
55 
60  }
61 
62 
68  return new ViewControlNet3DWorkOrder(*this);
69  }
70 
71 
78  //tjw 3956
80  return (controls->count() == 1);
81  }
82 
83 
89  bool success = WorkOrder::execute();
90 
91  if (success) {
92 
93 //TODO::Find out why this is commented out.
94 
95 // JigsawDialog* bundledlg = new JigsawDialog(project());
96 // bundledlg->setAttribute(Qt::WA_DeleteOnClose);
97 // bundledlg->show();
98 // QUndoCommand::setText(tr("&Bundle Adjustment")
99 // .arg(controlList().first()->displayProperties()->displayName()));
100  }
101 
102  return success;
103  }
104 
105 
112  // depend on types of ourselves.
113  return dynamic_cast<ViewControlNet3DWorkOrder *>(other);
114  }
115 
116 
121  //project()->directory()->addCnetEditorView(controlList().first());
122  }
123 
124 
129  //delete project()->directory()->cnetEditorViews().last();
130  }
131 }
132 
The main project for cnetsuite.
Definition: Project.h:105
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:34
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.
void syncRedo()
Redisplays the control net.
This is a child of class WorkOrder which is used for anything that performs an action in a Project...
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
virtual ViewControlNet3DWorkOrder * clone() const
Returns a copy of this ViewControlNet3DWorkOrder instance.
bool execute()
Attempts to display a control network in 3D.
void syncUndo()
Deletes the last view.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
Definition: WorkOrder.cpp:1078
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon ViewControlNet3DWorkOrder.

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:31:24