added missing extent() method

This commit is contained in:
Artem Pavlenko 2008-01-21 20:07:32 +00:00
parent 96daa6e996
commit 418e3fc43a

View file

@ -146,11 +146,14 @@ namespace mapnik
}; };
typedef quad_tree< label > tree_t; typedef quad_tree< label > tree_t;
Envelope<double> extent_;
tree_t tree_; tree_t tree_;
public: public:
explicit label_collision_detector4(Envelope<double> const& extent) explicit label_collision_detector4(Envelope<double> const& extent)
: tree_(extent) {} : extent_(extent),
tree_(extent) {}
bool has_placement(Envelope<double> const& box) bool has_placement(Envelope<double> const& box)
{ {
@ -201,6 +204,10 @@ namespace mapnik
{ {
tree_.clear(); tree_.clear();
} }
Envelope<double> const& extent() const
{
return extent_;
}
}; };
} }