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

DrawManager.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: DrawManager.h,v $
00027  * Date modified: $Date: 2003/12/31 23:25:41 $
00028  * Version:       $Revision: 1.36 $
00029  * -----------------------------------------------------------------
00030  *
00031  *************** <auto-copyright.pl END do not edit this line> ***************/
00032 
00033 #ifndef _VRJ_DRAW_MANAGER_
00034 #define _VRJ_DRAW_MANAGER_
00035 
00036 #include <vrj/vrjConfig.h>
00037 #include <iostream>
00038 #include <jccl/RTRC/ConfigElementHandler.h>
00039 namespace vrj
00040 {
00041 
00042 class DisplayManager;
00043 class App;
00044 class Display;
00045 
00053 class VJ_CLASS_API DrawManager : public jccl::ConfigElementHandler
00054 {
00055 public:
00056    DrawManager()
00057       : mDisplayManager(NULL)
00058    {
00059       /* Do nothing. */ ;
00060    }
00061 
00062    virtual ~DrawManager()
00063    {
00064       /* Do nothing. */ ;
00065    }
00066 
00071    //**//virtual void configInitial(jccl::Configuration*  cfg) = 0;
00072 
00074    virtual void draw() = 0;
00075 
00080    virtual void sync() = 0;
00081 
00088    virtual void setApp(App* app) = 0;
00089 
00096    virtual void initAPI() = 0;
00097 
00099    virtual void addDisplay(Display* disp) = 0;
00100 
00102    virtual void removeDisplay(Display* disp) = 0;
00103 
00109    virtual void closeAPI() = 0;
00110 
00112    void setDisplayManager(DisplayManager* dispMgr);
00113    DisplayManager* getDisplayManager();
00114 
00115    friend VJ_API(std::ostream&) operator<<(std::ostream& out,
00116                                            DrawManager& drawMgr);
00117 
00118    virtual void outStream(std::ostream& out)
00119    {
00120       out << "vrj::DrawManager: outstream\n";  // Set a default
00121    }
00122 
00123 protected:
00124    DisplayManager* mDisplayManager;  
00125 };
00126 
00127 } // End of vrj namespace
00128 
00129 
00130 #endif

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