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
00038
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