67VertexTagDrawAction::VertexTagDrawAction()
70bool VertexTagDrawAction::refreshPropertyPtrs(
71 HyperGraphElementAction::Parameters* params_) {
73 if (_previousParams) {
75 _typeName +
"::TEXT_SIZE", 1);
82HyperGraphElementAction* VertexTagDrawAction::operator()(
83 HyperGraph::HyperGraphElement* element,
84 HyperGraphElementAction::Parameters* params_) {
85 if (
typeid(*element).name() != _typeName)
return nullptr;
87 refreshPropertyPtrs(params_);
88 if (!_previousParams) {
91 VertexTag* that =
static_cast<VertexTag*
>(element);
94 glColor3f(1.f, 0.2f, 1.f);
95 glTranslatef(that->position().x(), that->position().y(),
96 that->position().z());
98 if (_textSize) textSize = (float)_textSize->value();
100 glTranslatef(0.2f * textSize, 0.f, 0.f);
101 glScalef(0.003f * textSize, 0.003f * textSize, 1.f);
103 that->name().c_str());
virtual bool refreshPropertyPtrs(HyperGraphElementAction::Parameters *params_)
data recorded by the robot
double _loggerTimestamp
timestamp when the measurement was recorded
double loggerTimestamp() const
const std::string & hostname() const
std::string _hostname
name of the computer/robot generating the data
double _timestamp
timestamp when the measurement was generated
string tag to be attached to a vertex
virtual bool read(std::istream &is)
read the data from a stream
virtual bool write(std::ostream &os) const
write the data to a stream
void glutStrokeString(FontID fontID, const char *string_)
void drawBox(GLfloat l, GLfloat w, GLfloat h)
Property< double > DoubleProperty