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 137 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 693 of file ShapeList.cpp.
References m_newProjectRoot, and m_project.
Isis::ShapeList::CopyShapeDataFunctor::CopyShapeDataFunctor | ( | const CopyShapeDataFunctor & | other | ) |
Copy constructor for CopyShapeDataFunctor.
other | The functor to copy from |
Definition at line 705 of file ShapeList.cpp.
Isis::ShapeList::CopyShapeDataFunctor::~CopyShapeDataFunctor | ( | ) |
Destructor for CopyShapeDataFunctor.
Definition at line 714 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 726 of file ShapeList.cpp.
ShapeList::CopyShapeDataFunctor & Isis::ShapeList::CopyShapeDataFunctor::operator= | ( | const CopyShapeDataFunctor & | rhs | ) |
Assignment operator for CopyShapeDataFunctor.
rhs | The functor to assign from |
Definition at line 739 of file ShapeList.cpp.
References m_project.
|
private |
This stores the path to the root of the project that is going to be copied to.
Definition at line 155 of file ShapeList.h.
Referenced by CopyShapeDataFunctor().
|
private |
This stores the name of the project that is going to be copied to.
Definition at line 151 of file ShapeList.h.
Referenced by CopyShapeDataFunctor(), and operator=().