Page principale | Hiérarchie des classes | Liste par ordre alphabétique | Liste des composants | Liste des fichiers | Composants | Déclarations | Pages associées

primitive.h

Aller à la documentation de ce fichier.
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_PRIMITIVE_H
00024 #define INCLUDE_3D_PRIMITIVE_H
00025 
00026 #include "3d.h"
00027 #include "layout.h"
00028 #include "face.h"
00029 
00033 class Primitive
00034 {
00035 public:
00036         MyTree<Face> tree;
00037         Layout<double> layout;
00038 
00039 public:
00040         Primitive();
00041         ~Primitive();
00042         void Push(int childNumber);
00043         MyTreeNode<Face> * Push(MyTreeNode<Face> *node);
00044         void Pop();
00045         void ViewDebug(MyTreeNode<Face> *node=NULL);
00046         BOOL Draw(BOOL isPicking);
00047         BOOL Draw(MyTreeNode<Face> *node,BOOL isPicking);
00048         MyTreeNode<Face> * Find(int idControl,int idFace,MyTreeNode<Face> *node=NULL);
00049         MyTreeNode<Face> * AddFace (char *name,int idControl,int idFace,GLdouble deltaZcenter,GLdouble deltaZrayon=0,GLdouble deltaX=-1,GLdouble deltaY=-3);
00050         MyTreeNode<Face> * AddBox (char *name,int idControl,GLdouble deltaZ,GLdouble deltaX=-1,GLdouble deltaY=-3);
00051 };
00052 
00053 #endif

Généré le Thu Apr 8 18:52:15 2004 pour 3D Controls par doxygen 1.3.6