47 ImageReader(QMutex *cameraMutex,
bool requireFootprints =
true,
QObject *parent = NULL);
65 void mappedFinished();
71 template <
typename Iterator>
72 void read(Iterator begin, Iterator end) {
73 int numNewEntries = 0;
74 while (begin != end) {
75 m_backlog.append(QVariant::fromValue(*begin));
80 m_progress->setRange(0, m_progress->maximum() + numNewEntries);
96 QPointer<QAction> m_askAlphaAct;
97 QList<QVariant> m_backlog;
98 QMutex *m_cameraMutex;
99 QPointer<QAction> m_openFilledAct;
100 QPointer<ProgressBar> m_progress;
101 QPointer<QAction> m_safeFileOpenAct;
102 QFutureWatcher<Image *> * m_watcher;
107 bool m_requireFootprints;
109 bool m_mappedRunning;
120 class VariantToImageFunctor :
public std::function<
121 Image *(const QVariant &)> {
124 VariantToImageFunctor(QMutex *cameraMutex,
bool requireFootprints,
QThread *targetThread,
125 bool openFilled,
int defaultAlpha);
126 Image *operator()(
const QVariant &);
134 bool m_requireFootprints;
Property
This is a list of properties and actions that are possible.
Definition ImageDisplayProperties.h:90
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:53
Definition ImageReader.h:43
void setSafeFileOpen(bool safeFileOpen)
Definition ImageReader.cpp:168
void read(PvlObject imagesObj)
Definition ImageReader.cpp:147
void imagesReady(ImageList images)
ImageReader(QMutex *cameraMutex, bool requireFootprints=true, QObject *parent=NULL)
MosaicWidget constructor.
Definition ImageReader.cpp:35
QList< QAction * > actions(ImageDisplayProperties::Property relevantDispProperties)
Definition ImageReader.cpp:84
virtual ~ImageReader()
Free the allocated memory by this object.
Definition ImageReader.cpp:65
void askDefaultAlpha()
Definition ImageReader.cpp:134
void setOpenFilled(bool openFilled)
Definition ImageReader.cpp:160
QProgressBar * progress()
Definition ImageReader.cpp:129
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
This is free and unencumbered software released into the public domain.
Definition AbstractTableModel.h:24
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16