CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
ctkMaterialPropertyPreviewLabel Class Reference

#include <Libs/Widgets/ctkMaterialPropertyPreviewLabel.h>

Inheritance diagram for ctkMaterialPropertyPreviewLabel:
Inheritance graph
[legend]
Collaboration diagram for ctkMaterialPropertyPreviewLabel:
Collaboration graph
[legend]

Public Slots

void setAmbient (double newAbient)
 Valid range: [0,1]. More...
 
void setColor (const QColor &newColor)
 
void setDiffuse (double newDiffuse)
 Valid range: [0,1]. More...
 
void setGridOpacity (double newGridOpacity)
 
void setOpacity (double newOpacity)
 Valid range: [0, 1]. More...
 
void setSpecular (double newSpecular)
 Valid range: [0,1]. More...
 
void setSpecularPower (double newSpecularPower)
 Valid range: [1,inf[. More...
 

Public Member Functions

double ambient () const
 
QColor color () const
 
 ctkMaterialPropertyPreviewLabel (QWidget *parent=0)
 
 ctkMaterialPropertyPreviewLabel (const QColor &color, double opacity, double ambient, double diffuse, double specular, double specularPower, QWidget *parent=0)
 
double diffuse () const
 
double gridOpacity () const
 
virtual int heightForWidth (int w) const
 Reimplemented to make it square. More...
 
double opacity () const
 
virtual QSize sizeHint () const
 
double specular () const
 
double specularPower () const
 
virtual ~ctkMaterialPropertyPreviewLabel ()
 

Protected Member Functions

void draw (QImage &image)
 
void paintEvent (QPaintEvent *)
 

Protected Attributes

QScopedPointer< ctkMaterialPropertyPreviewLabelPrivate > d_ptr
 

Properties

double ambient
 
QColor color
 
double diffuse
 
double gridOpacity
 
double opacity
 
double specular
 
double specularPower
 

Detailed Description

Definition at line 34 of file ctkMaterialPropertyPreviewLabel.h.

Constructor & Destructor Documentation

ctkMaterialPropertyPreviewLabel::ctkMaterialPropertyPreviewLabel ( QWidget *  parent = 0)
ctkMaterialPropertyPreviewLabel::ctkMaterialPropertyPreviewLabel ( const QColor &  color,
double  opacity,
double  ambient,
double  diffuse,
double  specular,
double  specularPower,
QWidget *  parent = 0 
)
virtual ctkMaterialPropertyPreviewLabel::~ctkMaterialPropertyPreviewLabel ( )
virtual

Member Function Documentation

double ctkMaterialPropertyPreviewLabel::ambient ( ) const
QColor ctkMaterialPropertyPreviewLabel::color ( ) const
double ctkMaterialPropertyPreviewLabel::diffuse ( ) const
void ctkMaterialPropertyPreviewLabel::draw ( QImage &  image)
protected
double ctkMaterialPropertyPreviewLabel::gridOpacity ( ) const
virtual int ctkMaterialPropertyPreviewLabel::heightForWidth ( int  w) const
virtual

Reimplemented to make it square.

double ctkMaterialPropertyPreviewLabel::opacity ( ) const
void ctkMaterialPropertyPreviewLabel::paintEvent ( QPaintEvent *  )
protected
void ctkMaterialPropertyPreviewLabel::setAmbient ( double  newAbient)
slot

Valid range: [0,1].

void ctkMaterialPropertyPreviewLabel::setColor ( const QColor &  newColor)
slot
void ctkMaterialPropertyPreviewLabel::setDiffuse ( double  newDiffuse)
slot

Valid range: [0,1].

void ctkMaterialPropertyPreviewLabel::setGridOpacity ( double  newGridOpacity)
slot
void ctkMaterialPropertyPreviewLabel::setOpacity ( double  newOpacity)
slot

Valid range: [0, 1].

void ctkMaterialPropertyPreviewLabel::setSpecular ( double  newSpecular)
slot

Valid range: [0,1].

void ctkMaterialPropertyPreviewLabel::setSpecularPower ( double  newSpecularPower)
slot

Valid range: [1,inf[.

virtual QSize ctkMaterialPropertyPreviewLabel::sizeHint ( ) const
virtual
double ctkMaterialPropertyPreviewLabel::specular ( ) const
double ctkMaterialPropertyPreviewLabel::specularPower ( ) const

Member Data Documentation

QScopedPointer<ctkMaterialPropertyPreviewLabelPrivate> ctkMaterialPropertyPreviewLabel::d_ptr
protected

Definition at line 85 of file ctkMaterialPropertyPreviewLabel.h.

Property Documentation

double ctkMaterialPropertyPreviewLabel::ambient
readwrite

Definition at line 37 of file ctkMaterialPropertyPreviewLabel.h.

QColor ctkMaterialPropertyPreviewLabel::color
readwrite

Definition at line 42 of file ctkMaterialPropertyPreviewLabel.h.

double ctkMaterialPropertyPreviewLabel::diffuse
readwrite

Definition at line 38 of file ctkMaterialPropertyPreviewLabel.h.

double ctkMaterialPropertyPreviewLabel::gridOpacity
readwrite

Definition at line 44 of file ctkMaterialPropertyPreviewLabel.h.

double ctkMaterialPropertyPreviewLabel::opacity
readwrite

Definition at line 43 of file ctkMaterialPropertyPreviewLabel.h.

double ctkMaterialPropertyPreviewLabel::specular
readwrite

Definition at line 39 of file ctkMaterialPropertyPreviewLabel.h.

double ctkMaterialPropertyPreviewLabel::specularPower
readwrite

Definition at line 40 of file ctkMaterialPropertyPreviewLabel.h.


The documentation for this class was generated from the following file: