Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-01-27 17:54:47 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:32:32 +0300
commit46036e81aa947556f80313ae30a382c561d726ce (patch)
tree186eaaf3fa37ae36a74d26525434a95402f70045 /indexer/feature_utils.hpp
parent7d63ad1d3b11caf7fcc8f152f96f1e467129311e (diff)
[search] Remove calculatin of feature viewport rect in IntermediateResult.
Close #522.
Diffstat (limited to 'indexer/feature_utils.hpp')
-rw-r--r--indexer/feature_utils.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indexer/feature_utils.hpp b/indexer/feature_utils.hpp
index 0321f62711..e380f25d8d 100644
--- a/indexer/feature_utils.hpp
+++ b/indexer/feature_utils.hpp
@@ -4,15 +4,15 @@
#include "../base/base.hpp"
-class FeatureType;
namespace feature
{
+ class TypesHolder;
-// Get viewport to show given feature. Used in search.
-m2::RectD GetFeatureViewport(FeatureType const & feature);
-
-// Get search rank for a feature. Roughly, rank + 1 means that feature is 1.x times more popular.
-uint8_t GetSearchRank(FeatureType const & feature);
+ /// Get viewport to show given feature. Used in search.
+ m2::RectD GetFeatureViewport(TypesHolder const & types, m2::RectD const & limitRect);
+ /// Get search rank for a feature.
+ /// Roughly, rank + 1 means that feature is 1.x times more popular.
+ uint8_t GetSearchRank(TypesHolder const & types, uint32_t population);
} // namespace feature