Anti-Grain Geometry - AGG (libagg)  2.5
agg-2.5/include/agg_conv_segmentator.h
Go to the documentation of this file.
00001 //----------------------------------------------------------------------------
00002 // Anti-Grain Geometry (AGG) - Version 2.5
00003 // A high quality rendering engine for C++
00004 // Copyright (C) 2002-2006 Maxim Shemanarev
00005 // Contact: mcseem@antigrain.com
00006 //          mcseemagg@yahoo.com
00007 //          http://antigrain.com
00008 // 
00009 // AGG is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU General Public License
00011 // as published by the Free Software Foundation; either version 2
00012 // of the License, or (at your option) any later version.
00013 // 
00014 // AGG is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 // 
00019 // You should have received a copy of the GNU General Public License
00020 // along with AGG; if not, write to the Free Software
00021 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
00022 // MA 02110-1301, USA.
00023 //----------------------------------------------------------------------------
00024 
00025 #ifndef AGG_CONV_SEGMENTATOR_INCLUDED
00026 #define AGG_CONV_SEGMENTATOR_INCLUDED
00027 
00028 #include "agg_basics.h"
00029 #include "agg_conv_adaptor_vpgen.h"
00030 #include "agg_vpgen_segmentator.h"
00031 
00032 namespace agg
00033 {
00034 
00035     //========================================================conv_segmentator
00036     template<class VertexSource> 
00037     struct conv_segmentator : public conv_adaptor_vpgen<VertexSource, vpgen_segmentator>
00038     {
00039         typedef conv_adaptor_vpgen<VertexSource, vpgen_segmentator> base_type;
00040 
00041         conv_segmentator(VertexSource& vs) : 
00042             conv_adaptor_vpgen<VertexSource, vpgen_segmentator>(vs) {}
00043 
00044         void approximation_scale(double s) { base_type::vpgen().approximation_scale(s);        }
00045         double approximation_scale() const { return base_type::vpgen().approximation_scale();  }
00046 
00047     private:
00048         conv_segmentator(const conv_segmentator<VertexSource>&);
00049         const conv_segmentator<VertexSource>& 
00050             operator = (const conv_segmentator<VertexSource>&);
00051     };
00052 
00053 
00054 }
00055 
00056 #endif
00057 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines