31 #ifdef G2O_HAVE_OPENGL 34 #include "EXTERNAL/freeglut/freeglut_minimal.h" 72 #ifdef G2O_HAVE_OPENGL 80 _textSize = _previousParams->makeProperty<
DoubleProperty>(_typeName +
"::TEXT_SIZE", 1);
89 if (
typeid(*element).name()!=_typeName)
92 refreshPropertyPtrs(params_);
93 if (! _previousParams){
99 glColor3f(1.f,0.2f,1.f);
103 textSize = (float)_textSize->value();
105 glTranslatef(0.2f*textSize, 0.f, 0.f);
106 glScalef(0.003f*textSize,0.003f*textSize,1.f);
107 freeglut_minimal::glutStrokeString(freeglut_minimal::GLUT_STROKE_ROMAN, that->
name().c_str());
std::string _hostname
name of the computer/robot generating the data
const std::string name() const
Abstract action that operates on a graph entity.
virtual bool write(std::ostream &os) const
write the data to a stream
double _timestamp
timestamp when the measurement was generated
double _loggerTimestamp
timestamp when the measurement was recorded
void drawBox(GLfloat l, GLfloat w, GLfloat h)
double loggerTimestamp() const
const std::string & hostname() const
const Vector3F & position() const
virtual bool refreshPropertyPtrs(HyperGraphElementAction::Parameters *params_)
string tag to be attached to a vertex
virtual bool read(std::istream &is)
read the data from a stream
data recorded by the robot