Isis 3 Programmer Reference
Isis::ImageReader::VariantToImageFunctor Class Reference

Converts from file name or project representation to Image *. More...

Inheritance diagram for Isis::ImageReader::VariantToImageFunctor:
Inheritance graph
Collaboration diagram for Isis::ImageReader::VariantToImageFunctor:
Collaboration graph

Public Member Functions

 VariantToImageFunctor (QMutex *cameraMutex, bool requireFootprints, QThread *targetThread, bool openFilled, int defaultAlpha)
 Create a functor for converting from QVariant to an Image *.
 
Imageoperator() (const QVariant &)
 Read the QString filename and make an Image from it.
 

Private Attributes

QMutex * m_mutex
 
QThreadm_targetThread
 
int m_defaultAlpha
 
bool m_openFilled
 
bool m_requireFootprints
 

Detailed Description

Converts from file name or project representation to Image *.

This is designed to work with QtConcurrentMap.

Author
2012-??-?? ???

Definition at line 120 of file ImageReader.h.

Constructor & Destructor Documentation

◆ VariantToImageFunctor()

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 260 of file ImageReader.cpp.

Member Function Documentation

◆ operator()()

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 278 of file ImageReader.cpp.

References Isis::ImageDisplayProperties::Color, Isis::Image::fromPvl(), and Isis::Image::initFootprint().

Member Data Documentation

◆ m_defaultAlpha

int Isis::ImageReader::VariantToImageFunctor::m_defaultAlpha
private

Definition at line 132 of file ImageReader.h.

◆ m_mutex

QMutex* Isis::ImageReader::VariantToImageFunctor::m_mutex
private

Definition at line 129 of file ImageReader.h.

◆ m_openFilled

bool Isis::ImageReader::VariantToImageFunctor::m_openFilled
private

Definition at line 133 of file ImageReader.h.

◆ m_requireFootprints

bool Isis::ImageReader::VariantToImageFunctor::m_requireFootprints
private

Definition at line 134 of file ImageReader.h.

◆ m_targetThread

QThread* Isis::ImageReader::VariantToImageFunctor::m_targetThread
private

Definition at line 130 of file ImageReader.h.


The documentation for this class was generated from the following files: