Gazebo

OgreSimpleShape.hh

00001 #ifndef OGRESIMPLESHAPE_HH
00002 #define OGRESIMPLESHAPE_HH
00003 
00004 #include <Ogre.h>
00005 
00006 #include "Vector3.hh"
00007 
00008 namespace gazebo
00009 {
00012 
00014 class OgreSimpleShape
00015 {
00017   public: typedef enum Shape {CUBE, ROUNDED_CUBE, CYLINDER, SPHERE};
00018 
00020   private: OgreSimpleShape();
00021 
00023   private: ~OgreSimpleShape();
00024 
00026   public: static void CreateSphere(const std::string &name, float radius, int rings, int segments);
00027 
00029   public: static void CreateBox(const std::string &name, const Vector3 &sides);
00030 
00032   public: static void CreateCylinder(const std::string &name, float radius, float height, int rings, int segments);
00033 
00034 };
00035 
00037 }
00038 
00039 #endif

Last updated Aug 04 2007