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

TFGL.cpp

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     6-20-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 /// TFGL.cpp
00019 ///  simianUI
00020 
00021 #include <GL/glew.h>
00022 #include "TFGL.h"
00023 #include <widget/FrameWidget.h>
00024 #include <item/GLWidgetFactory.h>
00025 
00026 using namespace gutz;
00027 
00028 TFGL::TFGL(QWidget *parent, const char *name)
00029 : RenderableQGL(parent, name) 
00030 {
00031    _cam =   new Camera();
00032    _cam->setLookAt(vec3f(0,0,0));
00033    _cam->setEyePos(vec3f(0,0,10));
00034    _cam->setUpVec(vec3f(0,1,0));
00035    _cam->setOrtho(0,1,0,1);
00036    _manip = new Manip();
00037 
00038    FrameWidgetSP frame = new FrameWidget(*genDefaultGLWidgetFactory(), 0, 
00039                                          vec3f(.4f,.4f,0.0f), 
00040                                          vec3f(.5f,.5f,0.0f),
00041                                          vec3f(),
00042                                          vec3f());
00043    
00044    addRenderable(frame.getPtr());
00045 }
00046 
00047 TFGL::~TFGL()
00048 {
00049 
00050 }
00051 
00052 void TFGL::init()
00053 {
00054 
00055 }

Send questions, comments, and bug reports to:
jmk