Skip to content
Snippets Groups Projects
Commit 1408a81d authored by Tom Fischer's avatar Tom Fischer
Browse files

made the Polygone a friend of Polyline

removed method Polyline::getIDVec()
parent 78497a1d
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
namespace GeoLib
{
Polygon::Polygon(const Polyline &ply, bool init) :
Polyline(ply), _aabb(ply.getPointsVec(), ply.getIDVec())
Polyline(ply), _aabb(ply.getPointsVec(), ply._ply_pnt_ids)
{
if (init)
initialise ();
......
......@@ -50,6 +50,7 @@ public:
class Polyline : public GeoObject
{
public:
friend class Polygon;
/** constructor
* \param pnt_vec a reference to the point vector
*/
......@@ -58,7 +59,7 @@ public:
* Copy constructor
* @param ply Polyline
*/
Polyline (const Polyline& ply);
Polyline(const Polyline& ply);
virtual ~Polyline() {}
......@@ -153,8 +154,6 @@ public:
*/
const std::vector<double>& getLengthVec () const;
std::vector<std::size_t> const& getIDVec() const { return _ply_pnt_ids; }
friend bool operator==(Polyline const& lhs, Polyline const& rhs);
protected:
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment