arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

SimianQGL.cpp

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     8-29-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 
00019 #include <GL/glew.h>
00020 #include "SimianQGL.h"
00021 #include <eventGutz.h>
00022 
00023 using namespace gutz;
00024 
00025 SimianQGL::SimianQGL(QWidget *parent, const char *name)
00026 : RenderableQGL(parent,name)
00027 {}
00028 
00029 void SimianQGL::setVolumeRenderer(VolRenBaseSP vrb)
00030 {
00031    if(_vrb)
00032       delRenderable(_vrb);
00033    _vrb = vrb;
00034    addRenderable(_vrb);
00035 }
00036 
00037 gutz::vec3f  SimianQGL::getLastCenter() const
00038 {
00039    if(!_vrb) return gutz::vec3f_max;
00040 
00041    gutz::CameraEvent c(_cam,_manip);
00042    return _vrb->getCenter(c);
00043 }

Send questions, comments, and bug reports to:
jmk