Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Membres des namespaces   Composants   Déclarations  

ExCVertex.h

Aller à la documentation de ce fichier.
00001 /*
00002  * ExNihilo 3D Engine
00003  * 
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  *
00018  * Please read AUTHORS file !!!
00019  * 
00020  * $Id: ExCVertex.h,v 1.4 2002/06/16 00:51:04 binny Exp $
00021  *
00022  */
00023 
00024 #ifndef __ExCVertex_H__
00025 #define __ExCVertex_H__ 
00026 
00027 #include "ExDefine.h"
00028 #include <math.h>
00029 #include <cmath>
00030 class ExCVertex
00031 {
00032 private:
00033         double m_dA;    //Alpha
00034         double m_dB;    //Blue
00035         double m_dG;    //Green
00036         double m_dR;    //Red
00037         double m_dU;    //U texture
00038         double m_dV;    //V texture
00039         double m_dW;    //W texture
00040         double m_dX;    //X position
00041         double m_dY;    //Y position
00042         double m_dZ;    //Z position
00043 public:
00044         ExCVertex(void);
00045         ExCVertex(double x,double y,double z);
00046         ExCVertex(double x,double y,double z,double u,double v);
00047         ExCVertex(double x,double y,double z,double r,double g,double b,double a);
00048         ExCVertex(double x,double y,double z,double u,double v,double r,double g,double b,double a);
00049 //      ExCVertex(ExCVertex& copy);
00050         
00051         ~ExCVertex(void);
00052 
00053 /*      ExCVertex& operator=(const ExCVertex& vertex);
00054         ExCVertex operator+(ExCVertex a);
00055         ExCVertex operator-(ExCVertex a);
00056         bool operator ==(const ExCVertex a);*/
00057 
00058         inline void SetX(double val){m_dX=val;}
00059         inline void SetY(double val){m_dY=val;}
00060         inline void SetZ(double val){m_dZ=val;}
00061         inline void SetU(double val){m_dU=val;}
00062         inline void SetV(double val){m_dV=val;}
00063         inline void SetR(double val){m_dR=val;}
00064         inline void SetG(double val){m_dG=val;}
00065         inline void SetB(double val){m_dB=val;}
00066         inline void SetA(double val){m_dA=val;}
00067         inline void SetW(double val){m_dW=val;}
00068 
00069         inline double GetX(void){return m_dX;}
00070         inline double GetY(void){return m_dY;}
00071         inline double GetZ(void){return m_dZ;}
00072         inline double GetU(void){return m_dU;}
00073         inline double GetV(void){return m_dV;}
00074         inline double GetA(void){return m_dA;}
00075         inline double GetB(void){return m_dB;}
00076         inline double GetG(void){return m_dG;}
00077         inline double GetR(void){return m_dR;}
00078         inline double GetW(void){return m_dW;}
00079 
00080         inline void IncX(double val){m_dX=m_dX+val;}
00081         inline void IncY(double val){m_dY=m_dY+val;}
00082         inline void IncZ(double val){m_dZ=m_dZ+val;}
00083         
00084         inline void DecX(double val){m_dX=m_dX-val;}
00085         inline void DecY(double val){m_dY=m_dY-val;}
00086         inline void DecZ(double val){m_dZ=m_dZ-val;}
00087 
00088 
00089         inline void Affich(void){std::cout<<"X:"<<m_dX<<" Y:"<<m_dY<<" Z:"<<m_dZ;}
00090 
00091 };
00092 
00093 #endif //__ExCVertex_H__

Généré le Tue Dec 10 18:18:10 2002 pour ExNihilo par doxygen1.3-rc1