From e1bf674c16e3c8472b29574159c789cd3f0c64e0 Mon Sep 17 00:00:00 2001 From: Bryan Galdrikian Date: Fri, 24 Feb 2017 09:32:20 -0800 Subject: Updating to blast_source-windows@1.0.347-21749006 and blast_tools_and_samples-windows@1.0.347-21749006 with a new directory structure. NvBlast folder is gone, files have been moved to top level directory. README is changed to reflect this. --- .../BlastPlugin/Window/MaterialLibraryPanel.h | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 tools/ArtistTools/source/BlastPlugin/Window/MaterialLibraryPanel.h (limited to 'tools/ArtistTools/source/BlastPlugin/Window/MaterialLibraryPanel.h') diff --git a/tools/ArtistTools/source/BlastPlugin/Window/MaterialLibraryPanel.h b/tools/ArtistTools/source/BlastPlugin/Window/MaterialLibraryPanel.h new file mode 100644 index 0000000..edf1df9 --- /dev/null +++ b/tools/ArtistTools/source/BlastPlugin/Window/MaterialLibraryPanel.h @@ -0,0 +1,73 @@ +#ifndef MATERIALLIBRARYPANEL_H +#define MATERIALLIBRARYPANEL_H + +#include +#include "ProjectParams.h" + +class RenderMaterial; + +namespace Ui { +class MaterialLibraryPanel; +} + +class MaterialLibraryPanel : public QWidget +{ + Q_OBJECT + +public: + explicit MaterialLibraryPanel(QWidget *parent = 0); + ~MaterialLibraryPanel(); + void updateValues(); + + static MaterialLibraryPanel* ins(); + void addMaterial(std::string materialName, std::string diffuseTexture); + void removeMaterial(std::string name); + std::map& getRenderMaterials(){ return m_RenderMaterialMap; } + void deleteMaterials(); + void deleteMaterialMap(); + +private slots: + void on_btnAddMat_clicked(); + + void on_btnModifyMat_clicked(); + + void on_btnRemoveMat_clicked(); + + void on_listWidget_currentRowChanged(int currentRow); + + void on_btnDiffuseColor_clicked(); + + void on_btnDiffuseColorTex_clicked(); + + void on_btnDiffuseColorTexReload_clicked(); + + void on_btnDiffuseColorTexClear_clicked(); + + void on_btnSpecularColor_clicked(); + + void on_btnSpecularColorTex_clicked(); + + void on_btnSpecularColorTexReload_clicked(); + + void on_btnSpecularColorTexClear_clicked(); + + void on_spinSpecularShin_valueChanged(double arg1); + + void on_btnNormalColorTex_clicked(); + + void on_btnNormalColorTexReload_clicked(); + + void on_btnNormalColorTexClear_clicked(); + +private: + void _refreshMaterialValues(int idx); + BPPGraphicsMaterial* _getSelectedMaterial(); + + std::map m_RenderMaterialMap; + std::vector m_NeedDeleteRenderMaterials; + +private: + Ui::MaterialLibraryPanel *ui; +}; + +#endif // MATERIALLIBRARYPANEL_H -- cgit v1.2.3