Anti-Grain Geometry Tutorial
agg_conv_marker_adaptor.h
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: mcseem@antigrain.com
12 // mcseemagg@yahoo.com
13 // http://www.antigrain.com
14 //----------------------------------------------------------------------------
15 
16 #ifndef AGG_CONV_MARKER_ADAPTOR_INCLUDED
17 #define AGG_CONV_MARKER_ADAPTOR_INCLUDED
18 
19 #include "agg_basics.h"
20 #include "agg_conv_adaptor_vcgen.h"
21 #include "agg_vcgen_vertex_sequence.h"
22 
23 namespace agg
24 {
25 
26  //=====================================================conv_marker_adaptor
27  template<class VertexSource, class Markers=null_markers>
29  public conv_adaptor_vcgen<VertexSource, vcgen_vertex_sequence, Markers>
30  {
31  typedef Markers marker_type;
33 
34  conv_marker_adaptor(VertexSource& vs) :
36  {
37  }
38 
39  void shorten(double s) { base_type::generator().shorten(s); }
40  double shorten() const { return base_type::generator().shorten(); }
41 
42  private:
46  };
47 
48 
49 }
50 
51 #endif
Definition: agg_arc.cpp:24