qvolray

annotate src/ui_sliceview.cc @ 37:450d4c50470f

- 16bit floating point textures halve gpu texture memory usage - slower transfer function change
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 01 Jan 2014 00:23:57 +0200
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 }