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 (const QColor &color, double opacity, double ambient, double diffuse, double specular, double specularPower, QWidget *parent=0)
 
 ctkMaterialPropertyPreviewLabel (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() [1/2]

ctkMaterialPropertyPreviewLabel::ctkMaterialPropertyPreviewLabel ( QWidget *  parent = 0)

◆ ctkMaterialPropertyPreviewLabel() [2/2]

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

◆ ~ctkMaterialPropertyPreviewLabel()

virtual ctkMaterialPropertyPreviewLabel::~ctkMaterialPropertyPreviewLabel ( )
virtual

Member Function Documentation

◆ ambient()

double ctkMaterialPropertyPreviewLabel::ambient ( ) const

◆ color()

QColor ctkMaterialPropertyPreviewLabel::color ( ) const

◆ diffuse()

double ctkMaterialPropertyPreviewLabel::diffuse ( ) const

◆ draw()

void ctkMaterialPropertyPreviewLabel::draw ( QImage &  image)
protected

◆ gridOpacity()

double ctkMaterialPropertyPreviewLabel::gridOpacity ( ) const

◆ heightForWidth()

virtual int ctkMaterialPropertyPreviewLabel::heightForWidth ( int  w) const
virtual

Reimplemented to make it square.

◆ opacity()

double ctkMaterialPropertyPreviewLabel::opacity ( ) const

◆ paintEvent()

void ctkMaterialPropertyPreviewLabel::paintEvent ( QPaintEvent *  )
protected

◆ setAmbient

void ctkMaterialPropertyPreviewLabel::setAmbient ( double  newAbient)
slot

Valid range: [0,1].

◆ setColor

void ctkMaterialPropertyPreviewLabel::setColor ( const QColor &  newColor)
slot

◆ setDiffuse

void ctkMaterialPropertyPreviewLabel::setDiffuse ( double  newDiffuse)
slot

Valid range: [0,1].

◆ setGridOpacity

void ctkMaterialPropertyPreviewLabel::setGridOpacity ( double  newGridOpacity)
slot

◆ setOpacity

void ctkMaterialPropertyPreviewLabel::setOpacity ( double  newOpacity)
slot

Valid range: [0, 1].

◆ setSpecular

void ctkMaterialPropertyPreviewLabel::setSpecular ( double  newSpecular)
slot

Valid range: [0,1].

◆ setSpecularPower

void ctkMaterialPropertyPreviewLabel::setSpecularPower ( double  newSpecularPower)
slot

Valid range: [1,inf[.

◆ sizeHint()

virtual QSize ctkMaterialPropertyPreviewLabel::sizeHint ( ) const
virtual

◆ specular()

double ctkMaterialPropertyPreviewLabel::specular ( ) const

◆ specularPower()

double ctkMaterialPropertyPreviewLabel::specularPower ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<ctkMaterialPropertyPreviewLabelPrivate> ctkMaterialPropertyPreviewLabel::d_ptr
protected

Definition at line 85 of file ctkMaterialPropertyPreviewLabel.h.

Property Documentation

◆ ambient

double ctkMaterialPropertyPreviewLabel::ambient
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ color

QColor ctkMaterialPropertyPreviewLabel::color
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ diffuse

double ctkMaterialPropertyPreviewLabel::diffuse
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ gridOpacity

double ctkMaterialPropertyPreviewLabel::gridOpacity
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ opacity

double ctkMaterialPropertyPreviewLabel::opacity
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ specular

double ctkMaterialPropertyPreviewLabel::specular
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.

◆ specularPower

double ctkMaterialPropertyPreviewLabel::specularPower
readwrite

Definition at line 1 of file ctkMaterialPropertyPreviewLabel.h.


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