summaryrefslogtreecommitdiff
path: root/GLView.h
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 04:17:05 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-01-30 04:17:05 (GMT)
commit6940d171812565209efe679a5d923417c3f47d4a (patch)
tree2a05d2f8865ff1127f854db41bf31143f64ccf2d /GLView.h
parent2b19f33ee1ddce246c2bfe0a05fe379d0117a741 (diff)
reorganized file structure layout. more to follow...
git-svn-id: http://svn.clifford.at/openscad/trunk@364 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'GLView.h')
-rw-r--r--GLView.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/GLView.h b/GLView.h
deleted file mode 100644
index dd896fc..0000000
--- a/GLView.h
+++ /dev/null
@@ -1,81 +0,0 @@
-#ifndef GLVIEW_H_
-#define GLVIEW_H_
-
-#ifdef ENABLE_OPENCSG
-// this must be included before the GL headers
-# include <GL/glew.h>
-#endif
-
-#include <QGLWidget>
-#include <QLabel>
-
-class GLView : public QGLWidget
-{
- Q_OBJECT
- Q_PROPERTY(bool showAxes READ showAxes WRITE setShowAxes);
- Q_PROPERTY(bool showCrosshairs READ showCrosshairs WRITE setShowCrosshairs);
- Q_PROPERTY(bool orthoMode READ orthoMode WRITE setOrthoMode);
-
-public:
- GLView(QWidget *parent = NULL);
- void setRenderFunc(void (*func)(void*), void *userdata);
-#ifdef ENABLE_OPENCSG
- bool hasOpenCSGSupport() { return this->opencsg_support; }
-#endif
- // Properties
- bool showAxes() const { return this->showaxes; }
- void setShowAxes(bool enabled) { this->showaxes = enabled; }
- bool showCrosshairs() const { return this->showcrosshairs; }
- void setShowCrosshairs(bool enabled) { this->showcrosshairs = enabled; }
- bool orthoMode() const { return this->orthomode; }
- void setOrthoMode(bool enabled) { this->orthomode = enabled; }
-
- QLabel *statusLabel;
- double object_rot_x;
- double object_rot_y;
- double object_rot_z;
- double object_trans_x;
- double object_trans_y;
- double object_trans_z;
- GLint shaderinfo[11];
-
-private:
- void (*renderfunc)(void*);
- void *renderfunc_vp;
-
- bool showaxes;
- bool showcrosshairs;
- bool orthomode;
-
- double viewer_distance;
-
- double w_h_ratio;
-
-#ifdef ENABLE_OPENCSG
- bool opencsg_support;
-#endif
-
- bool mouse_drag_active;
- int last_mouse_x;
- int last_mouse_y;
-
- void keyPressEvent(QKeyEvent *event);
- void wheelEvent(QWheelEvent *event);
- void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- void mouseReleaseEvent(QMouseEvent *event);
-
- void initializeGL();
- void resizeGL(int w, int h);
- void paintGL();
-
-#ifdef ENABLE_OPENCSG
-private slots:
- void display_opengl20_warning();
-#endif
-
-signals:
- void doAnimateUpdate();
-};
-
-#endif
contact: Jan Huwald // Impressum