38 ShapeReader(QMutex *cameraMutex,
bool requireFootprints =
false,
QObject *parent = NULL);
54 void mappedFinished();
60 template <
typename Iterator>
61 void read(Iterator begin, Iterator end) {
62 int numNewEntries = 0;
63 while (begin != end) {
64 m_backlog.append(QVariant::fromValue(*begin));
69 m_progress->setRange(0, m_progress->maximum() + numNewEntries);
85 QPointer<QAction> m_askAlphaAct;
86 QList<QVariant> m_backlog;
87 QMutex *m_cameraMutex;
88 QPointer<QAction> m_openFilledAct;
89 QPointer<ProgressBar> m_progress;
90 QPointer<QAction> m_safeFileOpenAct;
91 QFutureWatcher<Shape *> * m_watcher;
96 bool m_requireFootprints;
109 class VariantToShapeFunctor :
public std::function<
110 Shape *(const QVariant &)> {
113 VariantToShapeFunctor(QMutex *cameraMutex,
bool requireFootprints,
QThread *targetThread,
114 bool openFilled,
int defaultAlpha);
115 Shape *operator()(
const QVariant &);
123 bool m_requireFootprints;
Contains Pvl Groups and Pvl Objects.
Definition PvlObject.h:61
Property
This is a list of properties and actions that are possible.
Definition ShapeDisplayProperties.h:64
Internalizes a list of shapes and allows for operations on the entire list.
Definition ShapeList.h:31
Definition ShapeReader.h:34
ShapeReader(QMutex *cameraMutex, bool requireFootprints=false, QObject *parent=NULL)
MosaicWidget constructor.
Definition ShapeReader.cpp:35
void read(PvlObject shapesObj)
Definition ShapeReader.cpp:110
QProgressBar * progress()
Definition ShapeReader.cpp:105
void shapesReady(ShapeList shapes)
QList< QAction * > actions(ShapeDisplayProperties::Property relevantDispProperties)
Definition ShapeReader.cpp:84
virtual ~ShapeReader()
Free the allocated memory by this object.
Definition ShapeReader.cpp:65
void setSafeFileOpen(bool safeFileOpen)
Definition ShapeReader.cpp:123
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