summaryrefslogtreecommitdiff
path: root/src/GLView.h
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-25 01:04:50 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-25 01:04:50 (GMT)
commit8738cdc03451803014ca84f8614bdff1ff393ca9 (patch)
treedb932377ea156d9caf5f47fec3b7bb9466273fe9 /src/GLView.h
parenteb2c0d38f22f781cf59ca7078bfec260148ca584 (diff)
split out axes functions. begin to split out opencsg pre-rendering
Diffstat (limited to 'src/GLView.h')
-rw-r--r--src/GLView.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/GLView.h b/src/GLView.h
index 00d2da3..de8f65b 100644
--- a/src/GLView.h
+++ b/src/GLView.h
@@ -3,12 +3,15 @@
/* GLView: A basic OpenGL rectangle for rendering images.
-Inherited by QGLview (for Qt GUI) and OffscreenView (used in tests and
-for offscreen command-line rendering).
+Inherited by
+
+*QGLview (for Qt GUI)
+*OffscreenView (used in tests and for offscreen command-line rendering).
There are two different types of cameras. A 'gimbal' based camera set
using translation & euler-angles (object_trans/object_rot/distance) and a
'plain' camera set using eye-position, 'look at' center point, and 'up'
+The camera systems are not totally integrated or interchangable (yet)
*/
@@ -33,6 +36,7 @@ public:
void initializeGL();
void resizeGL(int w, int h);
+ virtual void paintGL() = 0;
void setGimbalCamera(const Eigen::Vector3d &pos, const Eigen::Vector3d &rot, double distance);
void setupGimbalPerspective();
@@ -42,6 +46,10 @@ public:
void setupPerspective();
void setupOrtho(bool offset=false);
+ void showCrosshairs();
+ void showAxes();
+ void showSmallaxes();
+
virtual bool save(const char *filename) = 0;
virtual std::string getRendererInfo() const = 0;
@@ -68,10 +76,6 @@ public:
bool opencsg_support;
int opencsg_id;
#endif
-/*
- void paintGL(); //
-*/
-
};
#endif
contact: Jan Huwald // Impressum