23 QVBoxLayout* layout =
new QVBoxLayout(
this);
26 if(captions.isEmpty())
27 captions = QStringList() <<
"X (mm)" <<
"Y (mm)" <<
"Z (mm)";
29 for (
int i=0; i<captions.size(); ++i)
34 layout->addWidget(mRange[i]);
35 if(i >= captions.size())
36 mRange[i]->setVisible(
false);
42 mRange[dim]->setVisible(visible);
47 for (
int i=0; i<mRange.size(); ++i)
49 mRange[i]->blockSignals(
true);
50 mRange[i]->setRange(
DoubleRange(range.begin()[2*i], range.begin()[2*i+1], 1));
51 mRange[i]->setValue(value.begin()[2*i], value.begin()[2*i+1]);
52 mRange[i]->blockSignals(
false);
59 std::vector< std::pair<double, double> > values;
60 for(
unsigned i = 0; i < 3; ++i)
61 values.push_back(std::make_pair(0, 0));
64 for(
unsigned i = 0; i < mRange.size(); ++i)
68 values[0].first, values[0].second,
69 values[1].first, values[1].second,
70 values[2].first, values[2].second);