00001 /* *********************************************************************************** 00002 Writer: Sebastien Bloc 00003 Copyright: 2004 00004 eMail: sebastien.bloc@free.fr 00005 URL: http://mignonsoft.free.fr 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 as published by the Free Software Foundation; either version 2 00010 of the License, or (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 http://www.gnu.org/copyleft/gpl.html 00017 *********************************************************************************** */ 00018 00023 #ifndef INCLUDE_3D_FACES_H 00024 #define INCLUDE_3D_FACES_H 00025 00026 #include "3d.h" 00027 #include "face.h" 00028 00036 class Faces 00037 { 00038 public: 00039 MyList<Face *> list; 00040 Face *parent; // pas encors implementé 00041 00042 public: 00043 Faces(); 00044 void Zero(); 00045 void operator=(Faces &src); 00046 Face * operator[] (int num); 00047 void GetFromVerticalNode(MyTreeNode<Face> *node,int nbElem=-1); 00048 void GetFromNode(MyTreeNode<Face> *node); 00049 BOOL GetFromArray(Face **faces,int nbFaces); 00050 BOOL Box_SetDeltaZ(GLdouble deltaZ); 00051 BOOL Box_Rotate(double angleX,double angleY); 00052 BOOL Box_Move(GLdouble x,GLdouble y,GLdouble z); 00053 }; 00054 00055 #endif