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