 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
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 setColor(const QColor &newColor)
virtual QSize sizeHint() const
void setSpecularPower(double newSpecularPower)
Valid range: [1,inf[.
void setGridOpacity(double newGridOpacity)
void setAmbient(double newAbient)
Valid range: [0,1].
double gridOpacity() const
QScopedPointer< ctkMaterialPropertyPreviewLabelPrivate > d_ptr
void setSpecular(double newSpecular)
Valid range: [0,1].
void setOpacity(double newOpacity)
Valid range: [0, 1].
ctkMaterialPropertyPreviewLabel(QWidget *parent=0)
virtual ~ctkMaterialPropertyPreviewLabel()
void paintEvent(QPaintEvent *)
void setDiffuse(double newDiffuse)
Valid range: [0,1].
ctkMaterialPropertyPreviewLabel(const QColor &color, double opacity, double ambient, double diffuse, double specular, double specularPower, QWidget *parent=0)
virtual int heightForWidth(int w) const
Reimplemented to make it square.
double specularPower() const