#include <DlgMaterialPropertiesImp.h>
Public Slots | |
void | on_ambientColor_changed () |
Sets the ambient color. | |
void | on_diffuseColor_changed () |
Sets the diffuse color. | |
void | on_emissiveColor_changed () |
Sets the emissive color. | |
void | on_shininess_valueChanged (int) |
Sets the current shininess. | |
void | on_specularColor_changed () |
Sets the specular color. | |
Public Member Functions | |
DlgMaterialPropertiesImp (const std::string &mat, QWidget *parent=0, Qt::WFlags fl=0) | |
Constructs a Gui::Dialog::DlgMaterialPropertiesImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
void | setViewProviders (const std::vector< Gui::ViewProvider * > &) |
Sets the document objects and their view providers to manipulate the material. | |
~DlgMaterialPropertiesImp () | |
Destroys the object and frees any allocated resources. |
Definition at line 35 of file DlgMaterialPropertiesImp.h.
DlgMaterialPropertiesImp::DlgMaterialPropertiesImp | ( | const std::string & | mat, | |
QWidget * | parent = 0 , |
|||
Qt::WFlags | fl = 0 | |||
) |
Constructs a Gui::Dialog::DlgMaterialPropertiesImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
Definition at line 46 of file DlgMaterialPropertiesImp.cpp.
References Gui::Dialog::Ui_DlgMaterialProperties::ambientColor, Gui::Dialog::Ui_DlgMaterialProperties::diffuseColor, Gui::Dialog::Ui_DlgMaterialProperties::emissiveColor, Gui::ColorButton::setModal(), Gui::Dialog::Ui_DlgMaterialProperties::setupUi(), Gui::Dialog::Ui_DlgMaterialProperties::specularColor, and Gui::Dialog::Ui_DlgMaterialProperties::textLabel1.
DlgMaterialPropertiesImp::~DlgMaterialPropertiesImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 64 of file DlgMaterialPropertiesImp.cpp.
void DlgMaterialPropertiesImp::on_ambientColor_changed | ( | ) | [slot] |
Sets the ambient color.
Definition at line 71 of file DlgMaterialPropertiesImp.cpp.
References App::Material::ambientColor, Gui::Dialog::Ui_DlgMaterialProperties::ambientColor, FemExample::b, Gui::ColorButton::color, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
void DlgMaterialPropertiesImp::on_diffuseColor_changed | ( | ) | [slot] |
Sets the diffuse color.
Definition at line 93 of file DlgMaterialPropertiesImp.cpp.
References FemExample::b, Gui::ColorButton::color, App::Material::diffuseColor, Gui::Dialog::Ui_DlgMaterialProperties::diffuseColor, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
void DlgMaterialPropertiesImp::on_emissiveColor_changed | ( | ) | [slot] |
Sets the emissive color.
Definition at line 115 of file DlgMaterialPropertiesImp.cpp.
References FemExample::b, Gui::ColorButton::color, App::Material::emissiveColor, Gui::Dialog::Ui_DlgMaterialProperties::emissiveColor, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
void DlgMaterialPropertiesImp::on_shininess_valueChanged | ( | int | sh | ) | [slot] |
Sets the current shininess.
Definition at line 159 of file DlgMaterialPropertiesImp.cpp.
References SketcherExample::f, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), App::PropertyMaterial::setValue(), App::Material::shininess, and Gui::Dialog::Ui_DlgMaterialProperties::shininess.
void DlgMaterialPropertiesImp::on_specularColor_changed | ( | ) | [slot] |
Sets the specular color.
Definition at line 137 of file DlgMaterialPropertiesImp.cpp.
References FemExample::b, Gui::ColorButton::color, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), App::PropertyMaterial::setValue(), App::Material::specularColor, and Gui::Dialog::Ui_DlgMaterialProperties::specularColor.
void DlgMaterialPropertiesImp::setViewProviders | ( | const std::vector< Gui::ViewProvider * > & | Obj | ) |
Sets the document objects and their view providers to manipulate the material.
Definition at line 176 of file DlgMaterialPropertiesImp.cpp.
References Gui::Dialog::Ui_DlgMaterialProperties::ambientColor, App::Material::ambientColor, FemExample::b, Gui::Dialog::Ui_DlgMaterialProperties::diffuseColor, App::Material::diffuseColor, Gui::Dialog::Ui_DlgMaterialProperties::emissiveColor, App::Material::emissiveColor, SketcherExample::f, App::PropertyMaterial::getClassTypeId(), App::Property::getTypeId(), App::PropertyMaterial::getValue(), Py::int, Base::Type::isDerivedFrom(), Gui::ColorButton::setColor(), App::Material::shininess, Gui::Dialog::Ui_DlgMaterialProperties::shininess, Gui::Dialog::Ui_DlgMaterialProperties::specularColor, and App::Material::specularColor.