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