From 7a75ef50dcf1955739969b47ff88c6fce9c3843a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Oct 2010 13:44:57 +0000 Subject: modelview widget rotation manipulation --- src/ui/modelview.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/ui/modelview.h') 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; }; } -- cgit v1.2.3