K3dObjectWork.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 "K3dCameraWork.h"
00036 #include "K3dRayWork.h"
00037 #include "K3dLineWork.h"
00038 #include "K3dSphereWork.h"
00039 #include "../../MathCore/K3dIntrLinSph.h"
00040 #include "../../MathCore/K3dIntersection.h"
00041 #include "../Builder/K3dVertexBuild.h"
00042 
00043 class K3dObjectWork:
00044                         public K3dCameraWork,
00045                         public K3dRayWork,
00046                         public K3dLineWork,
00047                         public K3dSphereWork
00048 {
00049                 K3dGameData *m_pGameData;                       
00050                 K3dIntersection *m_pIntersection;       
00051                 K3dVertexBuild *m_pVertexBuild;         
00052         public:
00053                 K3dObjectWork ( K3dGameData *_pGameData );
00054                 ~K3dObjectWork ( void );
00055 
00056                 int FindObjectId ( const char* _strName, const int _iObjType );
00057                 float GetDistance ( const int _iObjId0, const int _iObjId1, const int _iObjType0, const int _iObjType1 );
00058                 bool GetIntersection ( const int _iObjId0, const int _iObjId1, const int _iObjType0, const int _iObjType1, K3dVector3 &_rkInrPoint );
00059                 bool GetIntersection ( const int _iObjId0, const int _iObjId1, const int _iObjType0, const int _iObjType1 );
00060                 void SetColor ( const int _iObjId, const int _iObjType, const char _r,const char _g,const char _b );
00061                 void Link ( const int _iObjId0, const int _iObjId1, const int _iObjType0, const int _iObjType1 );
00062                 void Hide ( const int _iObjId, const int _iObjType, const bool _bHide );
00063 };
00064 

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