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-11-29 13:37:16 +0000
committerStijn Buys <ingar@osirion.org>2010-11-29 13:37:16 +0000
commit409d3ce47d8a4d48947c7b19fc2460fd801b742c (patch)
tree3a6a029bcd1041a9bd88f8868bf11372c91ac5a7 /src/ui/modelview.h
parenta7808ebdf39b549f4e0df38e6d897caa2dbb24bd (diff)
Added 'testmodel' function, enabled autoscaling on ui::ModelView
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-xsrc/ui/modelview.h13
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;