21 : _node_polygon(polygon), _parent(parent)
56 if (child->polygon().isPolylineInPolygon(
polygon))
58 child->insertSimplePolygonTree(polygon_hierarchy);
66 polygon_hierarchy->
_parent =
this;
Definition of the SimplePolygonTree class.
bool isPolylineInPolygon(const Polyline &ply) const
This class computes and stores the topological relations between polygons. Every node of the SimplePo...
std::list< SimplePolygonTree * > _children
bool isPolygonInside(const SimplePolygonTree *polygon_hierarchy) const
SimplePolygonTree(Polygon *polygon, SimplePolygonTree *parent)
const SimplePolygonTree * parent() const
void insertSimplePolygonTree(SimplePolygonTree *polygon_hierarchy)
Polygon const & polygon() const
SimplePolygonTree * _parent
virtual ~SimplePolygonTree()