blob: c08e3baa1ad7873961fe7320a88475a7b23941f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include "FractureShellCutSettingsPanel.h"
#include "ui_FractureShellCutSettingsPanel.h"
#include "ProjectParams.h"
FractureShellCutSettingsPanel::FractureShellCutSettingsPanel(QWidget *parent) :
QWidget(parent),
ui(new Ui::FractureShellCutSettingsPanel)
{
ui->setupUi(this);
}
FractureShellCutSettingsPanel::~FractureShellCutSettingsPanel()
{
delete ui;
}
void FractureShellCutSettingsPanel::updateValues()
{
BPPShellCut& shellCut = BlastProject::ins().getParams().fracture.shellCut;
ui->spinBoxThickness->setValue(shellCut.thickness);
ui->spinBoxThicknessVariation->setValue(shellCut.thicknessVariation);
}
void FractureShellCutSettingsPanel::on_spinBoxThickness_valueChanged(double arg1)
{
BPPShellCut& shellCut = BlastProject::ins().getParams().fracture.shellCut;
shellCut.thickness = arg1;
}
void FractureShellCutSettingsPanel::on_spinBoxThicknessVariation_valueChanged(double arg1)
{
BPPShellCut& shellCut = BlastProject::ins().getParams().fracture.shellCut;
shellCut.thicknessVariation = arg1;
}
void FractureShellCutSettingsPanel::on_btnApplyFracture_clicked()
{
}
|