00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef OPENCAL_JELLYBEAM_H
00012
#define OPENCAL_JELLYBEAM_H
00013
00014
00015
#include <OpenCAL/global.h>
00016
#include <OpenCAL/MassSpringSystem.h>
00017
00018
namespace OpenCAL
00019 {
00020
00021
namespace Utils {
class Vector3; }
00022
using Utils::Vector3;
00023
00028 class OPENCAL_API JellyBeam:
public MassSpringSystem
00029 {
00030
protected:
00031
00032
00033
public:
00034
00035 JellyBeam(
System *parent,
const Vector3 &from,
const Vector3 &to);
00036
virtual ~JellyBeam();
00037
00038
00039
00040
00041
00042
00043
virtual void render();
00044
00045
00046
00047
00048
00049
00050
protected:
00051
00052
void constructBeam(
const Vector3 &from,
const Vector3 &to);
00053 };
00054 }
00055
00056
#endif // OPENCAL_JELLYBEAM_H