Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ImportImagesWorkOrder_H
2 #define ImportImagesWorkOrder_H
139 class OriginalFileToProjectCubeFunctor :
140 public std::unary_function<const FileName &, Cube *> {
142 OriginalFileToProjectCubeFunctor(
QThread *guiThread,
143 QDir destinationFolder,
bool copyDnData);
144 OriginalFileToProjectCubeFunctor(
const OriginalFileToProjectCubeFunctor &other);
145 ~OriginalFileToProjectCubeFunctor();
153 OriginalFileToProjectCubeFunctor &operator=(
const OriginalFileToProjectCubeFunctor &rhs);
155 QDir m_destinationFolder;
165 void importConfirmedImages(
QStringList confirmedImages,
bool copyDnData);
173 #endif // ImportImagesWorkOrder_H
Saves a project to disk (File->Save Project...)
Definition: SaveProjectWorkOrder.h:47
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
void waitForImageReaderFinished()
Locks program if another spot in code is still running and called this function.
Definition: Project.cpp:1732
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
void addCamera(Camera *camera)
Adds a new camera to the project.
Definition: Project.cpp:2761
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
virtual ImportImagesWorkOrder * clone() const
Creates a clone of this work order.
Definition: ImportImagesWorkOrder.cpp:93
~ImportImagesWorkOrder()
Destructor.
Definition: ImportImagesWorkOrder.cpp:78
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1091
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
void addTarget(Target *target)
Adds a new target to the project.
Definition: Project.cpp:2730
File name manipulation and expansion.
Definition: FileName.h:100
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1318
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:449
Cube * copy(FileName newFile, const CubeAttributeOutput &newFileAttributes)
Copies the cube to the new fileName.
Definition: Cube.cpp:276
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
Provides access to sequential ASCII stream I/O.
Definition: TextFile.h:38
bool GetLine(QString &line, const bool skipComments=true)
Gets next line from file.
Definition: TextFile.cpp:411
Manipulate and parse attributes of output cube filenames.
Definition: CubeAttribute.h:473
void deleteFromDisk(Project *project)
Delete all of the contained Images from disk.
Definition: ImageList.cpp:747
Definition: JigsawWorkOrder.h:28
bool m_isSynchronous
This is defaulted to true.
Definition: WorkOrder.h:530
virtual bool setupExecution()
Sets up this work order before being executed.
Definition: ImportImagesWorkOrder.cpp:132
virtual void postUndoExecution()
Cleans up memory (images) after the undo execution occurs.
Definition: ImportImagesWorkOrder.cpp:262
const char * what() const
Returns a string representation of this exception in its current state.
Definition: IException.cpp:375
The main project for ipce.
Definition: Project.h:289
void append(const IException &exceptionSource)
Appends the given exception (and its list of previous exceptions) to this exception's causational exc...
Definition: IException.cpp:409
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
virtual Target * target() const
Returns a pointer to the target object.
Definition: Spice.cpp:1368
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Definition: Project.cpp:894
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
void closeCube()
Cleans up the Cube pointer.
Definition: Image.cpp:307
void warn(QString text, Data relevantData)
Definition: Project.cpp:2643
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
IO Handler for Isis Cubes.
Definition: Cube.h:167
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis exception class.
Definition: IException.h:91
ProjectItem * findItemData(const QVariant &data, int role=Qt::UserRole+1)
Returns the first item found that contains the given data in the given role or a null pointer if no i...
Definition: ProjectItemModel.cpp:290
void setProgressRange(int, int)
Sets the progress range of the WorkOrder.
Definition: WorkOrder.cpp:1358
ImageDisplayProperties * displayProperties()
Get the display (GUI) properties (information) associated with this image.
Definition: Image.cpp:320
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Images".
Definition: ImportImagesWorkOrder.cpp:107
void addImages(QStringList imageFiles)
Read the given cube file names as Images and add them to the project.
Definition: Project.cpp:1032
Camera * camera()
Return a camera associated with the cube.
Definition: Cube.cpp:1451
QString extension() const
Returns the last extension of the file name.
Definition: FileName.cpp:178
Add cubes to a project.
Definition: ImportImagesWorkOrder.h:109
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
@ WorkOrderFinished
This is used for work orders that will not undo or redo (See createsCleanState())
Definition: WorkOrder.h:331
QString id() const
Get a unique, identifying string associated with this image.
Definition: Image.cpp:445
void setProgressValue(int)
Sets the current progress value for the WorkOrder.
Definition: WorkOrder.cpp:1368
QStringList internalData() const
Gets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1377
void setModifiesDiskState(bool changesProjectOnDisk)
Definition: WorkOrder.cpp:1674
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
ImportImagesWorkOrder(Project *project)
Creates an asynchronous WorkOrder for importing images to the project.
Definition: ImportImagesWorkOrder.cpp:48
virtual void postExecution()
Associates the imported images to the project.
Definition: ImportImagesWorkOrder.cpp:308
This class is used to create and store valid Isis targets.
Definition: Target.h:63
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Definition: ProjectItemModel.cpp:315
void relocateDnData(FileName dnDataFile)
Relocates the DN data for a cube to an external cube label file.
Definition: Cube.cpp:1366
void setId(QString id)
Override the automatically generated ID with the given ID.
Definition: Image.cpp:383
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
virtual void undoExecution()
Undoes the work order's execute.
Definition: ImportImagesWorkOrder.cpp:240
void reopen(QString access="r")
This method will reopen an isis sube for reading or reading/writing.
Definition: Cube.cpp:774
QDir addImageFolder(QString prefix)
Create and return the name of a folder for placing images.
Definition: Project.cpp:1003
WorkOrderStatus m_status
Definition: WorkOrder.h:539
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134
virtual void execute()
Executes the work order.
Definition: ImportImagesWorkOrder.cpp:282