9 mass(phys->mass), index(-1), state(ST_NONE)
22 if(&rhs ==
this)
return *
this;
42 os <<
" s " << n.
sensor->getID();
45 os <<
" m " << n.
mass;
57 std::shared_ptr<const PPSensor> pps = std::dynamic_pointer_cast<
const PPSensor,
const Sensor>(_sensor);
75 glVertex2f(
x-HLSIZE,
y-HLSIZE);
76 glVertex2f(
x-HLSIZE,
y+HLSIZE);
77 glVertex2f(
x+HLSIZE,
y+HLSIZE);
78 glVertex2f(
x+HLSIZE,
y-HLSIZE);
83 glBegin(GL_LINE_STRIP); {
85 glVertex2f(
x-HLSIZE,
y-HLSIZE);
86 glVertex2f(
x-HLSIZE,
y+HLSIZE);
87 glVertex2f(
x+HLSIZE,
y+HLSIZE);
88 glVertex2f(
x+HLSIZE,
y-HLSIZE);
89 glVertex2f(
x-HLSIZE,
y-HLSIZE);
static ParticleParam global
void attachSensor(sensor_cptr _sensor)
Implements a Node used by Model and Edge.
Point2D & operator=(const Point2D &rhs)
sensor_ptr getZeroSensor()
Node(const ParticleParam *phys=&ParticleParam::global)
Default constructor.
int index
Index in the list (Model.nodes)
Point v
Velocity and Force.
bool hasState(dword nstate=0xffffffff) const
Node & operator=(const Node &rhs)
Assignment operator.
friend std::ostream & operator<<(std::ostream &os, const Node &n)
output operator
int sglBitmapStringOutlined(const char *msg, int x, int y, void *font=(void *) GLUT_BITMAP_8_BY_13)
std::shared_ptr< const Sensor > sensor_cptr