aboutsummaryrefslogtreecommitdiff
path: root/generic/Map.c
diff options
context:
space:
mode:
authorlecoanet2000-11-13 09:51:54 +0000
committerlecoanet2000-11-13 09:51:54 +0000
commit00dc72795633532f61a101be4d566da6f282f308 (patch)
treecb78d52bdcc4cd29e89c68b4ca17e7fa10ae2147 /generic/Map.c
parentf829374097fb2aecf7c4acabc6d81a639571d05c (diff)
downloadtkzinc-00dc72795633532f61a101be4d566da6f282f308.zip
tkzinc-00dc72795633532f61a101be4d566da6f282f308.tar.gz
tkzinc-00dc72795633532f61a101be4d566da6f282f308.tar.bz2
tkzinc-00dc72795633532f61a101be4d566da6f282f308.tar.xz
Ajout de la routine Render
Diffstat (limited to 'generic/Map.c')
-rw-r--r--generic/Map.c43
1 files changed, 15 insertions, 28 deletions
diff --git a/generic/Map.c b/generic/Map.c
index e7dd9e6..2d6a8ed 100644
--- a/generic/Map.c
+++ b/generic/Map.c
@@ -79,10 +79,6 @@ typedef struct _MapItemStruct {
ZnList marks;
ZnList symbols;
ZnList texts;
-#ifdef PERFOS
- Chrono chrono_trans;
- Chrono chrono_draw;
-#endif
} MapItemStruct, *MapItem;
@@ -227,12 +223,6 @@ Init(Item item,
map->marks = NULL;
map->symbols = NULL;
map->texts = NULL;
-
-#ifdef PERFOS
- map->chrono_trans = NewChrono("Temps de transfo carte");
- map->chrono_draw = NewChrono("Temps de dessin carte");
- RazChronos();
-#endif
return ZN_OK;
}
@@ -487,10 +477,6 @@ ComputeCoordinates(Item item,
map_info = map->map_info;
-#ifdef PERFOS
- StartUCChrono(map->chrono_trans);
-#endif
-
num_points = 0;
num_dashed_points = 0;
num_dotted_points = 0;
@@ -850,12 +836,6 @@ ComputeCoordinates(Item item,
ZnListAssertSize(map->dotted_arcs, num_dotted_arcs);
ZnListAssertSize(map->mixed_arcs, num_mixed_arcs);
-#ifdef PERFOS
- StopUCChrono(map->chrono_trans);
- PrintChronos();
- RazChronos();
-#endif
-
/* If map is filled, only the vectors description is valid. */
if (!map->filled) {
if (map->symbol_patterns) {
@@ -1042,9 +1022,6 @@ Draw(Item item)
}
else { /* Not filled */
-#ifdef PERFOS
- StartUCChrono(map->chrono_draw);
-#endif
if (ZnListSize(map->vectors)) {
SetLineStyle(wi->dpy, wi->gc, LINE_SIMPLE);
values.fill_style = FillSolid;
@@ -1277,12 +1254,21 @@ Draw(Item item)
}
}
}
+}
-#ifdef PERFOS
- StopUCChrono(map->chrono_draw);
- PrintChronos();
- RazChronos();
-#endif
+
+/*
+ **********************************************************************************
+ *
+ * Render --
+ *
+ **********************************************************************************
+ */
+static void
+Render(Item item)
+{
+ /*WidgetInfo *wi = item->wi;
+ MapItem map = (MapItem) item;*/
}
@@ -1396,6 +1382,7 @@ static ItemClassStruct MAP_ITEM_CLASS = {
ComputeCoordinates,
ToArea,
Draw,
+ Render,
IsSensitive,
Pick,
NULL, /* PickVertex */