Newer
Older
* Copyright (c) 2012, OpenGeoSys Community (http://www.opengeosys.net)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.net/LICENSE.txt
*
*
*/
#ifndef POINTWITHID_H_
#define POINTWITHID_H_
#include "Point.h"
namespace GeoLib {
/**
* class PointWithID is derived from class Point in
* order to extend the class Point with an ID.
*/
class PointWithID : public Point
{
public:
PointWithID (double x0, double x1, double x2, size_t id) :
Point (x0, x1, x2), _id (id)
{}
PointWithID (double const*const coords, size_t id) :
Point (coords), _id (id)
{}
size_t getID () const { return _id; }
protected:
size_t _id;
};
} // end namespace GeoLib
#endif /* POINTWITHID_H_ */