00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
#ifndef OPENCAL_PARTICLESYSTEM_H
00012
#define OPENCAL_PARTICLESYSTEM_H
00013
00014
00015
#include <OpenCAL/global.h>
00016
#include <OpenCAL/PhysicsSystem.h>
00017
00018
namespace OpenCAL
00019 {
00020
00021
class PointMass;
00022
00027 class OPENCAL_API ParticleSystem:
public PhysicsSystem
00028 {
00029
protected:
00030
00031
00032
public:
00033
00034 ParticleSystem(
System *parent);
00035
virtual ~ParticleSystem();
00036
00037
00038
PointMass *getPoint(
unsigned int i) {
return (
PointMass *) m_objects[i]; }
00039
const PointMass *getPoint(
unsigned int i)
const {
return (
const PointMass *) m_objects[i]; }
00040
00041
00042
00043
00044
virtual void render();
00045 };
00046 }
00047
00048
#endif // OPENCAL_PARTICLESYSTEM_H