SpatiaLite
4.3.0
|
Geometry handling functions: DynamicLine handling. More...
Go to the source code of this file.
Functions | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaAllocDynamicLine (void) |
Creates a new dynamicly growing line/ring object. More... | |
GAIAGEO_DECLARE void | gaiaFreeDynamicLine (gaiaDynamicLinePtr p) |
Destroys a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaAppendPointToDynamicLine (gaiaDynamicLinePtr p, double x, double y) |
Appends a new 2D Point [XY] at the end of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaAppendPointZToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double z) |
Appends a new 3D Point [XYZ] at the end of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaAppendPointMToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double m) |
Appends a new 2D Point [XYM] at the end of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaAppendPointZMToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double z, double m) |
Appends a new 3D Point [XYZM] at the end of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaPrependPointToDynamicLine (gaiaDynamicLinePtr p, double x, double y) |
Appends a new 2D Point [XY] before the first one of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaPrependPointZToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double z) |
Appends a new 3D Point [XYZ] before the first one of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaPrependPointMToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double m) |
Appends a new 2D Point [XYM] before the first one of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaPrependPointZMToDynamicLine (gaiaDynamicLinePtr p, double x, double y, double z, double m) |
Appends a new 3D Point [XYZM] before the first one of a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaDynamicLineInsertAfter (gaiaDynamicLinePtr p, gaiaPointPtr pt, double x, double y) |
Appends a new 2D Point [XY] immediately after the given Point into a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaDynamicLineInsertBefore (gaiaDynamicLinePtr p, gaiaPointPtr pt, double x, double y) |
Appends a new 2D Point [XY] immediately before the given Point into a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE void | gaiaDynamicLineDeletePoint (gaiaDynamicLinePtr p, gaiaPointPtr pt) |
Removes a given Point from a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaCloneDynamicLine (gaiaDynamicLinePtr org) |
Duplicates a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaReverseDynamicLine (gaiaDynamicLinePtr org) |
Duplicates and reverts a dynamically growing line/ring object. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaDynamicLineSplitBefore (gaiaDynamicLinePtr org, gaiaPointPtr point) |
Cuts a dynamically growing line/ring in two halves, using a given cut point. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaDynamicLineSplitAfter (gaiaDynamicLinePtr org, gaiaPointPtr point) |
Cuts a dynamically growing line/ring in two halves, using a given cut point. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaDynamicLineJoinAfter (gaiaDynamicLinePtr org, gaiaPointPtr point, gaiaDynamicLinePtr toJoin) |
Merges two dynamically growing line/ring object into a single one. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaDynamicLineJoinBefore (gaiaDynamicLinePtr org, gaiaPointPtr point, gaiaDynamicLinePtr toJoin) |
Merges two dynamically growing line/ring object into a single one. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaDynamicLineFindByCoords (gaiaDynamicLinePtr p, double x, double y) |
Finds a Point within a dymically growing line/ring object [by coords]. More... | |
GAIAGEO_DECLARE gaiaPointPtr | gaiaDynamicLineFindByPos (gaiaDynamicLinePtr p, int pos) |
Finds a Point within a dymically growing line/ring object [by position]. More... | |
GAIAGEO_DECLARE gaiaDynamicLinePtr | gaiaCreateDynamicLine (double *coords, int points) |
Creates a new dynamicly growing line/ring object. More... | |
Geometry handling functions: DynamicLine handling.
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaAllocDynamicLine | ( | void | ) |
Creates a new dynamicly growing line/ring object.
GAIAGEO_DECLARE gaiaPointPtr gaiaAppendPointMToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | m | ||
) |
Appends a new 2D Point [XYM] at the end of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
m | M measure of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaAppendPointToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y | ||
) |
Appends a new 2D Point [XY] at the end of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaAppendPointZMToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | z, | ||
double | m | ||
) |
Appends a new 3D Point [XYZM] at the end of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
z | Z coordinate of the Point |
m | M measure of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaAppendPointZToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Appends a new 3D Point [XYZ] at the end of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
z | Z coordinate of the Point |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaCloneDynamicLine | ( | gaiaDynamicLinePtr | org | ) |
Duplicates a dynamically growing line/ring object.
org | pointer to dynamically growing line/ring object [origin]. |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaCreateDynamicLine | ( | double * | coords, |
int | points | ||
) |
Creates a new dynamicly growing line/ring object.
coords | an array of COORDs, any dimension [XY, XYZ, XYM, XYZM] |
points | number of points [aka vertices] into the array |
GAIAGEO_DECLARE void gaiaDynamicLineDeletePoint | ( | gaiaDynamicLinePtr | p, |
gaiaPointPtr | pt | ||
) |
Removes a given Point from a dynamically growing line/ring object.
p | pointer to dynamically growing line/ring object. |
pt | pointer to given Point. |
GAIAGEO_DECLARE gaiaPointPtr gaiaDynamicLineFindByCoords | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y | ||
) |
Finds a Point within a dymically growing line/ring object [by coords].
p | pointer to dymamically line/ring object. |
x | Point X coordinate. |
y | Point Y coordinate. |
GAIAGEO_DECLARE gaiaPointPtr gaiaDynamicLineFindByPos | ( | gaiaDynamicLinePtr | p, |
int | pos | ||
) |
Finds a Point within a dymically growing line/ring object [by position].
p | pointer to dymamically line/ring object. |
pos | relative position [first Point has index 0]. |
GAIAGEO_DECLARE gaiaPointPtr gaiaDynamicLineInsertAfter | ( | gaiaDynamicLinePtr | p, |
gaiaPointPtr | pt, | ||
double | x, | ||
double | y | ||
) |
Appends a new 2D Point [XY] immediately after the given Point into a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
pt | pointer to the given Point. |
x | X coordinate of the Point to be appended |
y | Y coordinate of the Point to be appended |
GAIAGEO_DECLARE gaiaPointPtr gaiaDynamicLineInsertBefore | ( | gaiaDynamicLinePtr | p, |
gaiaPointPtr | pt, | ||
double | x, | ||
double | y | ||
) |
Appends a new 2D Point [XY] immediately before the given Point into a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
pt | pointer to the given Point. |
x | X coordinate of the Point to be appended |
y | Y coordinate of the Point to be appended |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaDynamicLineJoinAfter | ( | gaiaDynamicLinePtr | org, |
gaiaPointPtr | point, | ||
gaiaDynamicLinePtr | toJoin | ||
) |
Merges two dynamically growing line/ring object into a single one.
org | pointer to the first input object [first line]. |
point | pointer to the reference Point object. |
toJoin | pointer to the second input object [second line]. |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaDynamicLineJoinBefore | ( | gaiaDynamicLinePtr | org, |
gaiaPointPtr | point, | ||
gaiaDynamicLinePtr | toJoin | ||
) |
Merges two dynamically growing line/ring object into a single one.
org | pointer to the first input object [first line]. |
point | pointer to the reference Point object. |
toJoin | pointer to the second input object [second line]. |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaDynamicLineSplitAfter | ( | gaiaDynamicLinePtr | org, |
gaiaPointPtr | point | ||
) |
Cuts a dynamically growing line/ring in two halves, using a given cut point.
org | pointer to the input object [the line to be split]. |
point | pointer to given cut point. |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaDynamicLineSplitBefore | ( | gaiaDynamicLinePtr | org, |
gaiaPointPtr | point | ||
) |
Cuts a dynamically growing line/ring in two halves, using a given cut point.
org | pointer to the input object [the line to be split]. |
point | pointer to given cut point. |
GAIAGEO_DECLARE void gaiaFreeDynamicLine | ( | gaiaDynamicLinePtr | p | ) |
Destroys a dynamically growing line/ring object.
p | pointer to object to be destroyed |
GAIAGEO_DECLARE gaiaPointPtr gaiaPrependPointMToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | m | ||
) |
Appends a new 2D Point [XYM] before the first one of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
m | M measure of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaPrependPointToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y | ||
) |
Appends a new 2D Point [XY] before the first one of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaPrependPointZMToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | z, | ||
double | m | ||
) |
Appends a new 3D Point [XYZM] before the first one of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
z | Z coordinate of the Point |
m | M measure of the Point |
GAIAGEO_DECLARE gaiaPointPtr gaiaPrependPointZToDynamicLine | ( | gaiaDynamicLinePtr | p, |
double | x, | ||
double | y, | ||
double | z | ||
) |
Appends a new 3D Point [XYZ] before the first one of a dynamically growing line/ring object.
p | pointer to the dynamically growing line/ring object. |
x | X coordinate of the Point |
y | Y coordinate of the Point |
z | Z coordinate of the Point |
GAIAGEO_DECLARE gaiaDynamicLinePtr gaiaReverseDynamicLine | ( | gaiaDynamicLinePtr | org | ) |
Duplicates and reverts a dynamically growing line/ring object.
org | pointer to dynamically growing line/ring object [origin]. |