Isis 3 Programmer Reference
Isis::JigsawRunWidget::CopyImageToResultsFunctor Class Reference

Functor used to copy images to a specified destination directory. More...

Inheritance diagram for Isis::JigsawRunWidget::CopyImageToResultsFunctor:
Inheritance graph
Collaboration diagram for Isis::JigsawRunWidget::CopyImageToResultsFunctor:
Collaboration graph

Public Member Functions

 CopyImageToResultsFunctor (const QDir &destination)
 Constructs a image copier functor for copying images used in the bundle adjustment to the bundle solution info results (when the bundle is accepted).
 
 ~CopyImageToResultsFunctor ()
 Destructor.
 
Cubeoperator() (const FileName &image)
 Callable operator that copies an image to the bundle solution info results.
 

Private Member Functions

CopyImageToResultsFunctoroperator= (const CopyImageToResultsFunctor &other)
 

Private Attributes

QDir m_destinationFolder
 Directory to copy the image to.
 

Detailed Description

Functor used to copy images to a specified destination directory.

This is used by a QtConcurrent::mapped call in acceptBundleResults().

Author
2017-05-04 Ian Humphrey

Definition at line 155 of file JigsawRunWidget.h.

Constructor & Destructor Documentation

◆ CopyImageToResultsFunctor()

Isis::JigsawRunWidget::CopyImageToResultsFunctor::CopyImageToResultsFunctor ( const QDir & destination)

Constructs a image copier functor for copying images used in the bundle adjustment to the bundle solution info results (when the bundle is accepted).

Definition at line 400 of file JigsawRunWidget.cpp.

References m_destinationFolder.

◆ ~CopyImageToResultsFunctor()

Isis::JigsawRunWidget::CopyImageToResultsFunctor::~CopyImageToResultsFunctor ( )

Destructor.

Definition at line 408 of file JigsawRunWidget.cpp.

Member Function Documentation

◆ operator()()

Cube * Isis::JigsawRunWidget::CopyImageToResultsFunctor::operator() ( const FileName & image)

Callable operator that copies an image to the bundle solution info results.

This makes the functor callable - this will copy the passed FileName and return a pointer to the newly copied external cube.

Parameters
constFileName &image File name of the image to create an external copy of.
Returns
Cube* Returns a pointer to the external cube copy. Returns NULL if an error occurs.

Definition at line 424 of file JigsawRunWidget.cpp.

References Isis::Cube::copy(), Isis::FileName::name(), Isis::FileName::path(), and Isis::Cube::relocateDnData().

Member Data Documentation

◆ m_destinationFolder

QDir Isis::JigsawRunWidget::CopyImageToResultsFunctor::m_destinationFolder
private

Directory to copy the image to.

Definition at line 163 of file JigsawRunWidget.h.

Referenced by CopyImageToResultsFunctor().


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