USGS

Isis 3.0 Object Programmers' Reference

Home

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 117 of file ImageReader.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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().


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