#include <DlgMaterialPropertiesImp.h>
Public Slots | |
void | on_ambientColor_changed () |
Sets the ambient color. More... | |
void | on_diffuseColor_changed () |
Sets the diffuse color. More... | |
void | on_emissiveColor_changed () |
Sets the emissive color. More... | |
void | on_shininess_valueChanged (int) |
Sets the current shininess. More... | |
void | on_specularColor_changed () |
Sets the specular color. More... | |
Public Member Functions | |
QColor | diffuseColor () const |
DlgMaterialPropertiesImp (const std::string &mat, QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::WindowFlags()) | |
Constructs a Gui::Dialog::DlgMaterialPropertiesImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
void | setViewProviders (const std::vector< Gui::ViewProvider * > &) |
Sets the document objects and their view providers to manipulate the material. More... | |
~DlgMaterialPropertiesImp () | |
Destroys the object and frees any allocated resources. More... | |
DlgMaterialPropertiesImp::DlgMaterialPropertiesImp | ( | const std::string & | mat, |
QWidget * | parent = nullptr , |
||
Qt::WindowFlags | fl = Qt::WindowFlags() |
||
) |
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.
DlgMaterialPropertiesImp::~DlgMaterialPropertiesImp | ( | ) |
Destroys the object and frees any allocated resources.
QColor DlgMaterialPropertiesImp::diffuseColor | ( | ) | const |
|
slot |
Sets the ambient color.
References App::Material::ambientColor, Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
|
slot |
Sets the diffuse color.
References App::Material::diffuseColor, Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
|
slot |
Sets the emissive color.
References App::Material::emissiveColor, Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), and App::PropertyMaterial::setValue().
|
slot |
Sets the current shininess.
References Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), App::PropertyMaterial::setValue(), and App::Material::shininess.
|
slot |
Sets the specular color.
References Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), App::PropertyMaterial::setValue(), and App::Material::specularColor.
void DlgMaterialPropertiesImp::setViewProviders | ( | const std::vector< Gui::ViewProvider * > & | Obj | ) |
Sets the document objects and their view providers to manipulate the material.
References App::Material::ambientColor, App::Color::b, App::Material::diffuseColor, App::Material::emissiveColor, App::Color::g, Base::Persistence::getClassTypeId(), Base::Persistence::getTypeId(), App::PropertyMaterial::getValue(), Base::Type::isDerivedFrom(), App::Color::r, App::Material::shininess, and App::Material::specularColor.