/*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include <math.h>
#include <rsl.h>
-#include <gis/gis.h>
+#include <gis.h>
#include "radar.h"
#include "marching.h"
buf[buf_i+0] = colormap->data[val][0];
buf[buf_i+1] = colormap->data[val][1];
buf[buf_i+2] = colormap->data[val][2];
- buf[buf_i+3] = colormap->data[val][3]; // TESTING
+ buf[buf_i+3] = colormap->data[val][3]*0.75; // TESTING
if (val == BADVAL || val == RFVAL || val == APFLAG ||
val == NOTFOUND_H || val == NOTFOUND_V || val == NOECHO) {
buf[buf_i+3] = 0x00; // transparent
static gpointer _draw_radar(GisCallback *callback, gpointer _self)
{
GisPluginRadar *self = GIS_PLUGIN_RADAR(_self);
+
+ /* Draw wsr88d */
if (self->cur_sweep == NULL)
return NULL;
g_debug("GisPluginRadar: _draw_radar");
}
/* Add renderers */
- GisCallback *callback;
-
- callback = gis_callback_new(_draw_radar, self);
- gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_WORLD, TRUE);
+ GisCallback *radar_cb = gis_callback_new(_draw_radar, self);
+ GisCallback *hud_cb = gis_callback_new(_draw_hud, self);
- callback = gis_callback_new(_draw_hud, self);
- gis_viewer_add(viewer, GIS_OBJECT(callback), GIS_LEVEL_HUD, FALSE);
+ gis_viewer_add(viewer, GIS_OBJECT(radar_cb), GIS_LEVEL_WORLD, TRUE);
+ gis_viewer_add(viewer, GIS_OBJECT(hud_cb), GIS_LEVEL_HUD, FALSE);
return self;
}