OGS
|
Creates a copy of a geometry within GEOObjects
Definition at line 27 of file DuplicateGeometry.h.
#include <DuplicateGeometry.h>
Public Member Functions | |
DuplicateGeometry (GeoLib::GEOObjects &geo_objects, std::string const &input_name, std::string output_name) | |
std::string const & | getFinalizedOutputName () const |
std::vector< GeoLib::Point * > & | getPointVectorCopy () |
std::vector< GeoLib::Polyline * > & | getPolylineVectorCopy () |
std::vector< GeoLib::Surface * > & | getSurfaceVectorCopy () |
Private Member Functions | |
void | duplicate (std::string const &input_name) |
std::vector< GeoLib::Polyline * > | copyPolylinesVector (std::vector< GeoLib::Polyline * > const &polylines) const |
std::vector< Surface * > | copySurfacesVector (std::vector< Surface * > const &surfaces) const |
Private Attributes | |
std::string | _output_name |
GeoLib::GEOObjects & | _geo_objects |
GeoLib::DuplicateGeometry::DuplicateGeometry | ( | GeoLib::GEOObjects & | geo_objects, |
std::string const & | input_name, | ||
std::string | output_name ) |
Creates a copy of a geometry within GEOObjects
geo_objects | The container for geometries |
input_name | The geometry to be copied |
output_name | The name of the copy (note: this might be modified by GEOObjects) |
Definition at line 25 of file DuplicateGeometry.cpp.
References duplicate().
|
private |
Definition at line 79 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, and GeoLib::GEOObjects::getPointVec().
Referenced by duplicate().
|
private |
Definition at line 102 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, MathLib::Point3dWithID::getID(), GeoLib::Triangle::getPoint(), and GeoLib::GEOObjects::getPointVec().
Referenced by duplicate().
|
private |
Definition at line 33 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, GeoLib::GEOObjects::addPointVec(), GeoLib::GEOObjects::addPolylineVec(), GeoLib::GEOObjects::addSurfaceVec(), copyPolylinesVector(), copySurfacesVector(), ERR(), GeoLib::TemplateVec< T >::getNameIDMapBegin(), GeoLib::TemplateVec< T >::getNameIDMapEnd(), GeoLib::GEOObjects::getPointVec(), GeoLib::GEOObjects::getPointVecObj(), GeoLib::GEOObjects::getPolylineVec(), GeoLib::GEOObjects::getPolylineVecObj(), GeoLib::GEOObjects::getSurfaceVec(), and GeoLib::GEOObjects::getSurfaceVecObj().
Referenced by DuplicateGeometry().
|
inline |
Definition at line 42 of file DuplicateGeometry.h.
References _output_name.
Referenced by MainWindow::mapGeometry().
std::vector< GeoLib::Point * > & GeoLib::DuplicateGeometry::getPointVectorCopy | ( | ) |
Definition at line 129 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, and GeoLib::GEOObjects::getPointVec().
std::vector< GeoLib::Polyline * > & GeoLib::DuplicateGeometry::getPolylineVectorCopy | ( | ) |
Definition at line 135 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, and GeoLib::GEOObjects::getPolylineVec().
std::vector< GeoLib::Surface * > & GeoLib::DuplicateGeometry::getSurfaceVectorCopy | ( | ) |
Definition at line 141 of file DuplicateGeometry.cpp.
References _geo_objects, _output_name, and GeoLib::GEOObjects::getSurfaceVec().
|
private |
Definition at line 63 of file DuplicateGeometry.h.
Referenced by copyPolylinesVector(), copySurfacesVector(), duplicate(), getPointVectorCopy(), getPolylineVectorCopy(), and getSurfaceVectorCopy().
|
private |
Definition at line 62 of file DuplicateGeometry.h.
Referenced by copyPolylinesVector(), copySurfacesVector(), duplicate(), getFinalizedOutputName(), getPointVectorCopy(), getPolylineVectorCopy(), and getSurfaceVectorCopy().