[core] Introduce API to collect placed symbols data

The following methods are added to the `Renderer` class:
- `collectPlacedSymbolData()`
  enables or disables collecting of the placed symbols data

- `getPlacedSymbolsData()`
  if collecting of the placed symbols data is enabled, returns the
  reference to the `PlacedSymbolData` vector holding the collected data.
This commit is contained in:
Mikhail Pozdnyakov
2020-03-25 17:03:52 +02:00
parent 4bdb3ce200
commit 5f4e33b1a3
6 changed files with 70 additions and 6 deletions

View File

@@ -1142,6 +1142,11 @@ bool Placement::hasTransitions(TimePoint now) const {
transitionOptions.duration.value_or(util::DEFAULT_TRANSITION_DURATION);
}
const std::vector<PlacedSymbolData>& Placement::getPlacedSymbolsData() const {
const static std::vector<PlacedSymbolData> data;
return data;
}
const CollisionIndex& Placement::getCollisionIndex() const {
return collisionIndex;
}