1 #ifndef ImportShapesWorkOrder_H 2 #define ImportShapesWorkOrder_H 95 class OriginalFileToProjectCubeFunctor :
96 public std::unary_function<const FileName &, Cube *> {
98 OriginalFileToProjectCubeFunctor(
QThread *guiThread,
99 QDir destinationFolder,
bool copyDnData);
100 OriginalFileToProjectCubeFunctor(
const OriginalFileToProjectCubeFunctor &other);
101 ~OriginalFileToProjectCubeFunctor();
109 OriginalFileToProjectCubeFunctor &operator=(
const OriginalFileToProjectCubeFunctor &rhs);
111 QDir m_destinationFolder;
121 void importConfirmedShapes(
QStringList confirmedShapes,
bool copyDnData);
129 #endif // ImportShapesWorkOrder_H Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
The main project for ipce.
Definition: Project.h:289
File name manipulation and expansion.
Definition: FileName.h:116
Add shape model cubes to a project.
Definition: ImportShapesWorkOrder.h:66
void execute()
Creates a project shape folder and copies the shape cubes into it.
Definition: ImportShapesWorkOrder.cpp:219
void postExecution()
Add the imported shapes into the project.
Definition: ImportShapesWorkOrder.cpp:231
virtual ImportShapesWorkOrder * clone() const
This method clones the current ImportShapesWorkOrder and returns it.
Definition: ImportShapesWorkOrder.cpp:88
void undoExecution()
delete the imported shapes from the disk.
Definition: ImportShapesWorkOrder.cpp:191
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
ImportShapesWorkOrder(Project *project)
Creates a work order to import a shape model.
Definition: ImportShapesWorkOrder.cpp:45
bool setupExecution()
Prompt the user for shape files to import and whether to copy DN data in to project.
Definition: ImportShapesWorkOrder.cpp:126
Definition: JigsawWorkOrder.h:28
void postUndoExecution()
delete the imported shapes from the project.
Definition: ImportShapesWorkOrder.cpp:206
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:146
Isis exception class.
Definition: IException.h:107
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Shapes"...
Definition: ImportShapesWorkOrder.cpp:102
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1314
~ImportShapesWorkOrder()
Destructor.
Definition: ImportShapesWorkOrder.cpp:74
IO Handler for Isis Cubes.
Definition: Cube.h:170