Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

GlUserData.h

Go to the documentation of this file.
00001 /*************** <auto-copyright.pl BEGIN do not edit this line> **************
00002  *
00003  * VR Juggler is (C) Copyright 1998-2003 by Iowa State University
00004  *
00005  * Original Authors:
00006  *   Allen Bierbaum, Christopher Just,
00007  *   Patrick Hartling, Kevin Meinert,
00008  *   Carolina Cruz-Neira, Albert Baker
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the
00022  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023  * Boston, MA 02111-1307, USA.
00024  *
00025  * -----------------------------------------------------------------
00026  * File:          $RCSfile: GlUserData.h,v $
00027  * Date modified: $Date: 2003/03/06 17:11:22 $
00028  * Version:       $Revision: 1.18 $
00029  * -----------------------------------------------------------------
00030  *
00031  *************** <auto-copyright.pl END do not edit this line> ***************/
00032 
00033 #ifndef _VRJ_GL_USER_DATA_H_
00034 #define _VRJ_GL_USER_DATA_H_
00035 //#pragma once
00036 
00037 #include <vrj/vrjConfig.h>
00038 
00039 /*
00040 #include <vrj/Kernel/User.h>
00041 #include <vrj/Display/Projection.h>
00042 #include <vrj/Display/Viewport.h>
00043 #include <vrj/Draw/OGL/GlWindow.h>
00044 */
00045 
00046 namespace vrj
00047 {
00048 
00049 // Declare the class that we need pointers too below
00050 class User;
00051 class Projection;
00052 class Viewport;
00053 class GlWindow;
00054 
00055 
00068 class GlUserData
00069 {
00070 public:
00071    GlUserData()
00072    {
00073       mUser = NULL;
00074       mProj = NULL;
00075    }
00076 
00077    User* getUser()
00078       { return mUser; }
00079    void setUser(User* user)
00080       { mUser = user; }
00081 
00082    Projection* getProjection()
00083       { return mProj; }
00084    void setProjection(Projection* proj)
00085       { mProj = proj; }
00086 
00087    Viewport* getViewport()
00088       { return mViewport; }
00089    void setViewport(Viewport* vp)
00090       { mViewport = vp; }
00091 
00092    GlWindow* getGlWindow()
00093       { return mGlWindow; }
00094    void setGlWindow(GlWindow* win)
00095       { mGlWindow = win; }
00096 
00097 protected:
00098    User*        mUser;        
00099    Projection*  mProj;        
00100    Viewport*    mViewport;    
00101    GlWindow*    mGlWindow;    
00102 };
00103 
00104 
00105 };
00106 #endif

Generated on Sun May 2 15:10:17 2004 for VR Juggler by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002