invisibleprimitive.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Robot Group Leipzig                             *
00003  *    martius@informatik.uni-leipzig.de                                    *
00004  *    fhesse@informatik.uni-leipzig.de                                     *
00005  *    der@informatik.uni-leipzig.de                                        *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (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  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  *                                                                         *
00022  ***************************************************************************
00023  *                                                                         *
00024  *   This file provides basic primitives for ODE and openscenegraph        *
00025  *                                                                         *
00026  *                                                                         *
00027  *   $Log: invisibleprimitive.h,v $
00028  *   Revision 1.2  2006/07/14 12:23:34  martius
00029  *   selforg becomes HEAD
00030  *
00031  *   Revision 1.1.2.3  2006/06/29 16:35:56  robot3
00032  *   includes cleared up
00033  *
00034  *   Revision 1.1.2.2  2006/01/12 14:21:00  martius
00035  *   drawmode, material
00036  *
00037  *   Revision 1.1.2.1  2006/01/10 16:06:30  martius
00038  *   invisible primitives
00039  *
00040  *                                                                 *
00041  *                                                                         *
00042  ***************************************************************************/
00043 #ifndef __INVISIBLEPRIMITIVE_H
00044 #define __INVISIBLEPRIMITIVE_H
00045 
00046 #include "primitive.h"
00047 
00048 namespace lpzrobots {
00049 
00050 /**************************************************************************/
00051 class InvisibleBox : public Primitive {
00052 public:
00053 
00054   InvisibleBox(float lengthX, float lengthY, float lengthZ);
00055   virtual void init(const OdeHandle& odeHandle, double mass,
00056                     const OsgHandle& osgHandle,
00057                     char mode = Body | Geom | Draw);
00058   virtual void update() {}
00059   virtual OSGPrimitive* getOSGPrimitive() { return 0; }
00060 
00061 protected:
00062   float lengthX;
00063   float lengthY;
00064   float lengthZ;  
00065 };
00066 
00067 
00068 /**************************************************************************/
00069 class InvisibleSphere : public Primitive {
00070 public:
00071   InvisibleSphere(float radius);
00072   virtual void init(const OdeHandle& odeHandle, double mass, 
00073                     const OsgHandle& osgHandle,
00074                     char mode = Body | Geom | Draw);
00075 
00076   virtual void update() {}
00077   virtual OSGPrimitive* getOSGPrimitive() { return 0; }
00078 
00079 protected:
00080   float radius;
00081 };
00082 
00083 /**************************************************************************/
00084 class InvisibleCapsule : public Primitive {
00085 public:
00086   InvisibleCapsule(float radius, float height);
00087   virtual void init(const OdeHandle& odeHandle, double mass,
00088                     const OsgHandle& osgHandle,
00089                     char mode = Body | Geom | Draw);
00090 
00091   virtual void update() {}
00092   virtual OSGPrimitive* getOSGPrimitive() { return 0; }
00093 
00094 protected:
00095   OSGCapsule* osgcapsule;
00096   float radius;
00097   float height;
00098 };
00099 
00100 }
00101 #endif
00102 

Generated on Mon Aug 7 16:40:14 2006 for Robotsystem of the Robot Group Leipzig by  doxygen 1.4.7