14 : QDialog(parent, Qt::Tool),
15 Ui::OrthoSectionGenerationDlg(),
19 connect(stepDoubleSpinBox,
20 static_cast<void (QDoubleSpinBox::*)(
double)
>(
21 &QDoubleSpinBox::valueChanged),
27 pathLengthLineEdit->setText(QString::number(l));
28 stepDoubleSpinBox->setValue(l / 9);
29 widthDoubleSpinBox->setValue(l / 5);
33 autoSaveAndRemoveCheckBox->setChecked(state);
37 return autoSaveAndRemoveCheckBox->isChecked();
41 stepDoubleSpinBox->setValue(s);
45 widthDoubleSpinBox->setValue(w);
49 return stepDoubleSpinBox->value();
53 return widthDoubleSpinBox->value();
59 unsigned count = step < 1.0e-6 ? 1
62 sectionCountLineEdit->setText(QString::number(
count));
void setAutoSaveAndRemove(bool state)
Sets whether the generatrix should be automatically saved and removed.
bool autoSaveAndRemove() const
Returns whether the generatrix should be automatically saved and removed.
void setSectionsWidth(double w)
Sets he sections width.
double getGenerationStep() const
Returns the generation step.
double getSectionsWidth() const
Returns the sections width.
double m_pathLength
Path length.
void setGenerationStep(double s)
Sets the generation step.
void setPathLength(double l)
Sets the path legnth.
void onStepChanged(double)
ccOrthoSectionGenerationDlg(QWidget *parent=0)
Default constructor.
MiniVec< float, N > floor(const MiniVec< float, N > &a)