Skip to content
Snippets Groups Projects
Commit fe81ebcd authored by Mirko Wächter's avatar Mirko Wächter
Browse files

type Double datafields can now be plotted as well

parent a0f7db46
No related branches found
No related tags found
No related merge requests found
......@@ -199,6 +199,8 @@ namespace armarx
{
if(var->getType() == VariantType::Float)
pointList[i].setY(var->getFloat());
else if(var->getType() == VariantType::Double)
pointList[i].setY(var->getDouble());
else if(var->getType() == VariantType::Int)
pointList[i].setY(var->getInt());
else continue;
......@@ -207,6 +209,8 @@ namespace armarx
{
if(var->getType() == VariantType::Float)
p.setY(var->getFloat());
else if(var->getType() == VariantType::Double)
pointList[i].setY(var->getDouble());
else if(var->getType() == VariantType::Int)
p.setY(var->getInt());
else continue;
......@@ -214,6 +218,10 @@ namespace armarx
pointList.push_back(p);
}
}
else
{
ARMARX_WARNING<< "uninitialized field: " << it->first;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment