diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-29 13:37:16 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-29 13:37:16 +0000 |
commit | 409d3ce47d8a4d48947c7b19fc2460fd801b742c (patch) | |
tree | 3a6a029bcd1041a9bd88f8868bf11372c91ac5a7 /src/ui/modelview.h | |
parent | a7808ebdf39b549f4e0df38e6d897caa2dbb24bd (diff) |
Added 'testmodel' function, enabled autoscaling on ui::ModelView
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-x | src/ui/modelview.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/modelview.h b/src/ui/modelview.h index 7cbf76d..c235e99 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -26,6 +26,14 @@ public: inline math::Color const &color() const { return modelview_color; } + + inline float zoom() const { + return modelview_zoom; + } + + inline float radius() const { + return modelview_radius; + } void set_modelname(const char *modelname); @@ -45,6 +53,10 @@ public: * 1.0 is not zoomed out, 10.0 is zoomed out by a factor of 10 */ void set_zoom(const float zoom); + + inline void set_radius(const float radius) { + modelview_radius = radius; + } protected: /// draw the widget @@ -71,6 +83,7 @@ private: std::string modelview_modelname; math::Color modelview_color; float modelview_zoom; + float modelview_radius; math::Axis modelview_axis; math::Vector2f modelview_cursor; |