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

[GL] Add protected method Point::setID().

The method is used from the friend class PointVec.
parent 2ec4bfc1
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,9 @@ namespace GeoLib
* \ingroup GeoLib
*/
// forward declaration
class PointVec;
class Point : public MathLib::Point3dWithID, public GeoLib::GeoObject
{
public:
......@@ -56,6 +59,11 @@ public:
/// return a geometry type
virtual GEOTYPE getGeoType() const {return GEOTYPE::POINT;}
protected:
friend GeoLib::PointVec;
/// Resets the id.
void setID(std::size_t id) { _id = id; }
};
static const Point ORIGIN(0, 0, 0);
......
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