22 #ifndef __ctkMaterialPropertyPreviewLabel_h
23 #define __ctkMaterialPropertyPreviewLabel_h
29 #include "ctkWidgetsExport.h"
31 class ctkMaterialPropertyPreviewLabelPrivate;
37 Q_PROPERTY(
double ambient READ ambient WRITE setAmbient)
38 Q_PROPERTY(
double diffuse READ diffuse WRITE setDiffuse)
39 Q_PROPERTY(
double specular READ specular WRITE setSpecular)
40 Q_PROPERTY(
double specularPower READ specularPower WRITE setSpecularPower)
42 Q_PROPERTY(QColor color READ color WRITE setColor)
43 Q_PROPERTY(
double opacity READ opacity WRITE setOpacity)
44 Q_PROPERTY(
double gridOpacity READ gridOpacity WRITE setGridOpacity)
49 double ambient,
double diffuse,
double specular,
double specularPower,
85 QScopedPointer<ctkMaterialPropertyPreviewLabelPrivate>
d_ptr;
void paintEvent(QPaintEvent *)
double specularPower() const
void setGridOpacity(double newGridOpacity)
double gridOpacity() const
void setAmbient(double newAbient)
Valid range: [0,1].
void setDiffuse(double newDiffuse)
Valid range: [0,1].
void setSpecularPower(double newSpecularPower)
Valid range: [1,inf[.
virtual QSize sizeHint() const
ctkMaterialPropertyPreviewLabel(QWidget *parent=0)
ctkMaterialPropertyPreviewLabel(const QColor &color, double opacity, double ambient, double diffuse, double specular, double specularPower, QWidget *parent=0)
void setColor(const QColor &newColor)
virtual int heightForWidth(int w) const
Reimplemented to make it square.
QScopedPointer< ctkMaterialPropertyPreviewLabelPrivate > d_ptr
void setOpacity(double newOpacity)
Valid range: [0, 1].
void setSpecular(double newSpecular)
Valid range: [0,1].
virtual ~ctkMaterialPropertyPreviewLabel()