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

Node.h

Aller à la documentation de ce fichier.
00001 /*=========================================================================
00002 UberSim Source Code Release
00003 -------------------------------------------------------------------------
00004 Copyright (C) 2002 Manuela Veloso, Brett Browning, Mike Bowling,
00005                    James Bruce; {mmv, brettb, mhb, jbruce}@cs.cmu.edu
00006                    Erick Tryzelaar {erickt}@andrew.cmu.edu
00007 School of Computer Science, Carnegie Mellon University
00008 -------------------------------------------------------------------------
00009 This software is distributed under the GNU General Public License,
00010 version 2.  If you do not have a copy of this licence, visit
00011 www.gnu.org, or write: Free Software Foundation, 59 Temple Place,
00012 Suite 330 Boston, MA 02111-1307 USA.  This program is distributed
00013 in the hope that it will be useful, but WITHOUT ANY WARRANTY,
00014 including MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00015 -------------------------------------------------------------------------*/
00016 
00017 #ifndef __NODE_H__
00018 #define __NODE_H__
00019 
00020 #include "nommgr.h"
00021 #include <vector>
00022 #include "mmgr.h"
00023 
00024 #include "Spatial.h"
00030 class Node : public Spatial
00031 {
00032     public:
00033         Node          (char* name = "Node");
00034         virtual ~Node ();
00035         
00036     public:
00037         Spatial*     getChild         (unsigned int index);
00038         unsigned int getChildrenCount ();
00039 
00040     public:
00041         void     addChild    (Spatial* spatial);
00042         void     removeChild (Spatial* spatial);
00043         Spatial* removeChild (unsigned int index);
00044 
00045         unsigned int size ();
00046 
00047     public:
00048         virtual void updateWorldData  (Real deltaTime);
00049         virtual void updateWorldBound ();
00050         virtual void draw             ();
00051       void print             ();
00052 
00053     virtual void collidingWith    (Spatial* object);
00054         
00055     protected:
00056         std::vector<Spatial*> children;
00057         unsigned int          childrenCount;
00058 };
00059 
00060 #endif

Généré le Mon Mar 1 01:29:41 2004 par doxygen 1.3.3