Computer Assited Medical Intervention Tool Kit  version 4.0
Public Slots | Public Member Functions | Private Attributes | List of all members
VolumeRenderingWidget Class Reference

The widget allows the user to select the desired parameter for the transfer function. More...

#include <VolumeRenderingWidget.h>

Inherits QWidget.

Public Slots

virtual void addColor ()
 Color. More...
 
virtual void addGradientOpacity ()
 Gradient Opacity. More...
 
virtual void addTransparency ()
 Transparency. More...
 
virtual void ambiantLightSliderChanged (int)
 Ambiant Light Value Editing. More...
 
virtual void ambiantLightSpinBoxChanged (double)
 
virtual void diffuseLightSliderChanged (int)
 Diffuse Light Value Editing. More...
 
virtual void diffuseLightSpinBoxChanged (double)
 
virtual void load ()
 Load / Save mpas. More...
 
virtual void refreshVolumeRendering ()
 When to change volume rendering. More...
 
virtual void save ()
 
virtual void specularLightSliderChanged (int)
 Specular Light Value Editing. More...
 
virtual void specularLightSpinBoxChanged (double)
 

Public Member Functions

void addColor (int grayLevel, QColor color)
 
void addGradientOpacity (int grayLevel, double opacity)
 
void addTransparency (int grayLevel, double transparency)
 
double getAmbiant ()
 
QMap< int, QColor > getColorPoints ()
 
double getDiffuse ()
 
QMap< int, double > getOpacityPoints ()
 
double getSpecular ()
 
QMap< int, double > getTransparencyPoints ()
 
void load (QString filename)
 
void removeColorPoint (ColorPointWidget *point)
 
void removeOpacityPoint (GradientOpacityWidget *point)
 
void removeTransparencyPoint (TransparencyPointWidget *point)
 
void setAmbiant (double ambiant)
 
void setDefaultColors (QMap< int, QColor > defaultColors)
 
void setDefaultOpacities (QMap< int, double > defaultOpacities)
 
void setDefaultTransparencies (QMap< int, double > defaultTransparencies)
 
void setDiffuse (double diffuse)
 
void setSpecular (double specular)
 
void updateImage (camitk::ImageComponent *comp)
 
 VolumeRenderingWidget (VolumeRenderingAction *dad, QWidget *parent=0)
 Default construtor. More...
 
 ~VolumeRenderingWidget ()
 

Private Attributes

QList< ColorPointWidget * > colorPoints
 
VolumeRenderingActiondad
 
QList< GradientOpacityWidget * > gradientOpacities
 
camitk::ImageComponentmyImage
 
QList< TransparencyPointWidget * > transparencies
 
Ui_VolumeRenderingWidget ui
 

Detailed Description

The widget allows the user to select the desired parameter for the transfer function.

The transfer function allows one to select the desired (R,G,B,alpha) values of the rendered 3D image.

volume_rendering_2.png
The transfer function widget.

Constructor & Destructor Documentation

VolumeRenderingWidget::VolumeRenderingWidget ( VolumeRenderingAction dad,
QWidget *  parent = 0 
)

Default construtor.

References dad, myImage, and ui.

VolumeRenderingWidget::~VolumeRenderingWidget ( )

Member Function Documentation

void VolumeRenderingWidget::addColor ( int  grayLevel,
QColor  color 
)

References colorPoints, and ui.

void VolumeRenderingWidget::addColor ( )
virtualslot

Color.

References colorPoints, and ui.

Referenced by setDefaultColors().

void VolumeRenderingWidget::addGradientOpacity ( int  grayLevel,
double  opacity 
)

References gradientOpacities, and ui.

void VolumeRenderingWidget::addGradientOpacity ( )
virtualslot

Gradient Opacity.

References gradientOpacities, and ui.

Referenced by setDefaultOpacities().

void VolumeRenderingWidget::addTransparency ( int  grayLevel,
double  transparency 
)

References transparencies, and ui.

void VolumeRenderingWidget::addTransparency ( )
virtualslot

Transparency.

References transparencies, and ui.

Referenced by setDefaultTransparencies().

void VolumeRenderingWidget::ambiantLightSliderChanged ( int  value)
virtualslot

Ambiant Light Value Editing.

References ui.

void VolumeRenderingWidget::ambiantLightSpinBoxChanged ( double  value)
virtualslot

References ui.

void VolumeRenderingWidget::diffuseLightSliderChanged ( int  value)
virtualslot

Diffuse Light Value Editing.

References ui.

void VolumeRenderingWidget::diffuseLightSpinBoxChanged ( double  value)
virtualslot

References ui.

double VolumeRenderingWidget::getAmbiant ( )
QMap< int, QColor > VolumeRenderingWidget::getColorPoints ( )
double VolumeRenderingWidget::getDiffuse ( )
QMap< int, double > VolumeRenderingWidget::getOpacityPoints ( )
double VolumeRenderingWidget::getSpecular ( )
QMap< int, double > VolumeRenderingWidget::getTransparencyPoints ( )
void VolumeRenderingWidget::load ( QString  filename)
void VolumeRenderingWidget::load ( )
virtualslot

Load / Save mpas.

Referenced by updateImage().

void VolumeRenderingWidget::refreshVolumeRendering ( )
virtualslot

When to change volume rendering.

References VolumeRenderingAction::createVolumeRendering(), dad, and myImage.

void VolumeRenderingWidget::removeColorPoint ( ColorPointWidget point)

References colorPoints, and ui.

Referenced by ColorPointWidget::remove().

void VolumeRenderingWidget::removeOpacityPoint ( GradientOpacityWidget point)

References gradientOpacities, and ui.

Referenced by GradientOpacityWidget::remove().

void VolumeRenderingWidget::removeTransparencyPoint ( TransparencyPointWidget point)

References transparencies, and ui.

Referenced by TransparencyPointWidget::remove().

void VolumeRenderingWidget::save ( )
virtualslot
void VolumeRenderingWidget::setAmbiant ( double  ambiant)

References ui.

void VolumeRenderingWidget::setDefaultColors ( QMap< int, QColor >  defaultColors)

References addColor(), colorPoints, and ui.

Referenced by load().

void VolumeRenderingWidget::setDefaultOpacities ( QMap< int, double >  defaultOpacities)

References addGradientOpacity(), gradientOpacities, and ui.

Referenced by load().

void VolumeRenderingWidget::setDefaultTransparencies ( QMap< int, double >  defaultTransparencies)

References addTransparency(), transparencies, and ui.

Referenced by load().

void VolumeRenderingWidget::setDiffuse ( double  diffuse)

References ui.

void VolumeRenderingWidget::setSpecular ( double  specular)

References ui.

void VolumeRenderingWidget::specularLightSliderChanged ( int  value)
virtualslot

Specular Light Value Editing.

References ui.

void VolumeRenderingWidget::specularLightSpinBoxChanged ( double  value)
virtualslot

References ui.

void VolumeRenderingWidget::updateImage ( camitk::ImageComponent comp)

Member Data Documentation

QList<ColorPointWidget *> VolumeRenderingWidget::colorPoints
private
VolumeRenderingAction* VolumeRenderingWidget::dad
private
QList<GradientOpacityWidget *> VolumeRenderingWidget::gradientOpacities
private
camitk::ImageComponent* VolumeRenderingWidget::myImage
private
QList<TransparencyPointWidget *> VolumeRenderingWidget::transparencies
private
Ui_VolumeRenderingWidget VolumeRenderingWidget::ui
private

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