Show
Ignore:
Timestamp:
07/02/07 09:39:08 (3 years ago)
Author:
vspader
Message:

Added minimum_distance property to text symbolizers. This prevents the same label from appearing within N pixels (across features).
Shield symbolizer is now a subclass of text symbolizer.
Some small improvements to text rendering.
Fixed up placement finder for horizontal placement.
Cleaned up placement finder.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/mapnik/text_symbolizer.hpp

    r488 r490  
    2929// boost 
    3030#include <boost/tuple/tuple.hpp> 
     31#include <boost/shared_ptr.hpp> 
    3132// mapnik 
    3233#include <mapnik/color.hpp> 
     34#include <mapnik/graphics.hpp>  
    3335 
    3436namespace mapnik 
     
    7577         void set_avoid_edges(bool avoid); 
    7678         bool get_avoid_edges() const; 
     79         void set_minimum_distance(double distance); 
     80         double get_minimum_distance() const; 
    7781         void set_allow_overlap(bool overlap); 
    7882         bool get_allow_overlap() const; 
    79           
    8083      private: 
    8184         std::string name_; 
     
    9598         position displacement_; 
    9699         bool avoid_edges_; 
     100         double minimum_distance_; 
    97101         bool overlap_; 
    98102   };