summaryrefslogtreecommitdiff
path: root/agg/inc/agg_conv_gpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'agg/inc/agg_conv_gpc.h')
-rwxr-xr-xagg/inc/agg_conv_gpc.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/agg/inc/agg_conv_gpc.h b/agg/inc/agg_conv_gpc.h
index 1810309d208a..8064a0a1451e 100755
--- a/agg/inc/agg_conv_gpc.h
+++ b/agg/inc/agg_conv_gpc.h
@@ -2,8 +2,8 @@
// Anti-Grain Geometry - Version 2.3
// Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
//
-// Permission to copy, use, modify, sell and distribute this software
-// is granted provided this copyright notice appears in all copies.
+// Permission to copy, use, modify, sell and distribute this software
+// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
//
@@ -13,7 +13,7 @@
// http://www.antigrain.com
//----------------------------------------------------------------------------
//
-// General Polygon Clipper based on the GPC library by Alan Murta
+// General Polygon Clipper based on the GPC library by Alan Murta
// Union, Intersection, XOR, A-B, B-A
// Contact the author if you intend to use it in commercial applications!
// http://www.cs.man.ac.uk/aig/staff/alan/software/
@@ -29,9 +29,9 @@
#include "agg_array.h"
#include "agg_vertex_iterator.h"
-extern "C"
-{
-#include "gpc.h"
+extern "C"
+{
+#include "gpc.h"
}
namespace agg
@@ -191,7 +191,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::free_polygon(gpc_polygon& p)
{
int i;
@@ -206,7 +206,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::free_result()
{
if(m_result.contour)
@@ -218,7 +218,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::free_gpc_data()
{
free_polygon(m_poly_a);
@@ -228,7 +228,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::start_contour()
{
contour_header_type h;
@@ -239,7 +239,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
inline void conv_gpc<VSA, VSB>::add_vertex(double x, double y)
{
gpc_vertex v;
@@ -250,14 +250,14 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::end_contour(unsigned orientation)
{
if(m_contour_accumulator.size())
{
if(m_vertex_accumulator.size() > 2)
{
- contour_header_type& h =
+ contour_header_type& h =
m_contour_accumulator[m_contour_accumulator.size() - 1];
h.num_vertices = m_vertex_accumulator.size();
@@ -286,7 +286,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::make_polygon(gpc_polygon& p)
{
free_polygon(p);
@@ -316,7 +316,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::start_extracting()
{
m_status = status_move_to;
@@ -326,7 +326,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
bool conv_gpc<VSA, VSB>::next_contour()
{
if(++m_contour < m_result.num_contours)
@@ -339,7 +339,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
inline bool conv_gpc<VSA, VSB>::next_vertex(double* x, double* y)
{
const gpc_vertex_list& vlist = m_result.contour[m_contour];
@@ -355,7 +355,7 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
void conv_gpc<VSA, VSB>::rewind(unsigned id)
{
free_result();
@@ -405,12 +405,12 @@ namespace agg
//------------------------------------------------------------------------
- template<class VSA, class VSB>
+ template<class VSA, class VSB>
unsigned conv_gpc<VSA, VSB>::vertex(double* x, double* y)
{
if(m_status == status_move_to)
{
- if(next_contour())
+ if(next_contour())
{
if(next_vertex(x, y))
{
@@ -436,7 +436,7 @@ namespace agg
return path_cmd_stop;
}
-
+
}