diff options
| author | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
|---|---|---|
| committer | Bryan Galdrikian <[email protected]> | 2017-02-24 09:32:20 -0800 |
| commit | e1bf674c16e3c8472b29574159c789cd3f0c64e0 (patch) | |
| tree | 9f0cfce09c71a2c27ff19589fcad6cd83504477c /tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp | |
| parent | first commit (diff) | |
| download | blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.tar.xz blast-e1bf674c16e3c8472b29574159c789cd3f0c64e0.zip | |
Updating to [email protected] and [email protected] with a new directory structure.
NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this.
Diffstat (limited to 'tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp')
| -rw-r--r-- | tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp b/tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp new file mode 100644 index 0000000..c08e3ba --- /dev/null +++ b/tools/ArtistTools/source/BlastPlugin/Window/FractureShellCutSettingsPanel.cpp @@ -0,0 +1,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() +{ + +} |