44 #include "PropertyVisualizer.hh" 45 #include "ACG/Math/Matrix3x3T.hh" 56 log(
LOGERR,
"Visualizing for this type of object not yet supported.");
68 log(
LOGERR,
"Removing for this type of object not yet supported.");
80 log(
LOGERR,
"Duplicating for this type of object not yet supported.");
92 log(
LOGERR,
"Clearing for this type of object not yet supported.");
97 return QObject::tr(
"∥(%1, %2, %3)∥ = %4").arg(v[0]).arg(v[1]).arg(v[2])
103 return QObject::tr(
"∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.
norm());
108 return QObject::tr(
"∥(%1, %2)∥ = %3").arg(v[0]).arg(v[1]).arg(v.
norm());
113 return QString(
"(%1, %2, %3); (%4, %5, %6); (%7, %8, %9) ")
114 .arg(v(0, 0)).arg(v(0, 1)).arg(v(0, 2))
115 .arg(v(1, 0)).arg(v(1, 1)).arg(v(1, 2))
116 .arg(v(2, 0)).arg(v(2, 1)).arg(v(2, 2));
119 #ifdef ENABLE_SKELETON_SUPPORT 123 for (std::map<unsigned int, double>::iterator it = sw.begin(); it != sw.end(); ++it) {
125 text += QString::number((*it).first);
127 text += QString::number((*it).second);
134 #ifdef ENABLE_POLYHEDRALMESH_SUPPORT 137 return QObject::tr(
"∥(%1, %2, %3)∥ = %4").arg(v[0]).arg(v[1]).arg(v[2])
147 s.truncate(s.lastIndexOf(
")"));
148 QStringList strList = s.split(QObject::tr(
", "));
149 return OpenMesh::Vec3d(strList[0].toDouble(),strList[1].toDouble(),strList[2].toDouble());
157 s.truncate(s.lastIndexOf(
")"));
158 QStringList strList = s.split(QObject::tr(
", "));
166 s.truncate(s.lastIndexOf(
")"));
167 QStringList strList = s.split(QObject::tr(
", "));
171 std::unique_ptr<ACG::IColorCoder> PropertyVisualizer::buildColorCoder()
VectorT< double, 3 > Vec3d
VectorT< float, 2 > Vec2f
VectorT< double, 2 > Vec2d
virtual void visualize(bool _setDrawMode, QWidget *_widget)
Visualizes the property.
std::map< unsigned int, double > SkinWeights
Stores the joint weights per vertex.
virtual void removeProperty()
Removes the property.
virtual void clear()
Clears the property visualization.
auto norm() const -> decltype(std::sqrt(std::declval< VectorT< S, DIM >>().sqrnorm()))
compute euclidean norm
virtual void duplicateProperty()
Duplicates the property.
auto norm() const -> decltype(std::sqrt(std::declval< VectorT< S, DIM >>().sqrnorm()))
compute euclidean norm