33 if (displacement == VuoDisplacement_Transverse)
36 for (
VuoReal x = 0; x <= 15; ++x)
38 VuoReal y = 8-3.5*sin(2.*M_PI*x/7.4);
40 path.moveTo(0.5+x, y);
42 path.lineTo(0.5+x, y);
44 p.strokePath(path, QPen(QColor(isDark ?
"#ffffff" :
"#000000"), 1.));
46 else if (displacement == VuoDisplacement_Longitudinal)
48 int c = isDark ? 255 : 0;
49 for (
VuoReal x = 0; x <= 15; ++x)
51 p.setPen(QPen(QColor(c,c,c,sin(2.*M_PI*x/7.4)*112+128), 1.));
52 p.drawLine(QPointF(0.5+x, 7.5-3), QPointF(0.5+x, 7.5+4));
65 for (
int i = 0; i <= VuoDisplacement_Longitudinal; ++i)
71 optionsTree->
addItem(optionItem);