qvolray

annotate src/ui_xferview.cc @ 30:40df2cdc6323

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