Isis 3.0 Programmer Reference
Back | Home
ExportImagesWorkOrder.h
1 #ifndef ExportImagesWorkOrder_H
2 #define ExportImagesWorkOrder_H
3 
4 #include "WorkOrder.h"
5 
6 #include <functional>
7 
8 #include <QMutex>
9 
10 namespace Isis {
11  class IException;
12  class Image;
13 
30  Q_OBJECT
31  public:
35 
36  virtual ExportImagesWorkOrder *clone() const;
37 
38  bool isExecutable(ImageList *images);
39 
40 
41  bool execute();
42 
43  void asyncRedo();
44  void postSyncRedo();
45 
46  private:
57  class ProjectImageExportFunctor : public std::unary_function<Image * const &, void *> {
58  public:
59  ProjectImageExportFunctor(QString destination);
62 
63  void *operator()(Image * const &imageToExport);
64 
65  IException errors() const;
66 
67  private:
70 
71  QString m_destination;
72 
73  QMutex m_errorsLock;
74  QSharedPointer<IException> m_errors;
75  QSharedPointer<int> m_numErrors;
76  };
77 
78  private:
79  ExportImagesWorkOrder &operator=(const ExportImagesWorkOrder &rhs);
80 
81  QString m_warning;
82  };
83 }
84 
85 #endif
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:44
The main project for cnetsuite.
Definition: Project.h:105
void postSyncRedo()
Display any warnings that occurred during the asynchronous computations.
void asyncRedo()
Use internalData() and write the images into the output directory.
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1116
IException errors() const
Get the accumulated error list from this functor&#39;s run.
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
This represents a cube in a project-based GUI interface.
Definition: Image.h:91
ProjectImageExportFunctor(QString destination)
Create an image export functor that will copy the image&#39;s cubes into the given destination directory...
bool execute()
Prompts the user for input.
bool isExecutable(ImageList *images)
Currently, this work order only works with either no data (file menu) or with any number of images...
ProjectImageExportFunctor & operator=(const ProjectImageExportFunctor &rhs)
Not implemented.
Isis exception class.
Definition: IException.h:99
This functor is meant for QtConcurrentMap.
Write project images to a user-specified location.
void * operator()(Image *const &imageToExport)
Write the given image&#39;s cube into the destination folder (preserves the base name).

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:18:00