SpatiaLite
4.0.0-RC1
Main Page
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
headers
spatialite
gg_dynamic.h
Go to the documentation of this file.
1
/*
2
gg_dynamic.h -- Gaia common support for geometries: DynamicLine functions
3
4
version 4.0, 2012 August 6
5
6
Author: Sandro Furieri a.furieri@lqt.it
7
8
------------------------------------------------------------------------------
9
10
Version: MPL 1.1/GPL 2.0/LGPL 2.1
11
12
The contents of this file are subject to the Mozilla Public License Version
13
1.1 (the "License"); you may not use this file except in compliance with
14
the License. You may obtain a copy of the License at
15
http://www.mozilla.org/MPL/
16
17
Software distributed under the License is distributed on an "AS IS" basis,
18
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
19
for the specific language governing rights and limitations under the
20
License.
21
22
The Original Code is the SpatiaLite library
23
24
The Initial Developer of the Original Code is Alessandro Furieri
25
26
Portions created by the Initial Developer are Copyright (C) 2008-2012
27
the Initial Developer. All Rights Reserved.
28
29
Contributor(s):
30
31
32
Alternatively, the contents of this file may be used under the terms of
33
either the GNU General Public License Version 2 or later (the "GPL"), or
34
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
35
in which case the provisions of the GPL or the LGPL are applicable instead
36
of those above. If you wish to allow use of your version of this file only
37
under the terms of either the GPL or the LGPL, and not to allow others to
38
use your version of this file under the terms of the MPL, indicate your
39
decision by deleting the provisions above and replace them with the notice
40
and other provisions required by the GPL or the LGPL. If you do not delete
41
the provisions above, a recipient may use your version of this file under
42
the terms of any one of the MPL, the GPL or the LGPL.
43
44
*/
45
46
53
#ifndef _GG_DYNAMIC
54
#ifndef DOXYGEN_SHOULD_SKIP_THIS
55
#define _GG_DYNAMIC
56
#endif
57
58
#ifdef __cplusplus
59
extern
"C"
60
{
61
#endif
62
63
/* function prototypes */
64
75
GAIAGEO_DECLARE
gaiaDynamicLinePtr
gaiaAllocDynamicLine
(
void
);
76
84
GAIAGEO_DECLARE
void
gaiaFreeDynamicLine
(
gaiaDynamicLinePtr
p);
85
96
GAIAGEO_DECLARE
gaiaPointPtr
97
gaiaAppendPointToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
double
y);
98
110
GAIAGEO_DECLARE
gaiaPointPtr
111
gaiaAppendPointZToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
double
y,
112
double
z);
113
125
GAIAGEO_DECLARE
gaiaPointPtr
126
gaiaAppendPointMToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
double
y,
127
double
m);
128
141
GAIAGEO_DECLARE
gaiaPointPtr
142
gaiaAppendPointZMToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
143
double
y,
double
z,
double
m);
144
155
GAIAGEO_DECLARE
gaiaPointPtr
156
gaiaPrependPointToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
157
double
y);
158
170
GAIAGEO_DECLARE
gaiaPointPtr
171
gaiaPrependPointZToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
172
double
y,
double
z);
173
185
GAIAGEO_DECLARE
gaiaPointPtr
186
gaiaPrependPointMToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
187
double
y,
double
m);
188
201
GAIAGEO_DECLARE
gaiaPointPtr
202
gaiaPrependPointZMToDynamicLine
(
gaiaDynamicLinePtr
p,
double
x,
203
double
y,
double
z,
double
m);
204
218
GAIAGEO_DECLARE
gaiaPointPtr
gaiaDynamicLineInsertAfter
(
gaiaDynamicLinePtr
219
p,
gaiaPointPtr
pt,
220
double
x,
221
double
y);
222
236
GAIAGEO_DECLARE
gaiaPointPtr
gaiaDynamicLineInsertBefore
(
gaiaDynamicLinePtr
237
p,
238
gaiaPointPtr
pt,
239
double
x,
240
double
y);
241
252
GAIAGEO_DECLARE
void
gaiaDynamicLineDeletePoint
(
gaiaDynamicLinePtr
p,
253
gaiaPointPtr
pt);
254
265
GAIAGEO_DECLARE
gaiaDynamicLinePtr
gaiaCloneDynamicLine
(
gaiaDynamicLinePtr
266
org);
267
281
GAIAGEO_DECLARE
gaiaDynamicLinePtr
282
gaiaReverseDynamicLine
(
gaiaDynamicLinePtr
org);
283
301
GAIAGEO_DECLARE
gaiaDynamicLinePtr
302
gaiaDynamicLineSplitBefore
(
gaiaDynamicLinePtr
org,
gaiaPointPtr
point);
303
321
GAIAGEO_DECLARE
gaiaDynamicLinePtr
322
gaiaDynamicLineSplitAfter
(
gaiaDynamicLinePtr
org,
gaiaPointPtr
point);
323
341
GAIAGEO_DECLARE
gaiaDynamicLinePtr
342
gaiaDynamicLineJoinAfter
(
gaiaDynamicLinePtr
org,
gaiaPointPtr
point,
343
gaiaDynamicLinePtr
toJoin);
344
362
GAIAGEO_DECLARE
gaiaDynamicLinePtr
363
gaiaDynamicLineJoinBefore
(
gaiaDynamicLinePtr
org,
gaiaPointPtr
point,
364
gaiaDynamicLinePtr
toJoin);
365
380
GAIAGEO_DECLARE
gaiaPointPtr
gaiaDynamicLineFindByCoords
(
gaiaDynamicLinePtr
381
p,
double
x,
382
double
y);
383
394
GAIAGEO_DECLARE
gaiaPointPtr
gaiaDynamicLineFindByPos
(
gaiaDynamicLinePtr
p,
395
int
pos);
396
413
GAIAGEO_DECLARE
gaiaDynamicLinePtr
gaiaCreateDynamicLine
(
double
*coords,
414
int
points);
415
416
#ifdef __cplusplus
417
}
418
#endif
419
420
#endif
/* _GG_DYNAMIC */
Generated on Wed Sep 5 2012 10:45:33 for SpatiaLite by
1.8.1.1