Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-10-04 13:44:57 +0000
committerStijn Buys <ingar@osirion.org>2010-10-04 13:44:57 +0000
commit7a75ef50dcf1955739969b47ff88c6fce9c3843a (patch)
treeae5db0e3315abc8c9066deb3b1e79f5ae48c8775 /src/ui/modelview.h
parent75906b43ecb9a04fdab365bd8b1a00fbdbc66918 (diff)
modelview widget rotation manipulation
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-xsrc/ui/modelview.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/modelview.h b/src/ui/modelview.h
index 89b6554..cb01dcb 100755
--- a/src/ui/modelview.h
+++ b/src/ui/modelview.h
@@ -7,6 +7,7 @@
#ifndef __INCLUDED_UI_MODELVIEW_H__
#define __INCLUDED_UI_MODELVIEW_H__
+#include "math/axis.h"
#include "ui/widget.h"
namespace ui
@@ -57,11 +58,24 @@ protected:
/// keypress event handler
virtual bool on_keypress(const int key, const unsigned int modifier);
+
+ /// keyrelease event handler
+ virtual bool on_keyrelease(const int key, const unsigned int modifier);
+
+ virtual void on_mouseover(const math::Vector2f &cursor);
+
+ /// mouse movement handler
+ virtual void on_mousemove(const math::Vector2f &cursor);
private:
std::string modelview_modelname;
math::Color modelview_color;
float modelview_zoom;
+
+ math::Axis modelview_axis;
+ math::Vector2f modelview_cursor;
+ bool modelview_manip;
+ //math::Axis modelview_manipaxis;
};
}