Commit 8aa8d9ef authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Improved textual display of vectors.

Showing norm of vectors in addition to their component values.


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21129 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2b0925cc
......@@ -103,17 +103,18 @@ void PropertyVisualizer::clear()
QString PropertyVisualizer::toStr(OpenMesh::Vec3d v)
{
return QObject::tr("( %1, %2, %3 )").arg(v[0]).arg(v[1]).arg(v[2]);
return QObject::trUtf8("∥(%1, %2, %3)∥ = %4").arg(v[0]).arg(v[1]).arg(v[2])
.arg(v.norm());
}
QString PropertyVisualizer::toStr(OpenMesh::Vec2d v)
{
return QObject::tr("( %1, %2 )").arg(v[0]).arg(v[1]);
return QObject::tr("∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.norm());
}
QString PropertyVisualizer::toStr(OpenMesh::Vec2f v)
{
return QObject::tr("( %1, %2 )").arg(v[0]).arg(v[1]);
return QObject::tr("∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.norm());
}
#ifdef ENABLE_SKELETON_SUPPORT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment