aboutsummaryrefslogtreecommitdiff
path: root/generic/Track.c
diff options
context:
space:
mode:
authorlecoanet2000-05-11 13:56:44 +0000
committerlecoanet2000-05-11 13:56:44 +0000
commit9663a916b72352db78f2d17d5268c1018904f967 (patch)
tree9ad38bc29d7061e25f37d593c34d8db9605ac396 /generic/Track.c
parent92d9da5513a7aa260d699b547675efeef805f1b1 (diff)
downloadtkzinc-9663a916b72352db78f2d17d5268c1018904f967.zip
tkzinc-9663a916b72352db78f2d17d5268c1018904f967.tar.gz
tkzinc-9663a916b72352db78f2d17d5268c1018904f967.tar.bz2
tkzinc-9663a916b72352db78f2d17d5268c1018904f967.tar.xz
Adaptation suite � la r�alisation des polygones multi-contours.
Correction d'un bug emp�chant l'antirec ailleurs que dans le topgroup.
Diffstat (limited to 'generic/Track.c')
-rw-r--r--generic/Track.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/generic/Track.c b/generic/Track.c
index 742274d..b3051db 100644
--- a/generic/Track.c
+++ b/generic/Track.c
@@ -945,7 +945,7 @@ ToArea(Item item,
if (track->leader_first_end != NULL) {
GetLineEnd(&points[0], &points[1], track->leader_width,
CapRound, track->leader_first_end, end_points);
- if (PolygonInBBox(end_points, LINE_END_POINTS, area) != inside) {
+ if (PolygonInBBox(end_points, LINE_END_POINTS, area, NULL) != inside) {
/*printf("track leader\n");*/
return 0;
}
@@ -953,7 +953,7 @@ ToArea(Item item,
if (track->leader_last_end != NULL) {
GetLineEnd(&points[num_points-1], &points[num_points-2], track->leader_width,
CapRound, track->leader_last_end, end_points);
- if (PolygonInBBox(end_points, LINE_END_POINTS, area) != inside) {
+ if (PolygonInBBox(end_points, LINE_END_POINTS, area, NULL) != inside) {
/*printf("track leader\n");*/
return 0;
}
@@ -1412,7 +1412,7 @@ SendTrackToOm(void *ptr,
zn_bbox.corner.y = wi->height;
if (current_item == ZN_NO_ITEM) {
- current_item = ((GroupItem) wi->top_group)->head;
+ current_item = ((GroupItem) wi->om_group)->head;
}
else {
current_item = current_item->next;
@@ -1625,6 +1625,7 @@ GetAnchor(Item item,
*/
static int
Coords(Item item,
+ int contour,
int index,
int cmd,
ZnPoint **pts,
@@ -1667,9 +1668,9 @@ Coords(Item item,
*/
static ItemClassStruct TRACK_ITEM_CLASS = {
sizeof(TrackItemStruct),
- True,
- True,
- True,
+ True, /* has_fields */
+ True, /* has_parts */
+ True, /* has_anchors */
"track",
track_attrs,
Init,
@@ -1679,21 +1680,23 @@ static ItemClassStruct TRACK_ITEM_CLASS = {
Query,
GetFieldSet,
GetAnchor,
- NULL,
+ NULL, /* GetClipVertices */
Coords,
+ NULL, /* Contour */
ComputeCoordinates,
ToArea,
Draw,
IsSensitive,
Pick,
+ NULL, /* PickVertex */
PostScript
};
static ItemClassStruct WAY_POINT_ITEM_CLASS = {
sizeof(TrackItemStruct),
- True,
- True,
- True,
+ True, /* has_fields */
+ True, /* has_parts */
+ True, /* has_anchors */
"waypoint",
wp_attrs,
Init,
@@ -1703,13 +1706,15 @@ static ItemClassStruct WAY_POINT_ITEM_CLASS = {
Query,
GetFieldSet,
GetAnchor,
- NULL,
+ NULL, /* GetClipVertices */
Coords,
+ NULL, /* Contour */
ComputeCoordinates,
ToArea,
Draw,
IsSensitive,
Pick,
+ NULL, /* PickVertex */
PostScript
};