K3dPlaneWork.h

Go to the documentation of this file.
00001 
00012 /***************************************************************************
00013  *   Copyright (C) 2007 by Jan Koci   *
00014  *   honza.koci@email.cz   *
00015  *   http://kengine.sourceforge.net/tutorial/
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  *   This program is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00025  *   GNU General Public License for more details.                          *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU General Public License     *
00028  *   along with this program; if not, write to the                         *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00031  ***************************************************************************/
00032 
00033 #pragma once
00034 
00035 #include "../../Geometry/K3dPlaneObj.h"
00036 #include "../../Geometry/K3dPolyPlane.h"
00037 #include "../GameData/K3dGameData.h"
00038 #include "../GameData/K3dPlaneData.h"
00039 #include "../GameData/K3dPolyPlaneData.h"
00040 #include "../../MathCore/K3dIntersection.h"
00041 #include "../../MathCore/K3dVector3Obj.h"
00042 #include "K3dVector3Work.h"
00043 
00044 class K3dPlaneWork
00045 {
00046                 K3dGameData *m_pGameData;       
00047                 K3dVector3Work *m_pVector3Work;         
00048         public:
00049                 K3dPlaneWork ( K3dGameData *_pGameData );
00050                 ~K3dPlaneWork();
00051 
00052                 void Init ( K3dPlaneObj *_pPlane );
00053                 void CalcDistance ( K3dPlaneObj *_pPlane );
00054                 void CalcPlane ( K3dPlaneObj *_pPlane, const K3dVector3Obj &_rkPosition, const K3dVector3Obj &_rkNormal );
00055                 void CalcPlane ( K3dPlaneObj *_pPlane, const K3dVector3Obj &_rkV0, const K3dVector3Obj &_rkV1, const K3dVector3Obj &_rkV2 );
00056                 void UpdateMatrix ( K3dPlaneObj *_pPlane );
00057                 int FindPlaneId ( const char* _strName );
00058                 void UpdatePlanes();
00059                 void CheckPlane ( const int _iPlaneId );
00060                 bool ComparePlane ( const K3dPlaneObj *_pPlane,const TPlaneArray &_rPlaneArray );
00061                 bool ComparePlane ( K3dPolyPlane *_pPlane,const TPolyPlaneArray &_rPlaneArray );
00062                 void CalcVertexArray ( K3dPlaneObj *_pPlane );
00063 };
00064 

Generated on Thu Aug 16 23:53:29 2007 for K3dEngine by  doxygen 1.5.0