44 #include "PropertyVisualizer.hh" 55 log(
LOGERR,
"Visualizing for this type of object not yet supported.");
67 log(
LOGERR,
"Removing for this type of object not yet supported.");
79 log(
LOGERR,
"Duplicating for this type of object not yet supported.");
91 log(
LOGERR,
"Clearing for this type of object not yet supported.");
96 return QObject::trUtf8(
"∥(%1, %2, %3)∥ = %4").arg(v[0]).arg(v[1]).arg(v[2])
102 return QObject::tr(
"∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.
norm());
107 return QObject::tr(
"∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.
norm());
110 #ifdef ENABLE_SKELETON_SUPPORT 114 for (std::map<unsigned int, double>::iterator it = sw.begin(); it != sw.end(); ++it) {
116 text += QString::number((*it).first);
118 text += QString::number((*it).second);
130 s.truncate(s.lastIndexOf(
")"));
131 QStringList strList = s.split(QObject::tr(
", "));
132 return OpenMesh::Vec3d(strList[0].toDouble(),strList[1].toDouble(),strList[2].toDouble());
139 s.truncate(s.lastIndexOf(
")"));
140 QStringList strList = s.split(QObject::tr(
", "));
148 s.truncate(s.lastIndexOf(
")"));
149 QStringList strList = s.split(QObject::tr(
", "));
153 std::unique_ptr<ACG::IColorCoder> PropertyVisualizer::buildColorCoder()
155 throw std::runtime_error(
"Requested color coder on a Propvis that does not implement it");
auto norm() const -> decltype(std::sqrt(std::declval< VectorT< S, DIM >>().sqrnorm()))
compute euclidean norm
virtual void removeProperty()
Removes the property.
virtual void clear()
Clears the property visualization.
virtual void visualize(bool _setDrawMode, QWidget *_widget)
Visualizes the property.
VectorT< float, 2 > Vec2f
virtual void duplicateProperty()
Duplicates the property.
std::map< unsigned int, double > SkinWeights
Stores the joint weights per vertex.
VectorT< double, 3 > Vec3d
VectorT< double, 2 > Vec2d