Structural deformable models
Functions
Node.cpp File Reference
#include "Sensor.h"
#include "Node.h"
#include "glutils.h"
Include dependency graph for Node.cpp:

Go to the source code of this file.

Functions

ostream & operator<< (ostream &os, const Node &n)
 output operator More...
 

Function Documentation

ostream& operator<< ( std::ostream &  os,
const Node n 
)

output operator

Definition at line 38 of file Node.cpp.

References ParticleParam::global, Node::mass, ParticleParam::mass, Node::operator<<, and Node::sensor.

38  {
39  os << "v ";
40  operator<<(os, Point(n));
41  if(n.sensor) {
42  os << " s " << n.sensor->getID();
43  }
45  os << " m " << n.mass;
46  os << endl;
47  return os;
48 }
static ParticleParam global
Definition: PartParam.h:72
float mass
Mass.
Definition: Node.h:48
Point2D Point
Definition: Point.h:251
sensor_cptr sensor
Definition: Node.h:43
float mass
Definition: PartParam.h:66
ostream & operator<<(ostream &os, const Node &n)
output operator
Definition: Node.cpp:38