Computer Assited Medical Intervention Tool Kit
version 4.1
|
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 |
VolumeRenderingAction * | dad |
QList< GradientOpacityWidget * > | gradientOpacities |
camitk::ImageComponent * | myImage |
QList< TransparencyPointWidget * > | transparencies |
Ui_VolumeRenderingWidget | ui |
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.
VolumeRenderingWidget::VolumeRenderingWidget | ( | VolumeRenderingAction * | dad, |
QWidget * | parent = nullptr |
||
) |
|
override |
References colorPoints, gradientOpacities, transparencies, and ui.
void VolumeRenderingWidget::addColor | ( | int | grayLevel, |
QColor | color | ||
) |
References colorPoints, and ui.
|
virtualslot |
void VolumeRenderingWidget::addGradientOpacity | ( | int | grayLevel, |
double | opacity | ||
) |
References gradientOpacities, and ui.
|
virtualslot |
void VolumeRenderingWidget::addTransparency | ( | int | grayLevel, |
double | transparency | ||
) |
References transparencies, and ui.
|
virtualslot |
|
virtualslot |
Ambiant Light Value Editing.
References ui.
|
virtualslot |
References ui.
|
virtualslot |
Diffuse Light Value Editing.
References ui.
|
virtualslot |
References ui.
double VolumeRenderingWidget::getAmbiant | ( | ) |
References ui.
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, QColor > VolumeRenderingWidget::getColorPoints | ( | ) |
References colorPoints.
Referenced by VolumeRenderingAction::createVolumeRendering().
double VolumeRenderingWidget::getDiffuse | ( | ) |
References ui.
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, double > VolumeRenderingWidget::getOpacityPoints | ( | ) |
References gradientOpacities.
Referenced by VolumeRenderingAction::createVolumeRendering().
double VolumeRenderingWidget::getSpecular | ( | ) |
References ui.
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, double > VolumeRenderingWidget::getTransparencyPoints | ( | ) |
References transparencies.
Referenced by VolumeRenderingAction::createVolumeRendering().
void VolumeRenderingWidget::load | ( | QString | filename | ) |
References CAMITK_ERROR, setDefaultColors(), setDefaultOpacities(), setDefaultTransparencies(), and ui.
|
virtualslot |
Load / Save mpas.
Referenced by updateImage().
|
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().
|
virtualslot |
References CAMITK_ERROR, colorPoints, gradientOpacities, transparencies, and ui.
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.
|
virtualslot |
Specular Light Value Editing.
References ui.
|
virtualslot |
References ui.
void VolumeRenderingWidget::updateImage | ( | camitk::ImageComponent * | comp | ) |
References camitk::Component::getName(), load(), myImage, and ui.
Referenced by VolumeRenderingAction::process().
|
private |
Referenced by addColor(), getColorPoints(), removeColorPoint(), save(), setDefaultColors(), and ~VolumeRenderingWidget().
|
private |
Referenced by refreshVolumeRendering(), and VolumeRenderingWidget().
|
private |
Referenced by addGradientOpacity(), getOpacityPoints(), removeOpacityPoint(), save(), setDefaultOpacities(), and ~VolumeRenderingWidget().
|
private |
Referenced by refreshVolumeRendering(), updateImage(), and VolumeRenderingWidget().
|
private |
|
private |
Referenced by addColor(), addGradientOpacity(), addTransparency(), ambiantLightSliderChanged(), ambiantLightSpinBoxChanged(), diffuseLightSliderChanged(), diffuseLightSpinBoxChanged(), getAmbiant(), getDiffuse(), getSpecular(), load(), removeColorPoint(), removeOpacityPoint(), removeTransparencyPoint(), save(), setAmbiant(), setDefaultColors(), setDefaultOpacities(), setDefaultTransparencies(), setDiffuse(), setSpecular(), specularLightSliderChanged(), specularLightSpinBoxChanged(), updateImage(), VolumeRenderingWidget(), and ~VolumeRenderingWidget().