An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis 3 Programmer Reference
|
This functor is used for copying the images between two projects quickly. More...
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. | |
CopyImageDataFunctor & | operator= (const CopyImageDataFunctor &rhs) |
Assignment operator for CopyImageDataFunctor. | |
Private Attributes | |
const Project * | m_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. | |
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).
Definition at line 132 of file ImageList.h.
Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor | ( | const Project * | project, |
FileName | newProjectRoot ) |
Constructor for CopyImageDataFunctor.
project | The project that the image data will be saved to when the functor is used |
newProjectRoot | The path to the project root |
Definition at line 867 of file ImageList.cpp.
References m_newProjectRoot, and m_project.
Referenced by CopyImageDataFunctor(), and operator=().
Isis::ImageList::CopyImageDataFunctor::CopyImageDataFunctor | ( | const CopyImageDataFunctor & | other | ) |
Copy constructor for CopyImageDataFunctor.
other | The functor to copy from |
Definition at line 879 of file ImageList.cpp.
References CopyImageDataFunctor(), m_newProjectRoot, and m_project.
Isis::ImageList::CopyImageDataFunctor::~CopyImageDataFunctor | ( | ) |
Destructor for CopyImageDataFunctor.
Definition at line 888 of file ImageList.cpp.
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.
imageToCopy | The image to copy into m_project. |
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.
ImageList::CopyImageDataFunctor & Isis::ImageList::CopyImageDataFunctor::operator= | ( | const CopyImageDataFunctor & | rhs | ) |
Assignment operator for CopyImageDataFunctor.
rhs | The functor to assign from |
Definition at line 920 of file ImageList.cpp.
References CopyImageDataFunctor(), m_newProjectRoot, and m_project.
|
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=().
|
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=().