Isis 3 Programmer Reference
MoveToTopSceneWorkOrder.cpp
1 #include "IsisDebug.h"
2 #include "MoveToTopSceneWorkOrder.h"
3 
4 #include "MosaicSceneWidget.h"
5 
6 namespace Isis {
7 
8  MoveToTopSceneWorkOrder::MoveToTopSceneWorkOrder(MosaicSceneWidget *scene, Project *project) :
9  MosaicSceneWorkOrder(tr("Bring to Front"), scene, project) {
10  }
11 
12 
13  MoveToTopSceneWorkOrder::MoveToTopSceneWorkOrder(Project *project) :
14  MosaicSceneWorkOrder(project) {
15  }
16 
17 
18  MoveToTopSceneWorkOrder::MoveToTopSceneWorkOrder(const MoveToTopSceneWorkOrder &other) :
19  MosaicSceneWorkOrder(other) {
20  }
21 
22 
23  MoveToTopSceneWorkOrder::~MoveToTopSceneWorkOrder() {
24  }
25 
26 
27  MoveToTopSceneWorkOrder *MoveToTopSceneWorkOrder::clone() const {
28  return new MoveToTopSceneWorkOrder(*this);
29  }
30 
31 
33  storeZPositions( scene()->moveToTop(imageList()) );
34  }
35 
36 
38  restoreZPositions(false);
39  }
40 }
MosaicSceneWidget * scene()
Returns the MosaicSceneWidget corresponding to this work order's interal data (the MosaicSceneWidget'...
void restoreZPositions(bool zValuesMightBeInUse)
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void execute()
Execute the workorder.
void undoExecution()
Execute the steps necessary to undo this workorder.
ImageList * imageList()
Returns a pointer to the ImageList for this WorkOrder.
Definition: WorkOrder.cpp:645