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 shapes between two projects quickly. More...
Public Member Functions | |
CopyShapeDataFunctor (const Project *project, FileName newProjectRoot) | |
Constructor for CopyShapeDataFunctor. | |
CopyShapeDataFunctor (const CopyShapeDataFunctor &other) | |
Copy constructor for CopyShapeDataFunctor. | |
~CopyShapeDataFunctor () | |
Destructor for CopyShapeDataFunctor. | |
void * | operator() (Shape *const &shapeToCopy) |
Copies the cub/ecub files for an shape into m_project. | |
CopyShapeDataFunctor & | operator= (const CopyShapeDataFunctor &rhs) |
Assignment operator for CopyShapeDataFunctor. | |
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 shapes 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 104 of file ShapeList.h.
Isis::ShapeList::CopyShapeDataFunctor::CopyShapeDataFunctor | ( | const Project * | project, |
FileName | newProjectRoot ) |
Constructor for CopyShapeDataFunctor.
project | The project that the shape data will be saved to when the functor is used |
newProjectRoot | The path to the project root |
Definition at line 679 of file ShapeList.cpp.
References m_newProjectRoot, and m_project.
Referenced by CopyShapeDataFunctor(), and operator=().
Isis::ShapeList::CopyShapeDataFunctor::CopyShapeDataFunctor | ( | const CopyShapeDataFunctor & | other | ) |
Copy constructor for CopyShapeDataFunctor.
other | The functor to copy from |
Definition at line 691 of file ShapeList.cpp.
References CopyShapeDataFunctor(), m_newProjectRoot, and m_project.
Isis::ShapeList::CopyShapeDataFunctor::~CopyShapeDataFunctor | ( | ) |
Destructor for CopyShapeDataFunctor.
Definition at line 700 of file ShapeList.cpp.
void * Isis::ShapeList::CopyShapeDataFunctor::operator() | ( | Shape *const & | shapeToCopy | ) |
Copies the cub/ecub files for an shape into m_project.
Used by save to copy the shapeList into a new project.
shapeToCopy | The shape to copy into m_project. |
Definition at line 712 of file ShapeList.cpp.
References Isis::Shape::copyToNewProjectRoot(), m_newProjectRoot, and m_project.
ShapeList::CopyShapeDataFunctor & Isis::ShapeList::CopyShapeDataFunctor::operator= | ( | const CopyShapeDataFunctor & | rhs | ) |
Assignment operator for CopyShapeDataFunctor.
rhs | The functor to assign from |
Definition at line 725 of file ShapeList.cpp.
References CopyShapeDataFunctor(), 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 122 of file ShapeList.h.
Referenced by CopyShapeDataFunctor(), CopyShapeDataFunctor(), operator()(), and operator=().
|
private |
This stores the name of the project that is going to be copied to.
Definition at line 118 of file ShapeList.h.
Referenced by CopyShapeDataFunctor(), CopyShapeDataFunctor(), operator()(), and operator=().