| 1 |
//---------------------------------------------------------------------------- |
| 2 |
// Anti-Grain Geometry - Version 2.4 |
| 3 |
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) |
| 4 |
// |
| 5 |
// Permission to copy, use, modify, sell and distribute this software |
| 6 |
// is granted provided this copyright notice appears in all copies. |
| 7 |
// This software is provided "as is" without express or implied |
| 8 |
// warranty, and with no claim as to its suitability for any purpose. |
| 9 |
// |
| 10 |
//---------------------------------------------------------------------------- |
| 11 |
// Contact: [email protected] |
| 12 |
// [email protected] |
| 13 |
// http://www.antigrain.com |
| 14 |
//---------------------------------------------------------------------------- |
| 15 |
|
| 16 |
#ifndef AGG_CONV_SEGMENTATOR_INCLUDED |
| 17 |
#define AGG_CONV_SEGMENTATOR_INCLUDED |
| 18 |
|
| 19 |
#include "agg_basics.h" |
| 20 |
#include "agg_conv_adaptor_vpgen.h" |
| 21 |
#include "agg_vpgen_segmentator.h" |
| 22 |
|
| 23 |
namespace agg |
| 24 |
{ |
| 25 |
|
| 26 |
//========================================================conv_segmentator |
| 27 |
template<class VertexSource> |
| 28 |
struct conv_segmentator : public conv_adaptor_vpgen<VertexSource, vpgen_segmentator> |
| 29 |
{ |
| 30 |
typedef conv_adaptor_vpgen<VertexSource, vpgen_segmentator> base_type; |
| 31 |
|
| 32 |
conv_segmentator(VertexSource& vs) : |
| 33 |
conv_adaptor_vpgen<VertexSource, vpgen_segmentator>(vs) {} |
| 34 |
|
| 35 |
void approximation_scale(double s) { base_type::vpgen().approximation_scale(s); } |
| 36 |
double approximation_scale() const { return base_type::vpgen().approximation_scale(); } |
| 37 |
|
| 38 |
private: |
| 39 |
conv_segmentator(const conv_segmentator<VertexSource>&); |
| 40 |
const conv_segmentator<VertexSource>& |
| 41 |
operator = (const conv_segmentator<VertexSource>&); |
| 42 |
}; |
| 43 |
|
| 44 |
|
| 45 |
} |
| 46 |
|
| 47 |
#endif |
| 48 |
|