This is a child of class WorkOrder which is used for anything that performs an action in a Project. More...
#include <SetActiveControlWorkOrder.h>
Public Types | |
enum | WorkOrderStatus { WorkOrderUnknownStatus = 0, WorkOrderNotStarted, WorkOrderRedoing, WorkOrderRedone, WorkOrderUndoing, WorkOrderUndone, WorkOrderFinished, WorkOrderLastStatus = WorkOrderFinished } |
This enumeration is used by other functions to set and retrieve the current state of the WorkOrder. More... | |
enum | Context { NoContext, ProjectContext } |
This enumeration is for recording the context of the current Workorder (whether it is part of a project or not). More... | |
Public Slots | |
virtual void | redo () |
Starts (or enqueues) a redo. More... | |
virtual void | undo () |
Starts (or enqueues) an undo. More... | |
Signals | |
void | creatingProgress (WorkOrder *) |
void | deletingProgress (WorkOrder *) |
void | finished (WorkOrder *) |
void | statusChanged (WorkOrder *) |
Public Member Functions | |
SetActiveControlWorkOrder (Project *project) | |
Creates a WorkOrder that will set the active Control in the project. More... | |
SetActiveControlWorkOrder (const SetActiveControlWorkOrder &other) | |
Copies the 'other' WorkOrdeer instance into this new instance. More... | |
~SetActiveControlWorkOrder () | |
The Destructor. More... | |
virtual SetActiveControlWorkOrder * | clone () const |
Returns a copy of this SetActiveControlWorkOrder instance. More... | |
virtual bool | isExecutable (ControlList *controls) |
Determines if we can set this control as active. More... | |
bool | execute () |
Attempt to set control as active control. More... | |
virtual bool | isExecutable (Context) |
Re-implement this method if your work order utilizes controls for data in order to operate. More... | |
virtual bool | isExecutable (ImageList *images) |
Re-implement this method if your work order utilizes images for data in order to operate. More... | |
virtual bool | isExecutable (ShapeList *shapes) |
Re-implement this method if your work order utilizes shapes for data in order to operate. More... | |
virtual bool | isExecutable (CorrelationMatrix) |
virtual bool | isExecutable (TargetBodyQsp targetBody) |
Re-implement this method if your work order utilizes a control list (a list of control networks) for data in order to operate. More... | |
virtual bool | isExecutable (GuiCameraQsp guiCamera) |
Re-implement this method if your WorkOrder utilizes GuiCameraQsp (a QSharedPointer to a GuiCamera object) for data in order to operate. More... | |
virtual bool | isExecutable (ProjectItem *item) |
Determines if the WorkOrder is execuatable on the data stored in a ProjectItem. More... | |
void | read (XmlStackedHandlerReader *xmlReader) |
Read this work order's data from disk. More... | |
void | save (QXmlStreamWriter &stream) const |
: Saves a WorkOrder to a data stream. More... | |
virtual void | setData (Context) |
Sets the context data for this WorkOrder. More... | |
virtual void | setData (ImageList *images) |
Sets the ImageList data for this WorkOrder. More... | |
virtual void | setData (ShapeList *shapes) |
Sets the ShapeList data for this WorkOrder. More... | |
virtual void | setData (ControlList *controls) |
Sets the Control data for this WorkOrder. More... | |
virtual void | setData (CorrelationMatrix) |
Sets the CorrelationMatrix data for this WorkOrder. More... | |
virtual void | setData (TargetBodyQsp targetBody) |
Sets the TargetBody data for this WorkOrder. More... | |
virtual void | setData (GuiCameraQsp guiCamera) |
Sets the GuiCamera data for this WorkOrder. More... | |
virtual void | setData (ProjectItem *item) |
Sets the internal data to the data stored in a ProjectItem. More... | |
void | setNext (WorkOrder *nextWorkOrder) |
Sets the next WorkOrder in the sequence. More... | |
void | setPrevious (WorkOrder *previousWorkOrder) |
Sets the previous WorkOrder in the sequence. More... | |
QString | bestText () const |
We don't use action text anymore because Directory likes to rename our actions. More... | |
bool | createsCleanState () const |
Returns the CleanState status (whether the Project has been saved to disk or not). More... | |
QDateTime | executionTime () const |
Gets the execution time of this WorkOrder. More... | |
bool | isFinished () const |
Returns the finished state of this WorkOrder. More... | |
bool | isRedoing () const |
Returns the redoing status of this WorkOrder. More... | |
bool | isRedone () const |
Returns the WorkOrder redone status. More... | |
bool | isUndoing () const |
Returns the WorkOrderUndoing state. More... | |
bool | isUndone () const |
Returns the WorkOrder undo status. More... | |
bool | modifiesDiskState () const |
Returns the modified disk state. More... | |
WorkOrder * | next () const |
Gets the next WorkOrder. More... | |
WorkOrder * | previous () const |
Gets the previous WorkOrder. More... | |
QString | statusText () const |
WorkOrder::statusText. More... | |
ProgressBar * | progressBar () |
Returns the ProgressBar. More... | |
Static Public Member Functions | |
static WorkOrderStatus | fromStatusString (QString) |
Attempts to query the current status of the WorkOrder. More... | |
static QString | toString (WorkOrderStatus) |
Gets the current status of the WorkOrder. More... | |
Protected Slots | |
void | addCloneToProject () |
Runs a copy of the current WorkOrder and stores it in the project. More... | |
Protected Member Functions | |
ImageList * | imageList () |
a pointer to the ImageList for this WorkOrder. More... | |
const ImageList * | imageList () const |
A thread-safe method for retrieving a pointer to the imageList. More... | |
ShapeList * | shapeList () |
a pointer to the ShapeList for this WorkOrder. More... | |
const ShapeList * | shapeList () const |
A thread-safe method for retrieving a pointer to the shapeList. More... | |
CorrelationMatrix | correlationMatrix () |
Returns the CorrleationMatrix for this WorkOrder. More... | |
QPointer< ControlList > | controlList () |
Returns the Control List for this WorkOrder (a list of control networks). More... | |
TargetBodyQsp | targetBody () |
WorkOrder::targetBody. More... | |
GuiCameraQsp | guiCamera () |
WorkOrder::guiCamera. More... | |
virtual bool | dependsOn (WorkOrder *other) const |
This is a virtual function whose role in child classes is to determine if this WorkOrder deppends on the WorkOrder passed in as an argument. More... | |
Directory * | directory () const |
Returns the Directory object of the Project this WorkOrder is attached to. More... | |
Project * | project () const |
Returns the Project this WorkOrder is attached to. More... | |
void | setCreatesCleanState (bool createsCleanState) |
Declare that this work order is saving the project. More... | |
void | setModifiesDiskState (bool changesProjectOnDisk) |
. More... | |
void | setInternalData (QStringList data) |
Sets the internal data for this WorkOrder. More... | |
int | progressMin () const |
Gets the minimum value of the progress range of the WorkOrder. More... | |
int | progressMax () const |
Gets the maximum value of the progress range of the WorkOrder. More... | |
int | progressValue () const |
Gets the current progress value of the WorkOrder. More... | |
void | setProgressRange (int, int) |
Sets the progress range of the WorkOrder. More... | |
void | setProgressValue (int) |
Sets the current progress value for the WorkOrder. More... | |
QStringList | internalData () const |
Gets the internal data for this WorkOrder. More... | |
virtual void | syncRedo () |
This method is designed to be implemented by children work orders. More... | |
virtual void | asyncRedo () |
This method is designed to be implemented by children work orders. More... | |
virtual void | postSyncRedo () |
This method is designed to be implemented by children work orders. More... | |
virtual void | syncUndo () |
This method is designed to be implemented by children work orders. More... | |
virtual void | asyncUndo () |
This method is designed to be implemented by children work orders. More... | |
virtual void | postSyncUndo () |
This method is designed to be implemented by children work orders. More... | |
Private Member Functions | |
SetActiveControlWorkOrder & | operator= (const SetActiveControlWorkOrder &rhs) |
This is a child of class WorkOrder which is used for anything that performs an action in a Project.
This work order allows the user to set the active ControlNet in the project. Views that need to operate on a common control network, ie. footprint2dview, controlpointeditview, etc. can get the active control net from project.
Definition at line 41 of file SetActiveControlWorkOrder.h.
|
inherited |
This enumeration is for recording the context of the current Workorder (whether it is part of a project or not).
Definition at line 132 of file WorkOrder.h.
|
inherited |
This enumeration is used by other functions to set and retrieve the current state of the WorkOrder.
Enumerator | |
---|---|
WorkOrderFinished |
This is used for work orders that will not undo or redo (See createsCleanState()) |
Definition at line 114 of file WorkOrder.h.
Isis::SetActiveControlWorkOrder::SetActiveControlWorkOrder | ( | Project * | project | ) |
Isis::SetActiveControlWorkOrder::SetActiveControlWorkOrder | ( | const SetActiveControlWorkOrder & | other | ) |
Copies the 'other' WorkOrdeer instance into this new instance.
other | The WorkOrder being copied. |
Definition at line 50 of file SetActiveControlWorkOrder.cpp.
Isis::SetActiveControlWorkOrder::~SetActiveControlWorkOrder | ( | ) |
The Destructor.
Definition at line 58 of file SetActiveControlWorkOrder.cpp.
|
protectedslotinherited |
Runs a copy of the current WorkOrder and stores it in the project.
Definition at line 1294 of file WorkOrder.cpp.
References Isis::Project::addToProject(), and Isis::WorkOrder::project().
Referenced by Isis::WorkOrder::WorkOrder().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for redo is: syncRedo() - GUI thread asyncRedo() - Pooled thread* postSyncRedo() - GUI thread
State can be read from the parent WorkOrder class and from state set in syncRedo() while in this method. You can set state to be used in postSyncRedo() safely. Please be wary of creating QObjects inside of this method because they will associated with the pooled thread and must be moved back to the GUI thread with QObject::moveToThread(). This method is never executed in the GUI thread. You can update progress by calling setProgressRange() and setProgressValue(). Please do not manipulate any GUI objects here.
Reimplemented in Isis::ImportImagesWorkOrder, Isis::ImportShapesWorkOrder, Isis::ImportControlNetWorkOrder, Isis::ExportImagesWorkOrder, and Isis::ExportControlNetWorkOrder.
Definition at line 1222 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::redo().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for undo is: syncUndo() - GUI thread asyncUndo() - Pooled thread* postSyncUndo() - GUI thread
State can be read from the parent WorkOrder class and from state set in syncUndo() while in this method. You can set state to be used in postSyncUndo() safely. Please be wary of deleting QObjects inside of this method because they will cause unpredictable crashes. This method is never executed in the GUI thread. You can update progress by calling setProgressRange() and setProgressValue(). Please do not manipulate any GUI objects here.
Reimplemented in Isis::ImportImagesWorkOrder, and Isis::ImportShapesWorkOrder.
Definition at line 1271 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::undo().
|
inherited |
We don't use action text anymore because Directory likes to rename our actions.
It converts a set of actions that have the same text, like Zoom Fit, to be in a menu named Zoom Fit with items that name their widgets. Widget names are unhelpful as a description of the action.
Definition at line 701 of file WorkOrder.cpp.
Referenced by Isis::HistoryTreeWidget::addToHistory(), Isis::WorkOrder::redo(), Isis::WorkOrder::save(), and Isis::WorkOrder::undo().
|
virtual |
Returns a copy of this SetActiveControlWorkOrder instance.
Implements Isis::WorkOrder.
Definition at line 66 of file SetActiveControlWorkOrder.cpp.
References SetActiveControlWorkOrder().
|
protectedinherited |
Returns the Control List for this WorkOrder (a list of control networks).
Definition at line 637 of file WorkOrder.cpp.
Referenced by Isis::ExportControlNetWorkOrder::asyncRedo(), Isis::ExportControlNetWorkOrder::execute(), Isis::CnetEditorViewWorkOrder::execute(), execute(), Isis::WorkOrder::isExecutable(), Isis::WorkOrder::setData(), and Isis::CnetEditorViewWorkOrder::syncRedo().
|
protectedinherited |
Returns the CorrleationMatrix for this WorkOrder.
Definition at line 628 of file WorkOrder.cpp.
Referenced by Isis::MatrixViewWorkOrder::execute(), Isis::WorkOrder::setData(), and Isis::MatrixViewWorkOrder::syncRedo().
|
inherited |
Returns the CleanState status (whether the Project has been saved to disk or not).
Definition at line 721 of file WorkOrder.cpp.
References Isis::WorkOrder::m_createsCleanState.
Referenced by Isis::HistoryTreeWidget::addToHistory(), Isis::Project::addToProject(), Isis::WorkOrder::execute(), and Isis::WorkOrder::setCreatesCleanState().
|
protectedvirtualinherited |
This is a virtual function whose role in child classes is to determine if this WorkOrder deppends on the WorkOrder passed in as an argument.
Reimplemented in Isis::Footprint2DViewWorkOrder, Isis::CubeDnViewWorkOrder, Isis::RenameProjectWorkOrder, Isis::TargetGetInfoWorkOrder, Isis::SensorGetInfoWorkOrder, Isis::ViewControlNet3DWorkOrder, Isis::MatrixViewWorkOrder, Isis::JigsawWorkOrder, and Isis::CnetEditorViewWorkOrder.
Definition at line 688 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::redo().
|
protectedinherited |
Returns the Directory object of the Project this WorkOrder is attached to.
Definition at line 1106 of file WorkOrder.cpp.
References Isis::Project::directory(), and Isis::WorkOrder::project().
Referenced by Isis::MosaicSceneWorkOrder::scene(), Isis::ImageFileListViewWorkOrder::syncRedo(), Isis::CubeDnViewWorkOrder::syncRedo(), Isis::Footprint2DViewWorkOrder::syncRedo(), and Isis::ImageFileListViewWorkOrder::syncUndo().
|
virtual |
Attempt to set control as active control.
Reimplemented from Isis::WorkOrder.
Definition at line 90 of file SetActiveControlWorkOrder.cpp.
References Isis::Project::activeControl(), Isis::WorkOrder::controlList(), Isis::Control::controlNet(), Isis::WorkOrder::execute(), Isis::WorkOrder::project(), Isis::Project::setActiveControl(), and Isis::ControlNet::SetImages().
|
inherited |
Gets the execution time of this WorkOrder.
Definition at line 730 of file WorkOrder.cpp.
References Isis::WorkOrder::m_executionTime.
Referenced by Isis::HistoryTreeWidget::addToHistory(), and Isis::WorkOrder::XmlHandler::startElement().
|
staticinherited |
Attempts to query the current status of the WorkOrder.
statusString | The status we want information about. |
Definition at line 844 of file WorkOrder.cpp.
References Isis::WorkOrder::toString().
Referenced by Isis::WorkOrder::XmlHandler::startElement().
|
protectedinherited |
Definition at line 675 of file WorkOrder.cpp.
References Isis::WorkOrder::m_guiCamera.
Referenced by Isis::SensorGetInfoWorkOrder::execute(), Isis::WorkOrder::setData(), and Isis::SensorGetInfoWorkOrder::syncRedo().
|
protectedinherited |
a pointer to the ImageList for this WorkOrder.
Definition at line 565 of file WorkOrder.cpp.
References Isis::WorkOrder::listenForImageDestruction(), Isis::WorkOrder::m_imageIds, and Isis::WorkOrder::project().
Referenced by Isis::ExportImagesWorkOrder::asyncRedo(), Isis::ExportImagesWorkOrder::execute(), Isis::SetActiveImageListWorkOrder::execute(), Isis::ImageFileListViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::ImageListActionWorkOrder::execute(), Isis::WorkOrder::imageList(), Isis::ImageListActionWorkOrder::ImageListActionWorkOrder(), Isis::WorkOrder::isExecutable(), Isis::WorkOrder::redo(), Isis::MosaicSceneWorkOrder::restoreZPositions(), Isis::ImageListActionWorkOrder::setData(), Isis::WorkOrder::setData(), Isis::MoveToBottomSceneWorkOrder::syncRedo(), Isis::MoveDownOneSceneWorkOrder::syncRedo(), Isis::MoveToTopSceneWorkOrder::syncRedo(), Isis::MoveUpOneSceneWorkOrder::syncRedo(), Isis::ImageFileListViewWorkOrder::syncRedo(), Isis::ImageListActionWorkOrder::syncRedo(), and Isis::ImageListActionWorkOrder::syncUndo().
|
protectedinherited |
A thread-safe method for retrieving a pointer to the imageList.
Definition at line 646 of file WorkOrder.cpp.
References Isis::WorkOrder::imageList(), and Isis::WorkOrder::m_transparentConstMutex.
|
protectedinherited |
Gets the internal data for this WorkOrder.
Definition at line 1186 of file WorkOrder.cpp.
References Isis::WorkOrder::m_internalData.
Referenced by Isis::ExportControlNetWorkOrder::asyncRedo(), Isis::ExportImagesWorkOrder::asyncRedo(), Isis::ImportShapesWorkOrder::asyncRedo(), Isis::ImportImagesWorkOrder::asyncRedo(), Isis::ExportControlNetWorkOrder::execute(), Isis::ExportImagesWorkOrder::execute(), Isis::MatrixViewWorkOrder::execute(), Isis::ImageFileListViewWorkOrder::execute(), Isis::RenameProjectWorkOrder::execute(), Isis::SensorGetInfoWorkOrder::execute(), Isis::TargetGetInfoWorkOrder::execute(), Isis::ImportControlNetWorkOrder::execute(), Isis::CubeDnViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::ImageListActionWorkOrder::execute(), Isis::ImageListActionWorkOrder::ImageListActionWorkOrder(), Isis::ImportImagesWorkOrder::importConfirmedImages(), Isis::ImportShapesWorkOrder::importConfirmedShapes(), Isis::MosaicSceneWorkOrder::restoreZPositions(), Isis::MosaicSceneWorkOrder::scene(), Isis::ImageListActionWorkOrder::setData(), Isis::ImageFileListViewWorkOrder::syncRedo(), Isis::RenameProjectWorkOrder::syncRedo(), Isis::ImportControlNetWorkOrder::syncRedo(), Isis::CubeDnViewWorkOrder::syncRedo(), Isis::Footprint2DViewWorkOrder::syncRedo(), Isis::ImageListActionWorkOrder::syncRedo(), Isis::MatrixViewWorkOrder::syncUndo(), Isis::ImageFileListViewWorkOrder::syncUndo(), Isis::RenameProjectWorkOrder::syncUndo(), and Isis::ImageListActionWorkOrder::syncUndo().
|
virtual |
Determines if we can set this control as active.
Control | *control |
Reimplemented from Isis::WorkOrder.
Definition at line 77 of file SetActiveControlWorkOrder.cpp.
References Isis::Project::activeControl(), and Isis::WorkOrder::project().
|
virtualinherited |
Re-implement this method if your work order utilizes controls for data in order to operate.
For example, "CnetEditorViewWorkOrder" works sometimes on controls
context | This is an enum variable with two values: NoContext,ProjectContext. |
Reimplemented in Isis::RenameProjectWorkOrder.
Definition at line 179 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::isExecutable(), and Isis::Directory::supportedActions().
|
virtualinherited |
Re-implement this method if your work order utilizes images for data in order to operate.
For example, "Footprint2DViewWorkOrder" works sometimes on images - the logic in side of Footprint2DViewWorkOrder::isExecutable(ImageList) determines whethere or not a user is prompted with this work order as a possibility.
images | An image list that this work order should execute on |
Reimplemented in Isis::ImageListActionWorkOrder, Isis::Footprint2DViewWorkOrder, Isis::CubeDnViewWorkOrder, Isis::ImageFileListViewWorkOrder, Isis::SetActiveImageListWorkOrder, Isis::RemoveImagesWorkOrder, and Isis::ExportImagesWorkOrder.
Definition at line 193 of file WorkOrder.cpp.
|
virtualinherited |
Re-implement this method if your work order utilizes shapes for data in order to operate.
For example, "ImportShapeWorkOrder" works on shapes - the logic in side of ImportShapeWorkOrder::isExecutable(ShapeList) determines whethere or not a user is prompted with this work order as a possibility.
shapes | A shape list that this work order should execute on |
Reimplemented in Isis::Footprint2DViewWorkOrder, and Isis::CubeDnViewWorkOrder.
Definition at line 207 of file WorkOrder.cpp.
|
virtualinherited |
Re-implement this method if your work order utilizes a control list (a list of control networks) for data in order to operate.
controls | A list of control networks. |
Reimplemented in Isis::TargetGetInfoWorkOrder.
Definition at line 374 of file WorkOrder.cpp.
|
virtualinherited |
Re-implement this method if your WorkOrder utilizes GuiCameraQsp (a QSharedPointer to a GuiCamera object) for data in order to operate.
GuiCameraQsp |
Reimplemented in Isis::SensorGetInfoWorkOrder.
Definition at line 386 of file WorkOrder.cpp.
|
virtualinherited |
Determines if the WorkOrder is execuatable on the data stored in a ProjectItem.
item | (ProjectItem *) The item containing the data. |
Definition at line 398 of file WorkOrder.cpp.
References Isis::ShapeList::append(), Isis::ControlList::append(), Isis::ImageList::append(), Isis::ProjectItem::control(), Isis::WorkOrder::controlList(), Isis::ProjectItem::correlationMatrix(), Isis::ProjectItem::guiCamera(), Isis::ProjectItem::image(), Isis::ProjectItem::imageList(), Isis::WorkOrder::imageList(), Isis::ProjectItem::isControl(), Isis::ProjectItem::isControlList(), Isis::ProjectItem::isCorrelationMatrix(), Isis::WorkOrder::isExecutable(), Isis::ProjectItem::isGuiCamera(), Isis::ProjectItem::isImage(), Isis::ProjectItem::isImageList(), Isis::ProjectItem::isProject(), Isis::ProjectItem::isShape(), Isis::ProjectItem::isShapeList(), Isis::ProjectItem::isTargetBody(), Isis::ProjectItem::shape(), Isis::ProjectItem::shapeList(), Isis::WorkOrder::shapeList(), and Isis::ProjectItem::targetBody().
|
inherited |
Returns the finished state of this WorkOrder.
Definition at line 739 of file WorkOrder.cpp.
References Isis::WorkOrder::WorkOrderFinished.
Referenced by Isis::WorkOrder::redo(), and Isis::WorkOrder::undo().
|
inherited |
Returns the redoing status of this WorkOrder.
Definition at line 748 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::isInStableState(), Isis::WorkOrder::redo(), Isis::WorkOrder::undo(), and Isis::WorkOrder::updateProgress().
|
inherited |
Returns the WorkOrder redone status.
Definition at line 757 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::redo(), and Isis::WorkOrder::setProgressToFinalText().
|
inherited |
Returns the WorkOrderUndoing state.
Definition at line 766 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::asyncFinished(), Isis::WorkOrder::isInStableState(), Isis::WorkOrder::redo(), Isis::WorkOrder::undo(), and Isis::WorkOrder::updateProgress().
|
inherited |
Returns the WorkOrder undo status.
Definition at line 775 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::setProgressToFinalText(), and Isis::WorkOrder::undo().
|
inherited |
Returns the modified disk state.
Definition at line 785 of file WorkOrder.cpp.
References Isis::WorkOrder::m_modifiesDiskState.
Referenced by Isis::Project::~Project().
|
inherited |
Gets the next WorkOrder.
Definition at line 794 of file WorkOrder.cpp.
References Isis::WorkOrder::m_nextWorkOrder.
Referenced by Isis::WorkOrder::undo().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for redo is: syncRedo() - GUI thread asyncRedo() - Pooled thread postSyncRedo() - GUI thread*
State can be read from the parent WorkOrder class and from state set in either syncRedo() or asyncRedo() while in this method. You can not set state to be used in any of the undo code safely. This method is always executed in the GUI thread and has no progress.
Reimplemented in Isis::ImportImagesWorkOrder, Isis::ImportShapesWorkOrder, Isis::ImportControlNetWorkOrder, Isis::ExportImagesWorkOrder, and Isis::ExportControlNetWorkOrder.
Definition at line 1238 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::asyncFinished().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for undo is: syncUndo() - GUI thread asyncUndo() - Pooled thread postSyncUndo() - GUI thread*
State can be read from the parent WorkOrder class and from state set in either syncUndo() or asyncUndo() while in this method. You can not set state to be used in any of the redo code safely. This method is always executed in the GUI thread and has no progress.
Reimplemented in Isis::ImportImagesWorkOrder, and Isis::ImportShapesWorkOrder.
Definition at line 1287 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::asyncFinished().
|
inherited |
Gets the previous WorkOrder.
Definition at line 803 of file WorkOrder.cpp.
References Isis::WorkOrder::m_previousWorkOrder.
Referenced by Isis::Project::addToProject(), and Isis::WorkOrder::redo().
|
inherited |
Returns the ProgressBar.
Definition at line 832 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressBar.
Referenced by Isis::HistoryTreeWidget::addToHistory(), Isis::OpenProjectWorkOrder::execute(), and Isis::HistoryTreeWidget::updateProgressWidgets().
|
protectedinherited |
Gets the maximum value of the progress range of the WorkOrder.
Definition at line 1148 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressRangeMaxValue.
|
protectedinherited |
Gets the minimum value of the progress range of the WorkOrder.
Definition at line 1139 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressRangeMinValue.
|
protectedinherited |
Gets the current progress value of the WorkOrder.
Definition at line 1157 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressValue.
|
protectedinherited |
Returns the Project this WorkOrder is attached to.
IException::Programmer | "This work order no longer has a project." |
Definition at line 1116 of file WorkOrder.cpp.
References _FILEINFO_, Isis::WorkOrder::m_project, and Isis::IException::Programmer.
Referenced by Isis::WorkOrder::addCloneToProject(), Isis::ExportControlNetWorkOrder::asyncRedo(), Isis::ExportImagesWorkOrder::asyncRedo(), Isis::ImportShapesWorkOrder::asyncUndo(), Isis::ImportImagesWorkOrder::asyncUndo(), Isis::WorkOrder::directory(), Isis::ExportControlNetWorkOrder::execute(), Isis::ExportImagesWorkOrder::execute(), Isis::JigsawWorkOrder::execute(), Isis::MatrixViewWorkOrder::execute(), Isis::SetActiveImageListWorkOrder::execute(), Isis::OpenProjectWorkOrder::execute(), Isis::RenameProjectWorkOrder::execute(), execute(), Isis::ImageFileListViewWorkOrder::execute(), Isis::SaveProjectAsWorkOrder::execute(), Isis::SaveProjectWorkOrder::execute(), Isis::OpenRecentProjectWorkOrder::execute(), Isis::CubeDnViewWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::ImportImagesWorkOrder::execute(), Isis::WorkOrder::imageList(), Isis::ImportImagesWorkOrder::importConfirmedImages(), Isis::ImportShapesWorkOrder::importConfirmedShapes(), Isis::JigsawWorkOrder::isExecutable(), Isis::SetActiveImageListWorkOrder::isExecutable(), isExecutable(), Isis::SensorGetInfoWorkOrder::isExecutable(), Isis::TargetGetInfoWorkOrder::isExecutable(), Isis::ExportControlNetWorkOrder::postSyncRedo(), Isis::ExportImagesWorkOrder::postSyncRedo(), Isis::ImportShapesWorkOrder::postSyncRedo(), Isis::ImportImagesWorkOrder::postSyncRedo(), Isis::ImportShapesWorkOrder::postSyncUndo(), Isis::ImportImagesWorkOrder::postSyncUndo(), Isis::WorkOrder::redo(), Isis::WorkOrder::shapeList(), Isis::CnetEditorViewWorkOrder::syncRedo(), Isis::RemoveImagesWorkOrder::syncRedo(), Isis::MatrixViewWorkOrder::syncRedo(), Isis::ImageFileListViewWorkOrder::syncRedo(), Isis::SensorGetInfoWorkOrder::syncRedo(), Isis::TargetGetInfoWorkOrder::syncRedo(), Isis::RenameProjectWorkOrder::syncRedo(), Isis::ImportControlNetWorkOrder::syncRedo(), Isis::CubeDnViewWorkOrder::syncRedo(), Isis::Footprint2DViewWorkOrder::syncRedo(), Isis::CnetEditorViewWorkOrder::syncUndo(), Isis::MatrixViewWorkOrder::syncUndo(), Isis::ImageFileListViewWorkOrder::syncUndo(), Isis::RenameProjectWorkOrder::syncUndo(), Isis::ImportControlNetWorkOrder::syncUndo(), Isis::Footprint2DViewWorkOrder::syncUndo(), and Isis::WorkOrder::WorkOrder().
|
inherited |
Read this work order's data from disk.
Definition at line 454 of file WorkOrder.cpp.
|
virtualslotinherited |
Starts (or enqueues) a redo.
This should not be re-implemented by children. TODO: (Then why is it declared virtual?)
Definition at line 900 of file WorkOrder.cpp.
References Isis::WorkOrder::asyncRedo(), Isis::WorkOrder::attemptQueuedAction(), Isis::WorkOrder::bestText(), Isis::WorkOrder::dependsOn(), Isis::WorkOrder::imageList(), Isis::WorkOrder::isFinished(), Isis::WorkOrder::isInStableState(), Isis::WorkOrder::isRedoing(), Isis::WorkOrder::isRedone(), Isis::WorkOrder::isUndoing(), Isis::WorkOrder::m_elapsedTimer, Isis::WorkOrder::m_futureWatcher, Isis::WorkOrder::m_progressBar, Isis::WorkOrder::previous(), Isis::WorkOrder::project(), Isis::WorkOrder::resetProgressBar(), Isis::WorkOrder::setProgressToFinalText(), Isis::WorkOrder::shapeList(), and Isis::WorkOrder::syncRedo().
Referenced by Isis::WorkOrder::attemptQueuedAction().
|
inherited |
: Saves a WorkOrder to a data stream.
The XML output format looks like this:
<workOrder actiontext="..." undotext="..." type="..." status="..."> <images> <image id="..."> </images>
<internalDataValues> <dataValue value="..."> </internalDataValues> </workOrder>
@b | QXmlStreamWriter stream The data stream we are saving the WorkOrder to. |
IException::Unknown | This exception is thrown if save is called while the WorkOrder is currently running. |
Definition at line 478 of file WorkOrder.cpp.
References _FILEINFO_, Isis::WorkOrder::bestText(), Isis::WorkOrder::isInStableState(), Isis::WorkOrder::m_executionTime, Isis::WorkOrder::m_imageIds, Isis::WorkOrder::m_internalData, Isis::WorkOrder::m_shapeIds, Isis::IException::Programmer, and Isis::WorkOrder::toString().
Referenced by Isis::Project::saveHistory().
|
protectedinherited |
Declare that this work order is saving the project.
This makes the work order not appear in the undo stack (cannot undo/redo), and instead it is marked as a 'clean' state of the project. The QUndoCommand undo/redo will never be called. The default for createsCleanState is false.
createsCleanState | True if this work order is going to save the project to disk, False otherwise. |
Definition at line 1520 of file WorkOrder.cpp.
References Isis::WorkOrder::createsCleanState(), and Isis::WorkOrder::m_createsCleanState.
Referenced by Isis::CloseProjectWorkOrder::CloseProjectWorkOrder(), Isis::OpenProjectWorkOrder::OpenProjectWorkOrder(), and Isis::OpenRecentProjectWorkOrder::OpenRecentProjectWorkOrder().
|
virtualinherited |
Sets the context data for this WorkOrder.
context | This is an enum variable with two values: NoContext,ProjectContext. |
Definition at line 245 of file WorkOrder.cpp.
Referenced by Isis::ImageListActionWorkOrder::setData(), Isis::WorkOrder::setData(), Isis::Directory::supportedActions(), and Isis::MosaicSceneWidget::supportedActions().
|
virtualinherited |
Sets the ImageList data for this WorkOrder.
images | A pointer to the updated ImageList. |
Reimplemented in Isis::ImageListActionWorkOrder.
Definition at line 254 of file WorkOrder.cpp.
References Isis::WorkOrder::listenForImageDestruction(), and Isis::WorkOrder::m_imageIds.
|
virtualinherited |
Sets the ShapeList data for this WorkOrder.
images | A pointer to the updated ShapeList. |
Definition at line 267 of file WorkOrder.cpp.
References Isis::WorkOrder::listenForShapeDestruction(), and Isis::WorkOrder::m_shapeIds.
|
virtualinherited |
Sets the Control data for this WorkOrder.
controls. | A pointer to the Control Sets the ControlList data for this WorkOrder. |
controls. | A pointer to the ControlList (which is a list of control networks). |
Definition at line 290 of file WorkOrder.cpp.
|
virtualinherited |
Sets the CorrelationMatrix data for this WorkOrder.
correlationMatrix | The matrix data. |
Definition at line 299 of file WorkOrder.cpp.
References Isis::WorkOrder::correlationMatrix().
|
virtualinherited |
Sets the TargetBody data for this WorkOrder.
targetBody | A QSharedPointer to the TargetBody. |
Definition at line 308 of file WorkOrder.cpp.
References Isis::WorkOrder::m_targetBody, and Isis::WorkOrder::targetBody().
|
virtualinherited |
Sets the GuiCamera data for this WorkOrder.
guiCamera | A QSharedPointer to the GuiCamera. |
Definition at line 317 of file WorkOrder.cpp.
References Isis::WorkOrder::guiCamera(), and Isis::WorkOrder::m_guiCamera.
|
virtualinherited |
Sets the internal data to the data stored in a ProjectItem.
item | The item containing the data. |
Definition at line 326 of file WorkOrder.cpp.
References Isis::ShapeList::append(), Isis::ControlList::append(), Isis::ImageList::append(), Isis::ProjectItem::control(), Isis::ProjectItem::controlList(), Isis::WorkOrder::controlList(), Isis::ProjectItem::correlationMatrix(), Isis::ProjectItem::guiCamera(), Isis::ProjectItem::image(), Isis::ProjectItem::imageList(), Isis::WorkOrder::imageList(), Isis::ProjectItem::isControl(), Isis::ProjectItem::isControlList(), Isis::ProjectItem::isCorrelationMatrix(), Isis::ProjectItem::isGuiCamera(), Isis::ProjectItem::isImage(), Isis::ProjectItem::isImageList(), Isis::ProjectItem::isProject(), Isis::ProjectItem::isShape(), Isis::ProjectItem::isShapeList(), Isis::ProjectItem::isTargetBody(), Isis::WorkOrder::setData(), Isis::ProjectItem::shape(), Isis::ProjectItem::shapeList(), Isis::WorkOrder::shapeList(), and Isis::ProjectItem::targetBody().
|
protectedinherited |
Sets the internal data for this WorkOrder.
data | The data to set the internal data to. |
Definition at line 1130 of file WorkOrder.cpp.
References Isis::WorkOrder::m_internalData.
Referenced by Isis::ExportControlNetWorkOrder::execute(), Isis::ExportImagesWorkOrder::execute(), Isis::MatrixViewWorkOrder::execute(), Isis::ImageFileListViewWorkOrder::execute(), Isis::RenameProjectWorkOrder::execute(), Isis::SensorGetInfoWorkOrder::execute(), Isis::TargetGetInfoWorkOrder::execute(), Isis::ImportControlNetWorkOrder::execute(), Isis::CubeDnViewWorkOrder::execute(), Isis::ImportShapesWorkOrder::execute(), Isis::Footprint2DViewWorkOrder::execute(), Isis::ImportImagesWorkOrder::execute(), Isis::ImageListActionWorkOrder::execute(), Isis::ImageListActionWorkOrder::ImageListActionWorkOrder(), Isis::ImportImagesWorkOrder::importConfirmedImages(), Isis::ImportShapesWorkOrder::importConfirmedShapes(), Isis::ImageListActionWorkOrder::syncRedo(), and Isis::ImageListActionWorkOrder::syncUndo().
|
protectedinherited |
.
By default, m_modifiesDiskState is False. If a WorkOrder modifies the Project on disk as a result of it's action, this should be set to true.
changesProjectOnDisk | True if this WorkOrder modifies the Project on disk. False if it does not. |
Definition at line 1531 of file WorkOrder.cpp.
References Isis::WorkOrder::m_modifiesDiskState.
|
inherited |
Sets the next WorkOrder in the sequence.
nextWorkOrder | The next WorkOrder. |
Definition at line 547 of file WorkOrder.cpp.
References Isis::WorkOrder::m_nextWorkOrder.
Referenced by Isis::Project::addToProject().
|
inherited |
Sets the previous WorkOrder in the sequence.
previousWorkOrder | The previous WorkOrder. |
Definition at line 556 of file WorkOrder.cpp.
References Isis::WorkOrder::m_previousWorkOrder.
Referenced by Isis::Project::addToProject().
|
protectedinherited |
Sets the progress range of the WorkOrder.
minValue | The progress range minimum value. |
maxValue | The progress range maximum value. |
Definition at line 1167 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressRangeMaxValue, and Isis::WorkOrder::m_progressRangeMinValue.
Referenced by Isis::ExportImagesWorkOrder::asyncRedo(), Isis::ImportControlNetWorkOrder::asyncRedo(), Isis::ImportImagesWorkOrder::importConfirmedImages(), and Isis::ImportShapesWorkOrder::importConfirmedShapes().
|
protectedinherited |
Sets the current progress value for the WorkOrder.
int | value The value to set the current progress to. |
Definition at line 1177 of file WorkOrder.cpp.
References Isis::WorkOrder::m_progressValue.
Referenced by Isis::ExportImagesWorkOrder::asyncRedo(), Isis::ImportControlNetWorkOrder::asyncRedo(), Isis::ImportImagesWorkOrder::importConfirmedImages(), and Isis::ImportShapesWorkOrder::importConfirmedShapes().
|
protectedinherited |
a pointer to the ShapeList for this WorkOrder.
Definition at line 596 of file WorkOrder.cpp.
References Isis::WorkOrder::listenForShapeDestruction(), Isis::WorkOrder::m_shapeIds, and Isis::WorkOrder::project().
Referenced by Isis::WorkOrder::isExecutable(), Isis::WorkOrder::redo(), Isis::WorkOrder::setData(), and Isis::WorkOrder::shapeList().
|
protectedinherited |
A thread-safe method for retrieving a pointer to the shapeList.
Definition at line 656 of file WorkOrder.cpp.
References Isis::WorkOrder::m_transparentConstMutex, and Isis::WorkOrder::shapeList().
|
inherited |
Definition at line 812 of file WorkOrder.cpp.
References Isis::WorkOrder::m_secondsElapsed, and Isis::WorkOrder::toString().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for redo is: syncRedo() - GUI thread* asyncRedo() - Pooled thread postSyncRedo() - GUI thread
State should only be read from the parent WorkOrder class in this method. You can set state to be used in asyncRedo() and postSyncRedo() safely. This method is always executed in the GUI thread and has no progress.
Reimplemented in Isis::ImageListActionWorkOrder, Isis::Footprint2DViewWorkOrder, Isis::CubeDnViewWorkOrder, Isis::ImportControlNetWorkOrder, Isis::RenameProjectWorkOrder, Isis::TargetGetInfoWorkOrder, Isis::SensorGetInfoWorkOrder, Isis::ViewControlNet3DWorkOrder, Isis::ImageFileListViewWorkOrder, Isis::MatrixViewWorkOrder, Isis::JigsawWorkOrder, Isis::RemoveImagesWorkOrder, Isis::CnetEditorViewWorkOrder, Isis::MoveDownOneSceneWorkOrder, Isis::MoveToBottomSceneWorkOrder, Isis::MoveToTopSceneWorkOrder, and Isis::MoveUpOneSceneWorkOrder.
Definition at line 1203 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::redo().
|
protectedvirtualinherited |
This method is designed to be implemented by children work orders.
The order of execution for undo is: syncUndo() - GUI thread* asyncUndo() - Pooled thread postSyncUndo() - GUI thread
State should only be read from the parent WorkOrder class in this method. You can set state to be used in asyncUndo() and postSyncUndo() safely. This method is always executed in the GUI thread and has no progress.
Reimplemented in Isis::ImageListActionWorkOrder, Isis::Footprint2DViewWorkOrder, Isis::ImportControlNetWorkOrder, Isis::RenameProjectWorkOrder, Isis::TargetGetInfoWorkOrder, Isis::SensorGetInfoWorkOrder, Isis::ViewControlNet3DWorkOrder, Isis::ImageFileListViewWorkOrder, Isis::MatrixViewWorkOrder, Isis::JigsawWorkOrder, Isis::CnetEditorViewWorkOrder, Isis::MoveDownOneSceneWorkOrder, Isis::MoveToBottomSceneWorkOrder, Isis::MoveToTopSceneWorkOrder, and Isis::MoveUpOneSceneWorkOrder.
Definition at line 1254 of file WorkOrder.cpp.
Referenced by Isis::WorkOrder::undo().
|
protectedinherited |
Definition at line 666 of file WorkOrder.cpp.
References Isis::WorkOrder::m_targetBody.
Referenced by Isis::TargetGetInfoWorkOrder::execute(), Isis::WorkOrder::setData(), and Isis::TargetGetInfoWorkOrder::syncRedo().
|
staticinherited |
Gets the current status of the WorkOrder.
status | An enumeration of all possible WorkOrder states. |
Definition at line 865 of file WorkOrder.cpp.
References Isis::WorkOrder::WorkOrderFinished.
Referenced by Isis::WorkOrder::fromStatusString(), Isis::WorkOrder::save(), and Isis::WorkOrder::statusText().
|
virtualslotinherited |
Starts (or enqueues) an undo.
This should not be re-implemented by children. (Why virtual then?)
Definition at line 994 of file WorkOrder.cpp.
References Isis::WorkOrder::asyncUndo(), Isis::WorkOrder::attemptQueuedAction(), Isis::WorkOrder::bestText(), Isis::WorkOrder::isFinished(), Isis::WorkOrder::isInStableState(), Isis::WorkOrder::isRedoing(), Isis::WorkOrder::isUndoing(), Isis::WorkOrder::isUndone(), Isis::WorkOrder::m_elapsedTimer, Isis::WorkOrder::m_futureWatcher, Isis::WorkOrder::m_progressBar, Isis::WorkOrder::next(), Isis::WorkOrder::resetProgressBar(), Isis::WorkOrder::setProgressToFinalText(), and Isis::WorkOrder::syncUndo().
Referenced by Isis::WorkOrder::attemptQueuedAction().
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/13/2023 00:15:08 |