Isis 3.0 Object Programmers' Reference |
Home |
Converts from file name or project representation to Image *. More...
Public Member Functions | |
VariantToImageFunctor (QMutex *cameraMutex, bool requireFootprints, QThread *targetThread, bool openFilled, int defaultAlpha) | |
Create a functor for converting from QVariant to an Image *. | |
Image * | operator() (const QVariant &) |
Read the QString filename and make an Image 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 Image *.
This is designed to work with QtConcurrentMap.
Definition at line 117 of file ImageReader.h.
Isis::ImageReader::VariantToImageFunctor::VariantToImageFunctor | ( | QMutex * | cameraMutex, |
bool | requireFootprints, | ||
QThread * | targetThread, | ||
bool | openFilled, | ||
int | defaultAlpha | ||
) |
Create a functor for converting from QVariant to an Image *.
This method is always called from the GUI thread.
Definition at line 259 of file ImageReader.cpp.
Image * Isis::ImageReader::VariantToImageFunctor::operator() | ( | const QVariant & | imageData | ) |
Read the QString filename and make an Image 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 277 of file ImageReader.cpp.
References Isis::Image::fromPvl(), Isis::DisplayProperties::getValue(), Isis::Image::initFootprint(), Isis::IException::print(), Isis::ImageDisplayProperties::setColor(), and Isis::ImageDisplayProperties::setShowFill().