File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
Isis::ImageList::CopyImageDataFunctor Class Reference

This functor is used for copying the images between two projects quickly. More...

Inheritance diagram for Isis::ImageList::CopyImageDataFunctor:
Inheritance graph
Collaboration diagram for Isis::ImageList::CopyImageDataFunctor:
Collaboration graph

Public Member Functions

 CopyImageDataFunctor (const Project *project, FileName newProjectRoot)
 Constructor for CopyImageDataFunctor.
 
 CopyImageDataFunctor (const CopyImageDataFunctor &other)
 Copy constructor for CopyImageDataFunctor.
 
 ~CopyImageDataFunctor ()
 Destructor for CopyImageDataFunctor.
 
void * operator() (Image *const &imageToCopy)
 Copies the cub/ecub files for an image into m_project.
 
CopyImageDataFunctoroperator= (const CopyImageDataFunctor &rhs)
 Assignment operator for CopyImageDataFunctor.
 

Private Attributes

const Projectm_project
 This stores the name of the project that is going to be copied to.
 
FileName m_newProjectRoot
 This stores the path to the root of the project that is going to be copied to.
 

Detailed Description

This functor is used for copying the images between two projects quickly.

This is designed to work with QtConcurrentMap, though the results are all NULL (QtConcurrentMap is much faster than many QtConcurrentRun calls).

Author
2012-09-?? Steven Lambright

Definition at line 132 of file ImageList.h.

Constructor & Destructor Documentation

◆ CopyImageDataFunctor() [1/2]

Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor ( const Project * project,
FileName newProjectRoot )

Constructor for CopyImageDataFunctor.

Parameters
projectThe project that the image data will be saved to when the functor is used
newProjectRootThe path to the project root

Definition at line 867 of file ImageList.cpp.

References m_newProjectRoot, and m_project.

Referenced by CopyImageDataFunctor(), and operator=().

◆ CopyImageDataFunctor() [2/2]

Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor ( const CopyImageDataFunctor & other)

Copy constructor for CopyImageDataFunctor.

Parameters
otherThe functor to copy from

Definition at line 879 of file ImageList.cpp.

References CopyImageDataFunctor(), m_newProjectRoot, and m_project.

◆ ~CopyImageDataFunctor()

Isis::ImageList::CopyImageDataFunctor::~CopyImageDataFunctor ( )

Destructor for CopyImageDataFunctor.

Definition at line 888 of file ImageList.cpp.

Member Function Documentation

◆ operator()()

void * Isis::ImageList::CopyImageDataFunctor::operator() ( Image *const & imageToCopy)

Copies the cub/ecub files for an image into m_project.

Used by save to copy the imageList into a new project.

Parameters
imageToCopyThe image to copy into m_project.
See also
save

Definition at line 900 of file ImageList.cpp.

References Isis::Image::copyToNewProjectRoot(), Isis::DisplayProperties::displayName(), Isis::Image::displayProperties(), Isis::IException::Io, m_newProjectRoot, and m_project.

◆ operator=()

ImageList::CopyImageDataFunctor & Isis::ImageList::CopyImageDataFunctor::operator= ( const CopyImageDataFunctor & rhs)

Assignment operator for CopyImageDataFunctor.

Parameters
rhsThe functor to assign from
Returns
ImageList::CopyImageDataFunctor & A reference to a copy of the functor

Definition at line 920 of file ImageList.cpp.

References CopyImageDataFunctor(), m_newProjectRoot, and m_project.

Member Data Documentation

◆ m_newProjectRoot

FileName Isis::ImageList::CopyImageDataFunctor::m_newProjectRoot
private

This stores the path to the root of the project that is going to be copied to.

Definition at line 150 of file ImageList.h.

Referenced by CopyImageDataFunctor(), CopyImageDataFunctor(), operator()(), and operator=().

◆ m_project

const Project* Isis::ImageList::CopyImageDataFunctor::m_project
private

This stores the name of the project that is going to be copied to.

Definition at line 146 of file ImageList.h.

Referenced by CopyImageDataFunctor(), CopyImageDataFunctor(), operator()(), and operator=().


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