utils/mobility-visualizer.h
author Gustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 02 Sep 2008 11:12:42 +0100
changeset 3574 b6804efbe16b
parent 1670 09ff9d07333e
permissions -rw-r--r--
New pybindgen and API rescan. Extensive API description files changes because pybindgen now handles consts differently.

/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include <vector>

int model_init (int argc, char *argv[], double *x1, double *y1, double *x2, double *y2);

struct NodeUpdate
{
    void *node;
    double x;
    double y;
    double vx;
    double vy;
};

struct ViewUpdateData
{
  std::vector<NodeUpdate> updateList;
  double time;
};

void view_update (ViewUpdateData *updateData);

#define SAMPLE_INTERVAL (1.0/30)