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 }
Isis::MosaicSceneWorkOrder::scene
MosaicSceneWidget * scene()
Returns the MosaicSceneWidget corresponding to this work order's interal data (the MosaicSceneWidget'...
Definition: MosaicSceneWorkOrder.cpp:50
Isis::WorkOrder::imageList
ImageList * imageList()
Returns a pointer to the ImageList for this WorkOrder.
Definition: WorkOrder.cpp:631
Isis::MoveUpOneSceneWorkOrder::undoExecution
void undoExecution()
Execute the steps necessary to undo this workorder.
Definition: MoveUpOneSceneWorkOrder.cpp:37
Isis::MoveUpOneSceneWorkOrder::execute
void execute()
Execute the workorder.
Definition: MoveUpOneSceneWorkOrder.cpp:32
Isis::MosaicSceneWorkOrder::restoreZPositions
void restoreZPositions(bool zValuesMightBeInUse)
Definition: MosaicSceneWorkOrder.cpp:67
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16