00001 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- 00002 this file is part of rcssserver3D 00003 Fri May 9 2003 00004 Copyright (C) 2003 Koblenz University 00005 $Id: spark.h,v 1.4 2004/12/31 11:27:04 rollmark Exp $ 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; version 2 of the License. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 #ifndef SPARK_SPARK_H 00021 #define SPARK_SPARK_H 00022 00023 #include <zeitgeist/zeitgeist.h> 00024 #include <kerosin/kerosin.h> 00025 #include <oxygen/oxygen.h> 00026 #include <kerosin/renderserver/rendercontrol.h> 00027 #include <kerosin/inputserver/inputcontrol.h> 00028 00029 namespace spark 00030 { 00031 00037 class Spark 00038 { 00039 public: 00040 Spark(const std::string& relPathPrefix); 00041 virtual ~Spark(); 00042 00045 bool Init(int argc, char** argv); 00046 00047 // 00048 // user callbacks 00049 00051 virtual bool InitApp(int argc, char** argv); 00052 00053 // 00054 // set/get methods 00055 00057 zeitgeist::Zeitgeist& GetZeitgeist(); 00058 00060 boost::shared_ptr<zeitgeist::Core> GetCore(); 00061 00063 boost::shared_ptr<zeitgeist::LogServer> GetLog(); 00064 00066 boost::shared_ptr<zeitgeist::ScriptServer> GetScriptServer(); 00067 00069 boost::shared_ptr<oxygen::SceneServer> GetSceneServer(); 00070 00072 boost::shared_ptr<oxygen::Scene> GetActiveScene(); 00073 00075 boost::shared_ptr<oxygen::SimulationServer> GetSimulationServer(); 00076 00078 boost::shared_ptr<kerosin::InputControl> GetInputControl(); 00079 00081 boost::shared_ptr<kerosin::RenderControl> GetRenderControl(); 00082 00083 protected: 00084 boost::shared_ptr<zeitgeist::LogServer> mLogServer; 00085 boost::shared_ptr<zeitgeist::ScriptServer> mScriptServer; 00086 boost::shared_ptr<oxygen::SceneServer> mSceneServer; 00087 boost::shared_ptr<oxygen::SimulationServer> mSimulationServer; 00088 00089 zeitgeist::Zeitgeist mZeitgeist; 00090 oxygen::Oxygen mOxygen; 00091 kerosin::Kerosin mKerosin; 00092 }; 00093 00094 } // namespace kerosin 00095 00096 #endif // SPARK_SPARK_H