From 3fedb25ca1e56b2975a598a7193b965813ca1434 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 11 Feb 2010 21:49:26 +0100 Subject: blablaslba --- Keys.h | 28 ++++++++++++++++++++++++++++ Temparray.cpp | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 Keys.h diff --git a/Keys.h b/Keys.h new file mode 100644 index 0000000..b801142 --- /dev/null +++ b/Keys.h @@ -0,0 +1,28 @@ +/* + * Keys.h + * + * Created on: 10.02.2010 + * Author: constantin + */ + +#ifndef KEYS_H_ +#define KEYS_H_ + +#include + +enum Keys { + KEY_UP = 0, + KEY_DOWN, + KEY_LEFT, + KEY_RIGHT, + KEY_ZOOM_IN, + KEY_ZOOM_OUT, + KEY_TOP, + KEY_BOTTOM, + + KEY_LAST +}; + +typedef std::bitset Keyset; + +#endif /* KEYS_H_ */ diff --git a/Temparray.cpp b/Temparray.cpp index 115d199..39edd1b 100644 --- a/Temparray.cpp +++ b/Temparray.cpp @@ -47,6 +47,8 @@ void Temparray::calcTemp(){ float width2, height2, depth2, innerwidth2, innerdepth2; float loadableenergy, unloadableenergy; + calcweight(); + for(int i = 0; i < sx; ++i) { for(int j = 0; j < sy; ++j) { for(int k = 0; k < sz; ++k) { -- cgit v1.2.3