Isis 3 Programmer Reference
|
Converts from file name or project representation to Shape *. More...
Public Member Functions | |
VariantToShapeFunctor (QMutex *cameraMutex, bool requireFootprints, QThread *targetThread, bool openFilled, int defaultAlpha) | |
Create a functor for converting from QVariant to an Shape *. | |
Shape * | operator() (const QVariant &) |
Read the QString filename and make an Shape from it. | |
Private Attributes | |
QMutex * | m_mutex |
QThread * | m_targetThread |
int | m_defaultAlpha |
bool | m_openFilled |
bool | m_requireFootprints |
Converts from file name or project representation to Shape *.
This is designed to work with QtConcurrentMap.
Definition at line 109 of file ShapeReader.h.
Isis::ShapeReader::VariantToShapeFunctor::VariantToShapeFunctor | ( | QMutex * | cameraMutex, |
bool | requireFootprints, | ||
QThread * | targetThread, | ||
bool | openFilled, | ||
int | defaultAlpha ) |
Create a functor for converting from QVariant to an Shape *.
This method is always called from the GUI thread.
Definition at line 211 of file ShapeReader.cpp.
Shape * Isis::ShapeReader::VariantToShapeFunctor::operator() | ( | const QVariant & | shapeData | ) |
Read the QString filename and make an Shape from it.
Set the default values. This is what we're doing in another thread, so make sure the QObject ends up in the correct thread.
This method is never called from the GUI thread.
Definition at line 229 of file ShapeReader.cpp.
References Isis::Shape::fromPvl(), and Isis::Shape::initFootprint().
|
private |
Definition at line 121 of file ShapeReader.h.
|
private |
Definition at line 118 of file ShapeReader.h.
|
private |
Definition at line 122 of file ShapeReader.h.
|
private |
Definition at line 123 of file ShapeReader.h.
|
private |
Definition at line 119 of file ShapeReader.h.