#include <Libs/Widgets/ctkMaterialPropertyWidget.h>
|
QScopedPointer< ctkMaterialPropertyWidgetPrivate > | d_ptr |
|
ctkMaterialPropertyWidget is a panel to control material properties such as color and lighting coefficients. It contains a preview icon and a list of presets. Anytime a property is modified, the preview icon is updated with the new lighting coefficient.
Definition at line 39 of file ctkMaterialPropertyWidget.h.
◆ Superclass
◆ ctkMaterialPropertyWidget()
ctkMaterialPropertyWidget::ctkMaterialPropertyWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
◆ ~ctkMaterialPropertyWidget()
virtual ctkMaterialPropertyWidget::~ctkMaterialPropertyWidget |
( |
| ) |
|
|
virtual |
◆ addPreset()
void ctkMaterialPropertyWidget::addPreset |
( |
const QColor & |
color, |
|
|
double |
opacity, |
|
|
double |
ambient, |
|
|
double |
diffuse, |
|
|
double |
specular, |
|
|
double |
power, |
|
|
const QString & |
label |
|
) |
| |
Add a preset to the preset list. A preview icon will be generated and be added on the bottom right corner list. If space is needed, a scrollbar will appear. When the user clicks on the icon representing the preset, all the preset properties will be applied. If color is invalid, the preset color is synchronized with the current color property.
◆ ambient()
double ctkMaterialPropertyWidget::ambient |
( |
| ) |
const |
◆ ambientChanged
void ctkMaterialPropertyWidget::ambientChanged |
( |
double |
newAmbient | ) |
|
|
signal |
◆ backfaceCulling()
bool ctkMaterialPropertyWidget::backfaceCulling |
( |
| ) |
const |
◆ backfaceCullingChanged
void ctkMaterialPropertyWidget::backfaceCullingChanged |
( |
bool |
newBackfaceCulling | ) |
|
|
signal |
◆ color()
QColor ctkMaterialPropertyWidget::color |
( |
| ) |
const |
◆ colorChanged
void ctkMaterialPropertyWidget::colorChanged |
( |
QColor |
newColor | ) |
|
|
signal |
◆ diffuse()
double ctkMaterialPropertyWidget::diffuse |
( |
| ) |
const |
◆ diffuseChanged
void ctkMaterialPropertyWidget::diffuseChanged |
( |
double |
newDiffuse | ) |
|
|
signal |
◆ isBackfaceCullingVisible()
bool ctkMaterialPropertyWidget::isBackfaceCullingVisible |
( |
| ) |
const |
◆ isColorVisible()
bool ctkMaterialPropertyWidget::isColorVisible |
( |
| ) |
const |
◆ isOpacityVisible()
bool ctkMaterialPropertyWidget::isOpacityVisible |
( |
| ) |
const |
◆ onAmbientChanged
virtual void ctkMaterialPropertyWidget::onAmbientChanged |
( |
double |
newAmbient | ) |
|
|
protectedvirtualslot |
◆ onBackfaceCullingChanged
virtual void ctkMaterialPropertyWidget::onBackfaceCullingChanged |
( |
bool |
newBackFaceCulling | ) |
|
|
protectedvirtualslot |
◆ onColorChanged
virtual void ctkMaterialPropertyWidget::onColorChanged |
( |
const QColor & |
newColor | ) |
|
|
protectedvirtualslot |
◆ onDiffuseChanged
virtual void ctkMaterialPropertyWidget::onDiffuseChanged |
( |
double |
newDiffuse | ) |
|
|
protectedvirtualslot |
◆ onOpacityChanged
virtual void ctkMaterialPropertyWidget::onOpacityChanged |
( |
double |
newOpacity | ) |
|
|
protectedvirtualslot |
◆ onSpecularChanged
virtual void ctkMaterialPropertyWidget::onSpecularChanged |
( |
double |
newSpecular | ) |
|
|
protectedvirtualslot |
◆ onSpecularPowerChanged
virtual void ctkMaterialPropertyWidget::onSpecularPowerChanged |
( |
double |
newSpecularPower | ) |
|
|
protectedvirtualslot |
◆ opacity()
double ctkMaterialPropertyWidget::opacity |
( |
| ) |
const |
◆ opacityChanged
void ctkMaterialPropertyWidget::opacityChanged |
( |
double |
newOpacity | ) |
|
|
signal |
◆ resizeEvent()
virtual void ctkMaterialPropertyWidget::resizeEvent |
( |
QResizeEvent * |
resize | ) |
|
|
protectedvirtual |
◆ selectPreset
void ctkMaterialPropertyWidget::selectPreset |
( |
QListWidgetItem * |
| ) |
|
|
protectedslot |
◆ setAmbient
void ctkMaterialPropertyWidget::setAmbient |
( |
double |
newAmbient | ) |
|
|
slot |
◆ setBackfaceCulling
void ctkMaterialPropertyWidget::setBackfaceCulling |
( |
bool |
enable | ) |
|
|
slot |
◆ setBackfaceCullingVisible()
void ctkMaterialPropertyWidget::setBackfaceCullingVisible |
( |
bool |
show | ) |
|
◆ setColor
void ctkMaterialPropertyWidget::setColor |
( |
const QColor & |
newColor | ) |
|
|
slot |
◆ setColorVisible()
void ctkMaterialPropertyWidget::setColorVisible |
( |
bool |
show | ) |
|
◆ setDiffuse
void ctkMaterialPropertyWidget::setDiffuse |
( |
double |
newDiffuse | ) |
|
|
slot |
◆ setOpacity
void ctkMaterialPropertyWidget::setOpacity |
( |
double |
newOpacity | ) |
|
|
slot |
◆ setOpacityVisible()
void ctkMaterialPropertyWidget::setOpacityVisible |
( |
bool |
show | ) |
|
◆ setSpecular
void ctkMaterialPropertyWidget::setSpecular |
( |
double |
newSpecular | ) |
|
|
slot |
◆ setSpecularPower
void ctkMaterialPropertyWidget::setSpecularPower |
( |
double |
newSpecularPower | ) |
|
|
slot |
◆ specular()
double ctkMaterialPropertyWidget::specular |
( |
| ) |
const |
◆ specularChanged
void ctkMaterialPropertyWidget::specularChanged |
( |
double |
newSpecular | ) |
|
|
signal |
◆ specularPower()
double ctkMaterialPropertyWidget::specularPower |
( |
| ) |
const |
◆ specularPowerChanged
void ctkMaterialPropertyWidget::specularPowerChanged |
( |
double |
newSpecularPower | ) |
|
|
signal |
◆ d_ptr
QScopedPointer<ctkMaterialPropertyWidgetPrivate> ctkMaterialPropertyWidget::d_ptr |
|
protected |
◆ ambient
double ctkMaterialPropertyWidget::ambient |
|
readwrite |
This property holds the ambient lighting coefficient, it is a nondirectional property. Its range is [0,1], where 0 means no ambient light, and 1 means full ambient light Hint: A range of [0.1,0.5] is more realistic.
Definition at line 1 of file ctkMaterialPropertyWidget.h.
◆ backfaceCulling
bool ctkMaterialPropertyWidget::backfaceCulling |
|
readwrite |
◆ backfaceCullingVisible
bool ctkMaterialPropertyWidget::backfaceCullingVisible |
|
readwrite |
◆ color
QColor ctkMaterialPropertyWidget::color |
|
readwrite |
◆ colorVisible
bool ctkMaterialPropertyWidget::colorVisible |
|
readwrite |
◆ diffuse
double ctkMaterialPropertyWidget::diffuse |
|
readwrite |
This property holds the diffuse lighting coefficient. Its range is [0,1], where 0 means no diffuse light, and 1 means full diffuse light
Definition at line 1 of file ctkMaterialPropertyWidget.h.
◆ opacity
double ctkMaterialPropertyWidget::opacity |
|
readwrite |
◆ opacityVisible
bool ctkMaterialPropertyWidget::opacityVisible |
|
readwrite |
◆ specular
double ctkMaterialPropertyWidget::specular |
|
readwrite |
This property holds the specular lighting coefficient. Its range is [0,1], where 0 means no specular light, and 1 means full specular light
Definition at line 1 of file ctkMaterialPropertyWidget.h.
◆ specularPower
double ctkMaterialPropertyWidget::specularPower |
|
readwrite |
This property holds the power of specular lighting coefficient. Its range is [1,50].
Definition at line 1 of file ctkMaterialPropertyWidget.h.
The documentation for this class was generated from the following file: