iPDC-suite/iPDC/inc/data_vis.h

60 lines
1.8 KiB
C
Raw Normal View History

2022-11-18 13:00:12 +05:30
/* -----------------------------------------------------------------------------
* data_vis.h
*
* iPDC - Phasor Data Concentrator
*
* Copyright (C) 2022-2023 Nitesh Pandit
* Copyright (C) 2022-2023 Kedar V. Khandeparkar
2022-11-18 15:10:42 +05:30
* Copyright (C) 2022-2023 Pavan Kumar V Patil
* Copyright (C) 2022-2023 Karthik Murakonda
2022-11-18 13:00:12 +05:30
*
* 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 the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Authors:
2022-11-18 14:22:20 +05:30
* M V Karthik <karthik.murakonda14@gmail.com>
2022-11-18 13:00:12 +05:30
* Pavan Kumar V Patil <pavanvpatil01@gmail.com>
*
* ----------------------------------------------------------------------------- */
#include <gtk/gtk.h>
#include <osm-gps-map.h>
#include "livechart.h"
2022-11-18 13:00:12 +05:30
typedef struct
{
2022-10-02 21:42:04 +05:30
OsmGpsMap *util_map;
GdkPixbuf *g_red_image;
GdkPixbuf *g_green_image;
OsmGpsMapImage *g_last_image;
2022-10-19 16:30:42 +05:30
int current_selection;
2022-11-18 13:00:12 +05:30
} myParameters;
2022-10-02 21:42:04 +05:30
2022-11-18 13:00:12 +05:30
struct vis_data
{
2022-10-28 18:18:01 +05:30
int id;
float lat;
float lon;
GdkColor color;
OsmGpsMapImage *last_image; // TODO:
2022-10-28 18:18:01 +05:30
GTimeVal last_update_time;
LiveChartSerie *serie_vol;
LiveChartSerie *serie_freq;
LiveChartSerie *serie_dfreq;
2022-10-28 18:18:01 +05:30
struct vis_data *next;
};
struct vis_data *vis_data_head;
2022-10-19 16:30:42 +05:30
2022-11-18 13:00:12 +05:30
gboolean update_vis(gpointer *pars);