Isis 3 Programmer Reference
Isis::ShapeReader::VariantToShapeFunctor Class Reference

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

Inheritance diagram for Isis::ShapeReader::VariantToShapeFunctor:
Inheritance graph
Collaboration diagram for Isis::ShapeReader::VariantToShapeFunctor:
Collaboration graph

Public Member Functions

 VariantToShapeFunctor (QMutex *cameraMutex, bool requireFootprints, QThread *targetThread, bool openFilled, int defaultAlpha)
 Create a functor for converting from QVariant to an Shape *.
 
Shapeoperator() (const QVariant &)
 Read the QString filename and make an Shape 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 Shape *.

This is designed to work with QtConcurrentMap.

Author
2012-??-?? ???

Definition at line 109 of file ShapeReader.h.

Constructor & Destructor Documentation

◆ VariantToShapeFunctor()

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.

Member Function Documentation

◆ operator()()

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

Member Data Documentation

◆ m_defaultAlpha

int Isis::ShapeReader::VariantToShapeFunctor::m_defaultAlpha
private

Definition at line 121 of file ShapeReader.h.

◆ m_mutex

QMutex* Isis::ShapeReader::VariantToShapeFunctor::m_mutex
private

Definition at line 118 of file ShapeReader.h.

◆ m_openFilled

bool Isis::ShapeReader::VariantToShapeFunctor::m_openFilled
private

Definition at line 122 of file ShapeReader.h.

◆ m_requireFootprints

bool Isis::ShapeReader::VariantToShapeFunctor::m_requireFootprints
private

Definition at line 123 of file ShapeReader.h.

◆ m_targetThread

QThread* Isis::ShapeReader::VariantToShapeFunctor::m_targetThread
private

Definition at line 119 of file ShapeReader.h.


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