Files
MapLibreParticleLab/include/llmr/text/placement.hpp
Konstantin Käfer 67a8882457 use the correct glyphs
2014-03-24 11:13:20 +01:00

40 lines
896 B
C++

#ifndef LLMR_TEXT_PLACEMENT
#define LLMR_TEXT_PLACEMENT
#include <llmr/text/collision.hpp>
#include <llmr/geometry/geometry.hpp>
#include <llmr/util/vec.hpp>
#include <llmr/text/glyph.hpp>
#include <vector>
namespace llmr {
class TextBucket;
class BucketGeometryDescription;
class Placement {
public:
Placement(int8_t zoom);
void addFeature(TextBucket &bucket, const std::vector<Coordinate> &line,
const BucketGeometryDescription &info,
const IndexedFaces &faces,
const Shaping &shaping);
float measureText(const IndexedFaces &faces,
const Shaping &shaping);
private:
const int8_t zoom;
Collision collision;
const float zOffset;
const float maxPlacementScale;
public:
static const int tileExtent;
static const int glyphSize;
static const float minScale;
};
}
#endif