Isis 3 Programmer Reference
|
This copies the given shape model cube(s) into the project. More...
Public Member Functions | |
OriginalFileToProjectCubeFunctor (QThread *guiThread, QDir destinationFolder, bool copyDnData) | |
OriginalFileToProjectFunctor constructor. | |
OriginalFileToProjectCubeFunctor (const OriginalFileToProjectCubeFunctor &other) | |
Copy constructor. | |
~OriginalFileToProjectCubeFunctor () | |
Destructor. | |
Cube * | operator() (const FileName &original) |
Creates ecubs and copies the DN data of the cubes, if m_copyDnData is true. | |
IException | errors () const |
Returns the errors from importing. | |
Private Member Functions | |
OriginalFileToProjectCubeFunctor & | operator= (const OriginalFileToProjectCubeFunctor &rhs) |
Not implemented. | |
Private Attributes | |
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. | |
QThread * | m_guiThread |
The GUI thread. | |
QMutex | m_errorsLock |
Mutex lock for errors. | |
QSharedPointer< IException > | m_errors |
Shared pointers for errors. | |
QSharedPointer< int > | m_numErrors |
Number of errors that have occured. | |
This copies the given shape model cube(s) into the project.
This is designed to work with QtConcurrentMap. TODO:: TLS 2016-07-13 If large DEM, do not allow DN data to be copied??
Definition at line 95 of file ImportShapesWorkOrder.h.
Isis::ImportShapesWorkOrder::OriginalFileToProjectCubeFunctor::OriginalFileToProjectCubeFunctor | ( | QThread * | guiThread, |
QDir | destinationFolder, | ||
bool | copyDnData ) |
OriginalFileToProjectFunctor constructor.
*guiThread | The thread for the gui |
destinationFolder | The folder to copy the DN data to |
copyDnData | Determines if the DN data will be copied to the project |
Definition at line 256 of file ImportShapesWorkOrder.cpp.
References m_copyDnData, m_destinationFolder, and m_guiThread.
Isis::ImportShapesWorkOrder::OriginalFileToProjectCubeFunctor::OriginalFileToProjectCubeFunctor | ( | const OriginalFileToProjectCubeFunctor & | other | ) |
Copy constructor.
&other | OriginalFileToProjectCubeFunctor to copy |
Definition at line 270 of file ImportShapesWorkOrder.cpp.
References m_copyDnData, m_destinationFolder, and m_guiThread.
Isis::ImportShapesWorkOrder::OriginalFileToProjectCubeFunctor::~OriginalFileToProjectCubeFunctor | ( | ) |
Destructor.
Definition at line 282 of file ImportShapesWorkOrder.cpp.
IException Isis::ImportShapesWorkOrder::OriginalFileToProjectCubeFunctor::errors | ( | ) | const |
Returns the errors from importing.
Definition at line 350 of file ImportShapesWorkOrder.cpp.
References Isis::IException::append(), and Isis::IException::Unknown.
Cube * Isis::ImportShapesWorkOrder::OriginalFileToProjectCubeFunctor::operator() | ( | const FileName & | original | ) |
Creates ecubs and copies the DN data of the cubes, if m_copyDnData is true.
&original | Imported shape cube |
Definition at line 296 of file ImportShapesWorkOrder.cpp.
References Isis::Cube::copy(), Isis::FileName::name(), and Isis::Cube::relocateDnData().
|
private |
Not implemented.
|
private |
Stores if the user wants to copy the DN data or not.
Definition at line 112 of file ImportShapesWorkOrder.h.
Referenced by OriginalFileToProjectCubeFunctor(), and OriginalFileToProjectCubeFunctor().
|
private |
Directory where the DN data is going to be stored.
Definition at line 111 of file ImportShapesWorkOrder.h.
Referenced by OriginalFileToProjectCubeFunctor(), and OriginalFileToProjectCubeFunctor().
|
private |
Shared pointers for errors.
Definition at line 116 of file ImportShapesWorkOrder.h.
|
private |
Mutex lock for errors.
Definition at line 115 of file ImportShapesWorkOrder.h.
|
private |
The GUI thread.
Definition at line 113 of file ImportShapesWorkOrder.h.
Referenced by OriginalFileToProjectCubeFunctor(), and OriginalFileToProjectCubeFunctor().
|
private |
Number of errors that have occured.
Definition at line 117 of file ImportShapesWorkOrder.h.