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