added missing extent() method
This commit is contained in:
parent
96daa6e996
commit
418e3fc43a
1 changed files with 22 additions and 15 deletions
|
@ -146,11 +146,14 @@ namespace mapnik
|
|||
};
|
||||
|
||||
typedef quad_tree< label > tree_t;
|
||||
Envelope<double> extent_;
|
||||
tree_t tree_;
|
||||
|
||||
public:
|
||||
|
||||
explicit label_collision_detector4(Envelope<double> const& extent)
|
||||
: tree_(extent) {}
|
||||
: extent_(extent),
|
||||
tree_(extent) {}
|
||||
|
||||
bool has_placement(Envelope<double> const& box)
|
||||
{
|
||||
|
@ -201,6 +204,10 @@ namespace mapnik
|
|||
{
|
||||
tree_.clear();
|
||||
}
|
||||
Envelope<double> const& extent() const
|
||||
{
|
||||
return extent_;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue