#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.
ctkMaterialPropertyWidget::ctkMaterialPropertyWidget |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
virtual ctkMaterialPropertyWidget::~ctkMaterialPropertyWidget |
( |
| ) |
|
|
virtual |
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.
double ctkMaterialPropertyWidget::ambient |
( |
| ) |
const |
void ctkMaterialPropertyWidget::ambientChanged |
( |
double |
newAmbient | ) |
|
|
signal |
bool ctkMaterialPropertyWidget::backfaceCulling |
( |
| ) |
const |
void ctkMaterialPropertyWidget::backfaceCullingChanged |
( |
bool |
newBackfaceCulling | ) |
|
|
signal |
QColor ctkMaterialPropertyWidget::color |
( |
| ) |
const |
void ctkMaterialPropertyWidget::colorChanged |
( |
QColor |
newColor | ) |
|
|
signal |
double ctkMaterialPropertyWidget::diffuse |
( |
| ) |
const |
void ctkMaterialPropertyWidget::diffuseChanged |
( |
double |
newDiffuse | ) |
|
|
signal |
bool ctkMaterialPropertyWidget::isBackfaceCullingVisible |
( |
| ) |
const |
bool ctkMaterialPropertyWidget::isColorVisible |
( |
| ) |
const |
bool ctkMaterialPropertyWidget::isOpacityVisible |
( |
| ) |
const |
virtual void ctkMaterialPropertyWidget::onAmbientChanged |
( |
double |
newAmbient | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onBackfaceCullingChanged |
( |
bool |
newBackFaceCulling | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onColorChanged |
( |
const QColor & |
newColor | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onDiffuseChanged |
( |
double |
newDiffuse | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onOpacityChanged |
( |
double |
newOpacity | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onSpecularChanged |
( |
double |
newSpecular | ) |
|
|
protectedvirtualslot |
virtual void ctkMaterialPropertyWidget::onSpecularPowerChanged |
( |
double |
newSpecularPower | ) |
|
|
protectedvirtualslot |
double ctkMaterialPropertyWidget::opacity |
( |
| ) |
const |
void ctkMaterialPropertyWidget::opacityChanged |
( |
double |
newOpacity | ) |
|
|
signal |
virtual void ctkMaterialPropertyWidget::resizeEvent |
( |
QResizeEvent * |
resize | ) |
|
|
protectedvirtual |
void ctkMaterialPropertyWidget::selectPreset |
( |
QListWidgetItem * |
| ) |
|
|
protectedslot |
void ctkMaterialPropertyWidget::setAmbient |
( |
double |
newAmbient | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setBackfaceCulling |
( |
bool |
enable | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setBackfaceCullingVisible |
( |
bool |
show | ) |
|
void ctkMaterialPropertyWidget::setColor |
( |
const QColor & |
newColor | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setColorVisible |
( |
bool |
show | ) |
|
void ctkMaterialPropertyWidget::setDiffuse |
( |
double |
newDiffuse | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setOpacity |
( |
double |
newOpacity | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setOpacityVisible |
( |
bool |
show | ) |
|
void ctkMaterialPropertyWidget::setSpecular |
( |
double |
newSpecular | ) |
|
|
slot |
void ctkMaterialPropertyWidget::setSpecularPower |
( |
double |
newSpecularPower | ) |
|
|
slot |
double ctkMaterialPropertyWidget::specular |
( |
| ) |
const |
void ctkMaterialPropertyWidget::specularChanged |
( |
double |
newSpecular | ) |
|
|
signal |
double ctkMaterialPropertyWidget::specularPower |
( |
| ) |
const |
void ctkMaterialPropertyWidget::specularPowerChanged |
( |
double |
newSpecularPower | ) |
|
|
signal |
QScopedPointer<ctkMaterialPropertyWidgetPrivate> ctkMaterialPropertyWidget::d_ptr |
|
protected |
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 45 of file ctkMaterialPropertyWidget.h.
bool ctkMaterialPropertyWidget::backfaceCulling |
|
readwrite |
bool ctkMaterialPropertyWidget::backfaceCullingVisible |
|
readwrite |
QColor ctkMaterialPropertyWidget::color |
|
readwrite |
bool ctkMaterialPropertyWidget::colorVisible |
|
readwrite |
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 51 of file ctkMaterialPropertyWidget.h.
double ctkMaterialPropertyWidget::opacity |
|
readwrite |
bool ctkMaterialPropertyWidget::opacityVisible |
|
readwrite |
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 55 of file ctkMaterialPropertyWidget.h.
double ctkMaterialPropertyWidget::specularPower |
|
readwrite |
The documentation for this class was generated from the following file: