summaryrefslogtreecommitdiff
path: root/src/animate.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/animate.hpp')
-rw-r--r--src/animate.hpp24
1 files changed, 24 insertions, 0 deletions
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 <functional>
+#include <hooks.hpp>
+
+#include "analysis_tools.hpp"
+
+#include <GL/glut.h>
+
+class animate : public hooks {
+ private:
+ unsigned int Lx;
+ unsigned int Ly;
+ Graph G;
+ public:
+ long double lv;
+ std::list<std::list<unsigned int>> 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;
+};