00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef __INVISIBLEPRIMITIVE_H
00038 #define __INVISIBLEPRIMITIVE_H
00039
00040 #include "primitive.h"
00041
00042 namespace lpzrobots {
00043
00044
00045 class InvisibleBox : public Primitive {
00046 public:
00047
00048 InvisibleBox(float lengthX, float lengthY, float lengthZ);
00049 virtual void init(const OdeHandle& odeHandle, double mass,
00050 const OsgHandle& osgHandle,
00051 char mode = Body | Geom | Draw);
00052 virtual void update() {}
00053 virtual OSGPrimitive* getOSGPrimitive() { return 0; }
00054
00055 protected:
00056 float lengthX;
00057 float lengthY;
00058 float lengthZ;
00059 };
00060
00061
00062
00063 class InvisibleSphere : public Primitive {
00064 public:
00065 InvisibleSphere(float radius);
00066 virtual void init(const OdeHandle& odeHandle, double mass,
00067 const OsgHandle& osgHandle,
00068 char mode = Body | Geom | Draw);
00069
00070 virtual void update() {}
00071 virtual OSGPrimitive* getOSGPrimitive() { return 0; }
00072
00073 protected:
00074 float radius;
00075 };
00076
00077
00078 class InvisibleCapsule : public Primitive {
00079 public:
00080 InvisibleCapsule(float radius, float height);
00081 virtual void init(const OdeHandle& odeHandle, double mass,
00082 const OsgHandle& osgHandle,
00083 char mode = Body | Geom | Draw);
00084
00085 virtual void update() {}
00086 virtual OSGPrimitive* getOSGPrimitive() { return osgcapsule; }
00087
00088 protected:
00089 OSGCapsule* osgcapsule;
00090 float radius;
00091 float height;
00092 };
00093
00094 }
00095 #endif
00096