btrfs: [] on the end of a struct field is a variable length array.
[haiku.git] / headers / libs / agg / agg_conv_marker_adaptor.h
blob4486d6ace9d0c515df68e65ab4e47df3ee9973b5
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 //----------------------------------------------------------------------------
16 #ifndef AGG_CONV_MARKER_ADAPTOR_INCLUDED
17 #define AGG_CONV_MARKER_ADAPTOR_INCLUDED
19 #include "agg_basics.h"
20 #include "agg_conv_adaptor_vcgen.h"
21 #include "agg_vcgen_vertex_sequence.h"
23 namespace agg
26 //=====================================================conv_marker_adaptor
27 template<class VertexSource, class Markers=null_markers>
28 struct conv_marker_adaptor :
29 public conv_adaptor_vcgen<VertexSource, vcgen_vertex_sequence, Markers>
31 typedef Markers marker_type;
32 typedef conv_adaptor_vcgen<VertexSource, vcgen_vertex_sequence, Markers> base_type;
34 conv_marker_adaptor(VertexSource& vs) :
35 conv_adaptor_vcgen<VertexSource, vcgen_vertex_sequence, Markers>(vs)
39 void shorten(double s) { base_type::generator().shorten(s); }
40 double shorten() const { return base_type::generator().shorten(); }
42 private:
43 conv_marker_adaptor(const conv_marker_adaptor<VertexSource, Markers>&);
44 const conv_marker_adaptor<VertexSource, Markers>&
45 operator = (const conv_marker_adaptor<VertexSource, Markers>&);
51 #endif