|
Isis 3 Programmer Reference
|
Go to the documentation of this file. 1 #ifndef ImportShapesWorkOrder_H
2 #define ImportShapesWorkOrder_H
23 #include "WorkOrder.h"
30 #include "IException.h"
96 public std::unary_function<const FileName &, Cube *> {
99 QDir destinationFolder,
bool copyDnData);
129 #endif // ImportShapesWorkOrder_H
void undoExecution()
delete the imported shapes from the disk.
ImportShapesWorkOrder(Project *project)
Creates a work order to import a shape model.
ShapeList * m_list
List of shapes this workorder added to the project.
QDir m_destinationFolder
Directory where the DN data is going to be stored.
Provide Undo/redo abilities, serialization, and history for an operation.
QString m_warning
QString of warning text.
void postExecution()
Add the imported shapes into the project.
File name manipulation and expansion.
QSharedPointer< int > m_numErrors
Number of errors that have occured.
ShapeList * m_newShapes
List of shapes.
OriginalFileToProjectCubeFunctor(QThread *guiThread, QDir destinationFolder, bool copyDnData)
OriginalFileToProjectFunctor constructor.
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Shapes".
The main project for ipce.
QSharedPointer< IException > m_errors
Shared pointers for errors.
void postUndoExecution()
delete the imported shapes from the project.
Cube * operator()(const FileName &original)
Creates ecubs and copies the DN data of the cubes, if m_copyDnData is true.
QMutex m_errorsLock
Mutex lock for errors.
bool m_copyDnData
Stores if the user wants to copy the DN data or not.
Add shape model cubes to a project.
QThread * m_guiThread
The GUI thread.
This copies the given shape model cube(s) into the project.
Project * project() const
Returns the Project this WorkOrder is attached to.
Internalizes a list of shapes and allows for operations on the entire list.
IO Handler for Isis Cubes.
void importConfirmedShapes(QStringList confirmedShapes, bool copyDnData)
Creates a project shape folder and copies the shape cubes into it.
~ImportShapesWorkOrder()
Destructor.
IException errors() const
Returns the errors from importing.
bool setupExecution()
Prompt the user for shape files to import and whether to copy DN data in to project.
void execute()
Creates a project shape folder and copies the shape cubes into it.
~OriginalFileToProjectCubeFunctor()
Destructor.
virtual ImportShapesWorkOrder * clone() const
This method clones the current ImportShapesWorkOrder and returns it.
OriginalFileToProjectCubeFunctor & operator=(const OriginalFileToProjectCubeFunctor &rhs)
Not implemented.
This is free and unencumbered software released into the public domain.
Represents an item of a ProjectItemModel in Qt's model-view framework.