From 09200a607661f739782a966807d31345485e2c41 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Thu, 20 Dec 2018 12:20:19 -0500 Subject: added animation example, and did many fixes to the voronoi system --- src/animate.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/animate.hpp (limited to 'src/animate.hpp') diff --git a/src/animate.hpp b/src/animate.hpp new file mode 100644 index 0000000..793771d --- /dev/null +++ b/src/animate.hpp @@ -0,0 +1,24 @@ + + +#include +#include + +#include "analysis_tools.hpp" + +#include + +class animate : public hooks { + private: + unsigned int Lx; + unsigned int Ly; + Graph G; + public: + long double lv; + std::list> avalanches; + + animate(unsigned int Lx, unsigned int Ly, unsigned int window_size, int argc, char *argv[]); + + void pre_fracture(const network &) override; + void bond_broken(const network& net, const current_info& cur, unsigned int i) override; + void post_fracture(network &n) override; +}; -- cgit v1.2.3-70-g09d2