Computer Assited Medical Intervention Tool Kit  version 4.1
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=nullptr)
 Default construtor. More...
 
 ~VolumeRenderingWidget () override
 

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::VolumeRenderingWidget ( VolumeRenderingAction dad,
QWidget *  parent = nullptr 
)

Default construtor.

References dad, myImage, and ui.

◆ ~VolumeRenderingWidget()

VolumeRenderingWidget::~VolumeRenderingWidget ( )
override

Member Function Documentation

◆ addColor() [1/2]

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

References colorPoints, and ui.

◆ addColor [2/2]

void VolumeRenderingWidget::addColor ( )
virtualslot

Color.

References colorPoints, and ui.

Referenced by setDefaultColors().

◆ addGradientOpacity() [1/2]

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

References gradientOpacities, and ui.

◆ addGradientOpacity [2/2]

void VolumeRenderingWidget::addGradientOpacity ( )
virtualslot

Gradient Opacity.

References gradientOpacities, and ui.

Referenced by setDefaultOpacities().

◆ addTransparency() [1/2]

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

References transparencies, and ui.

◆ addTransparency [2/2]

void VolumeRenderingWidget::addTransparency ( )
virtualslot

Transparency.

References transparencies, and ui.

Referenced by setDefaultTransparencies().

◆ ambiantLightSliderChanged

void VolumeRenderingWidget::ambiantLightSliderChanged ( int  value)
virtualslot

Ambiant Light Value Editing.

References ui.

◆ ambiantLightSpinBoxChanged

void VolumeRenderingWidget::ambiantLightSpinBoxChanged ( double  value)
virtualslot

References ui.

◆ diffuseLightSliderChanged

void VolumeRenderingWidget::diffuseLightSliderChanged ( int  value)
virtualslot

Diffuse Light Value Editing.

References ui.

◆ diffuseLightSpinBoxChanged

void VolumeRenderingWidget::diffuseLightSpinBoxChanged ( double  value)
virtualslot

References ui.

◆ getAmbiant()

double VolumeRenderingWidget::getAmbiant ( )

◆ getColorPoints()

QMap< int, QColor > VolumeRenderingWidget::getColorPoints ( )

◆ getDiffuse()

double VolumeRenderingWidget::getDiffuse ( )

◆ getOpacityPoints()

QMap< int, double > VolumeRenderingWidget::getOpacityPoints ( )

◆ getSpecular()

double VolumeRenderingWidget::getSpecular ( )

◆ getTransparencyPoints()

QMap< int, double > VolumeRenderingWidget::getTransparencyPoints ( )

◆ load() [1/2]

void VolumeRenderingWidget::load ( QString  filename)

◆ load [2/2]

void VolumeRenderingWidget::load ( )
virtualslot

Load / Save mpas.

Referenced by updateImage().

◆ refreshVolumeRendering

void VolumeRenderingWidget::refreshVolumeRendering ( )
virtualslot

When to change volume rendering.

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

◆ removeColorPoint()

void VolumeRenderingWidget::removeColorPoint ( ColorPointWidget point)

References colorPoints, and ui.

Referenced by ColorPointWidget::remove().

◆ removeOpacityPoint()

void VolumeRenderingWidget::removeOpacityPoint ( GradientOpacityWidget point)

References gradientOpacities, and ui.

Referenced by GradientOpacityWidget::remove().

◆ removeTransparencyPoint()

void VolumeRenderingWidget::removeTransparencyPoint ( TransparencyPointWidget point)

References transparencies, and ui.

Referenced by TransparencyPointWidget::remove().

◆ save

void VolumeRenderingWidget::save ( )
virtualslot

◆ setAmbiant()

void VolumeRenderingWidget::setAmbiant ( double  ambiant)

References ui.

◆ setDefaultColors()

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

References addColor(), colorPoints, and ui.

Referenced by load().

◆ setDefaultOpacities()

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

References addGradientOpacity(), gradientOpacities, and ui.

Referenced by load().

◆ setDefaultTransparencies()

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

References addTransparency(), transparencies, and ui.

Referenced by load().

◆ setDiffuse()

void VolumeRenderingWidget::setDiffuse ( double  diffuse)

References ui.

◆ setSpecular()

void VolumeRenderingWidget::setSpecular ( double  specular)

References ui.

◆ specularLightSliderChanged

void VolumeRenderingWidget::specularLightSliderChanged ( int  value)
virtualslot

Specular Light Value Editing.

References ui.

◆ specularLightSpinBoxChanged

void VolumeRenderingWidget::specularLightSpinBoxChanged ( double  value)
virtualslot

References ui.

◆ updateImage()

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

Member Data Documentation

◆ colorPoints

QList<ColorPointWidget*> VolumeRenderingWidget::colorPoints
private

◆ dad

VolumeRenderingAction* VolumeRenderingWidget::dad
private

◆ gradientOpacities

QList<GradientOpacityWidget*> VolumeRenderingWidget::gradientOpacities
private

◆ myImage

camitk::ImageComponent* VolumeRenderingWidget::myImage
private

◆ transparencies

QList<TransparencyPointWidget*> VolumeRenderingWidget::transparencies
private

◆ ui

Ui_VolumeRenderingWidget VolumeRenderingWidget::ui
private

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