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 /NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.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 'NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.cpp')
| -rw-r--r-- | NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.cpp b/NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.cpp deleted file mode 100644 index 1f7068d..0000000 --- a/NvBlast/tools/ArtistTools/source/BlastPlugin/Window/FractureGeneralPanel.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "FractureGeneralPanel.h" -#include "ui_FractureGeneralPanel.h" -#include "ProjectParams.h" - -FractureGeneralPanel::FractureGeneralPanel(QWidget *parent) : - QWidget(parent), - ui(new Ui::FractureGeneralPanel) -{ - ui->setupUi(this); -} - -FractureGeneralPanel::~FractureGeneralPanel() -{ - delete ui; -} - -void FractureGeneralPanel::updateValues() -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - - ui->comboBoxFracturePreset->setCurrentIndex(fractureGeneral.fracturePreset); - ui->comboBoxFractureType->setCurrentIndex(fractureGeneral.fractureType); - ui->checkBoxAddDepth->setChecked(fractureGeneral.addDepth); - ui->checkBoxPerChunk->setChecked(fractureGeneral.perChunk); - ui->checkBoxNewMatID->setChecked(fractureGeneral.newMatID); - ui->comboBoxApplyMaterial->setCurrentIndex(fractureGeneral.applyMaterial); -} - -void FractureGeneralPanel::on_comboBoxFracturePreset_currentIndexChanged(int index) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.fracturePreset = index; -} - -void FractureGeneralPanel::on_comboBoxFractureType_currentIndexChanged(int index) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.fractureType = index; -} - -void FractureGeneralPanel::on_checkBoxAddDepth_stateChanged(int arg1) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.addDepth = (arg1 != 0 ? true : false); -} - -void FractureGeneralPanel::on_checkBoxPerChunk_stateChanged(int arg1) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.perChunk = (arg1 != 0 ? true : false); -} - -void FractureGeneralPanel::on_checkBoxNewMatID_stateChanged(int arg1) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.newMatID = (arg1 != 0 ? true:false); -} - -void FractureGeneralPanel::on_comboBoxApplyMaterial_currentIndexChanged(int index) -{ - BPPFractureGeneral& fractureGeneral = BlastProject::ins().getParams().fracture.general; - fractureGeneral.applyMaterial = index; -} |