qvolray

annotate src/ui_sliceview.cc @ 28:aeef3c2ae472

the slice widget works fine
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 16:35:30 +0300
parents 011ac823600c
children
rev   line source
nuclear@27 1 #include "ui_sliceview.h"
nuclear@28 2 #include "volray.h"
nuclear@27 3
nuclear@27 4 SliceGLView::SliceGLView(QGLWidget *share_widget)
nuclear@27 5 : QGLWidget(QGLFormat(QGL::DoubleBuffer), 0, share_widget)
nuclear@27 6 {
nuclear@27 7 }
nuclear@27 8
nuclear@27 9 QSize SliceGLView::minimumSizeHint() const
nuclear@27 10 {
nuclear@27 11 return QSize(160, 160);
nuclear@27 12 }
nuclear@27 13
nuclear@27 14 void SliceGLView::initializeGL()
nuclear@27 15 {
nuclear@27 16 }
nuclear@27 17
nuclear@27 18 void SliceGLView::resizeGL(int xsz, int ysz)
nuclear@27 19 {
nuclear@27 20 glViewport(0, 0, xsz, ysz);
nuclear@27 21 }
nuclear@27 22
nuclear@27 23 void SliceGLView::paintGL()
nuclear@27 24 {
nuclear@28 25 volray_draw_slice();
nuclear@27 26 }