qvolray

view src/ui_sliceview.cc @ 30:40df2cdc6323

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