00001 00013 /*************************************************************************** 00014 * Copyright (C) 2007 by Jan Koci * 00015 * honza.koci@email.cz * 00016 * http://kengine.sourceforge.net/tutorial/ 00017 * * 00018 * This program is free software; you can redistribute it and/or modify * 00019 * it under the terms of the GNU General Public License as published by * 00020 * the Free Software Foundation; either version 2 of the License, or * 00021 * (at your option) any later version. * 00022 * * 00023 * This program is distributed in the hope that it will be useful, * 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00026 * GNU General Public License for more details. * 00027 * * 00028 * You should have received a copy of the GNU General Public License * 00029 * along with this program; if not, write to the * 00030 * Free Software Foundation, Inc., * 00031 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00032 ***************************************************************************/ 00033 00034 #include "K3dSceneData.h" 00035 00036 K3dSceneData::K3dSceneData() 00037 { 00038 InitPath(); 00039 m_pTimer = NULL; 00040 m_pKeyMap = NULL; 00041 m_pMouse = NULL; 00042 m_pLua = NULL; 00043 m_pViewMatrix = NULL; 00044 m_pPlaneBuild = NULL; 00045 m_pPolyPlaneBuild = NULL; 00046 m_pImageBuild = NULL; 00047 m_pTextureBuild = NULL; 00048 m_pOpenGL = NULL; 00049 m_pVector3Build = NULL; 00050 m_pColor3Build = NULL; 00051 m_pMatrixBuild = NULL; 00052 m_pSphereBuild = NULL; 00053 m_pStream = NULL; 00054 m_pRayBuild = NULL; 00055 m_pIntersection = NULL; 00056 m_pVertexWork = NULL; 00057 m_pImageWork = NULL; 00058 m_pBoxWork = NULL; 00059 m_pLineBuild = NULL; 00060 m_pBoxBuild = NULL; 00061 m_pTriangleBuild = NULL; 00062 m_pTriangleWork = NULL; 00063 m_pMouse = NULL; 00064 } 00065 00066 K3dSceneData::~K3dSceneData() 00067 { 00068 } 00069 00071 void K3dSceneData::InitPath() 00072 { 00073 cout << "void K3dSceneData::InitPath()" << endl; 00074 00075 if(m_tPath.size() == 0) 00076 { 00077 // Add default path arrays by number of paths 00078 for(int i=0; i<K_NUM_PATHS; i++) 00079 { 00080 // Add empty path 00081 m_tPath.push_back(""); 00082 } 00083 TString str = m_strOut.SetNum(K_NUM_PATHS); 00084 } 00085 cout << "Reserved path array " << m_tPath.size() << endl; 00086 00087 } 00088 00089 00090 00091