00001 /*************** <auto-copyright.pl BEGIN do not edit this line> ************** 00002 * 00003 * VR Juggler is (C) Copyright 1998-2005 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$ 00027 * Date modified: $Date: 2006-09-07 10:03:57 -0500 (Thu, 07 Sep 2006) $ 00028 * Version: $Revision: 19313 $ 00029 * ----------------------------------------------------------------- 00030 * 00031 *************** <auto-copyright.pl END do not edit this line> ***************/ 00032 00033 #ifndef _VRJ_SIM_DISPLAY_H_ 00034 #define _VRJ_SIM_DISPLAY_H_ 00035 //#pragma once 00036 00037 #include <vrj/vrjConfig.h> 00038 #include <vrj/Util/Debug.h> 00039 #include <vrj/Display/Viewport.h> 00040 00041 #include <jccl/Config/ConfigElementPtr.h> 00042 #include <vrj/Draw/DrawSimInterface.h> 00043 00044 00045 namespace vrj 00046 { 00047 00052 class VJ_CLASS_API SimViewport : public Viewport 00053 { 00054 public: 00055 SimViewport() 00056 : Viewport() 00057 { 00058 ; 00059 } 00060 00061 SimViewport(const SimViewport& sv) 00062 : Viewport(sv) 00063 , mSimulator(sv.mSimulator) 00064 { 00065 ; 00066 } 00067 00068 virtual ~SimViewport(); 00069 00070 public: 00072 virtual bool config(jccl::ConfigElementPtr element); 00073 00080 virtual void updateProjections(const float positionScale); 00081 00082 DrawSimInterface* getDrawSimInterface() 00083 { 00084 return mSimulator; 00085 } 00086 00087 void setDrawSimInterface(DrawSimInterface* draw_sim_i) 00088 { 00089 mSimulator = draw_sim_i; 00090 } 00091 00092 protected: 00093 DrawSimInterface* mSimulator; 00094 }; 00095 00096 } 00097 00098 #endif
1.5.1