00001 /*************************************************************************** 00002 LegGeometry.h - description 00003 ------------------- 00004 begin : jeu mar 18 2004 00005 copyright : (C) 2004 by Michel Dubois, Yann Le Guyadec 00006 email : Michel.Dubois@univ-ubs.fr, Yann.Le-Guyadec@univ-ubs.fr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef __SIM_LEGGEOMETRY_H__ 00019 #define __SIM_LEGGEOMETRY_H__ 00020 00021 #include "Geometry.h" 00022 #include "BoxGeometry.h" 00023 #include "SphereGeometry.h" 00029 class LegGeometry : public Geometry 00030 { 00031 public: 00032 LegGeometry (Real legnth, Real radius, char* name = "Leg Geometry", int geometry=0, int num=0); 00033 virtual ~LegGeometry (); 00034 00035 public: 00036 virtual void draw (); 00037 virtual void print (); 00038 00039 protected: 00040 Real length; 00041 Real radius; 00042 int numleg; 00043 dGeomID boxGeometry; 00044 dGeomID sphereGeometry; 00045 }; 00046 00047 #endif