summaryrefslogtreecommitdiff
path: root/src/animate.hpp
blob: fcb89fca0e723a0d5bacbfb61a8bb93f437f5e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22


#include <functional>
#include <hooks.hpp>

#include "analysis_tools.hpp"

#include <GL/glut.h>

class animate : public hooks {
  private:
    Graph G;
  public:
    long double lv;
    std::list<std::list<unsigned>> avalanches;

    animate(double Lx, double Ly, unsigned window_size, int argc, char *argv[]);

    void pre_fracture(const network &) override;
    void bond_broken(const network& net, const current_info& cur, unsigned i) override;
    void post_fracture(network &n) override;
};