utils/mobility-visualizer.h
author Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
Fri, 21 Mar 2008 13:41:16 -0700
changeset 2693 56e28e34e109
parent 1670 09ff9d07333e
permissions -rw-r--r--
TypeId::GetAttributeListN -> TypeId::GetAttributeN

/* -*- 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)