blib/lib/Math/Geometry/GPC.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« GPC.xs ↑ Summary
1 # This file was automatically generated by SWIG
2 package Math::Geometry::GPC;
3  
4 1 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 $VERSION = '1.03';
6  
7 =pod
8  
9 =head1 NAME
10  
11 Math::Geometry::GPC - Perl wrapper for Alan Murta's gpc library
12  
13 =head1 SYNOPSIS
14  
15 use Math::Geometry::GPC;
16  
17 =head1 Description
18  
19 This module is just a wrapper around the gpc C library written by Alan Murta
20  
21 gpc: General Polygon Clipping library (C) 1997-1999, Advanced Interfaces Group,
22 University of Manchester.
23  
24 Please refer to the gpc manual for more details on gpc.
25  
26 =head1 Methods
27  
28 The available methods are:
29  
30 =head2 Helper functions to access integer arrays
31  
32 =over 4
33  
34 =item * Math::Geometry::GPC::int_array
35  
36 =item * Math::Geometry::GPC::int_destroy
37  
38 =item * Math::Geometry::GPC::int_set
39  
40 =item * Math::Geometry::GPC::int_get
41  
42 =back
43  
44 =head2 Helper functions to access vertex arrays
45  
46 =over 4
47  
48 =item * Math::Geometry::GPC::gpc_vertex_array
49  
50 =item * Math::Geometry::GPC::gpc_vertex_destroy
51  
52 =item * Math::Geometry::GPC::gpc_vertex_set
53  
54 =item * Math::Geometry::GPC::gpc_vertex_get
55  
56 =back
57  
58 =head2 Helper functions to access vertex lists (arrays of vertex arrays)
59  
60 =over 4
61  
62 =item * Math::Geometry::GPC::gpc_vertex_list_array
63  
64 =item * Math::Geometry::GPC::gpc_vertex_list_destroy
65  
66 =item * Math::Geometry::GPC::gpc_vertex_list_set
67  
68 =item * Math::Geometry::GPC::gpc_vertex_list_get
69  
70 =back
71  
72 =head2 vertex structure functions
73  
74 =over 4
75  
76 =item * Math::Geometry::GPC::gpc_vertex_x_set
77  
78 =item * Math::Geometry::GPC::gpc_vertex_x_get
79  
80 =item * Math::Geometry::GPC::gpc_vertex_y_set
81  
82 =item * Math::Geometry::GPC::gpc_vertex_y_get
83  
84 =item * Math::Geometry::GPC::new_gpc_vertex
85  
86 =item * Math::Geometry::GPC::delete_gpc_vertex
87  
88 =back
89  
90 =head2 vertex list structure functions
91  
92 =over 4
93  
94 =item * Math::Geometry::GPC::gpc_vertex_list_num_vertices_set
95  
96 =item * Math::Geometry::GPC::gpc_vertex_list_num_vertices_get
97  
98 =item * Math::Geometry::GPC::gpc_vertex_list_vertex_set
99  
100 =item * Math::Geometry::GPC::gpc_vertex_list_vertex_get
101  
102 =item * Math::Geometry::GPC::new_gpc_vertex_list
103  
104 =item * Math::Geometry::GPC::delete_gpc_vertex_list
105  
106 =back
107  
108 =head2 polygon structure functions
109  
110 =over 4
111  
112 =item * Math::Geometry::GPC::gpc_polygon_num_contours_set
113  
114 =item * Math::Geometry::GPC::gpc_polygon_num_contours_get
115  
116 =item * Math::Geometry::GPC::gpc_polygon_hole_set
117  
118 =item * Math::Geometry::GPC::gpc_polygon_hole_get
119  
120 =item * Math::Geometry::GPC::gpc_polygon_contour_set
121  
122 =item * Math::Geometry::GPC::gpc_polygon_contour_get
123  
124 =item * Math::Geometry::GPC::new_gpc_polygon
125  
126 =item * Math::Geometry::GPC::delete_gpc_polygon
127  
128 =back
129  
130 =head2 tristrip structure functions
131  
132 =over 4
133  
134 =item * Math::Geometry::GPC::gpc_tristrip_num_strips_set
135  
136 =item * Math::Geometry::GPC::gpc_tristrip_num_strips_get
137  
138 =item * Math::Geometry::GPC::gpc_tristrip_strip_set
139  
140 =item * Math::Geometry::GPC::gpc_tristrip_strip_get
141  
142 =item * Math::Geometry::GPC::new_gpc_tristrip
143  
144 =item * Math::Geometry::GPC::delete_gpc_tristrip
145  
146 =back
147  
148 =head2 gpc routines
149  
150 =over 4
151  
152 =item * Math::Geometry::GPC::gpc_read_polygon
153  
154 =item * Math::Geometry::GPC::gpc_write_polygon
155  
156 =item * Math::Geometry::GPC::gpc_add_contour
157  
158 =item * Math::Geometry::GPC::gpc_polygon_clip
159  
160 =item * Math::Geometry::GPC::gpc_tristrip_clip
161  
162 =item * Math::Geometry::GPC::gpc_polygon_to_tristrip
163  
164 =item * Math::Geometry::GPC::gpc_free_polygon
165  
166 =item * Math::Geometry::GPC::gpc_free_tristrip
167  
168 =back
169  
170 =cut
171  
172 1 require Exporter;
173 1 require DynaLoader;
174 1 @ISA = qw(Exporter DynaLoader);
175 package Math::Geometry::GPC;
176 1 bootstrap Math::Geometry::GPC;
177 package Math::Geometry::GPC;
178 1 @EXPORT = qw( );
179  
180 1 1;
« GPC.xs ↑ Summary