The widget allows the user to select the desired parameter for the transfer function. More...
#include <VolumeRenderingWidget.h>
Public Slots | |
virtual void | addColor () |
Color. More... | |
virtual void | addGradientOpacity () |
Gradient Opacity. More... | |
virtual void | addTransparency () |
Transparency. More... | |
virtual void | ambientLightSliderChanged (int) |
ambient Light Value Editing More... | |
virtual void | ambientLightSpinBoxChanged (double) |
virtual void | diffuseLightSliderChanged (int) |
Diffuse Light Value Editing. More... | |
virtual void | diffuseLightSpinBoxChanged (double) |
virtual void | loadColorMap () |
Load / Save / Reset colormaps. More... | |
virtual void | refreshVolumeRendering () |
When to change volume rendering. More... | |
virtual void | resetColorMap () |
virtual void | saveColorMap () |
virtual void | specularLightSliderChanged (int) |
Specular Light Value Editing. More... | |
virtual void | specularLightSpinBoxChanged (double) |
virtual void | visibilityToggled (bool) |
Signals | |
void | refresh () |
emitted when the user clicked on the Refresh button More... | |
Public Member Functions | |
void | addColor (int grayLevel, QColor color) |
void | addGradientOpacity (int grayLevel, double opacity) |
void | addTransparency (int grayLevel, double transparency) |
double | getAmbient () |
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 | setAmbient (double ambient) |
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 | updateUI (QString name, bool existVR) |
update the UI using the given name (current image name) and its visibility existVR should be true if the volume rendering component of the image was alread created using a colormap visibility is given by the action's proprety More... | |
bool | visibility () |
get the current visibility value More... | |
VolumeRenderingWidget (VolumeRenderingAction *myAction, QWidget *parent=nullptr) | |
Default construtor. More... | |
~VolumeRenderingWidget () override | |
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 * | myAction, |
QWidget * | parent = nullptr |
||
) |
Default construtor.
|
override |
|
virtualslot |
void VolumeRenderingWidget::addColor | ( | int | grayLevel, |
QColor | color | ||
) |
|
virtualslot |
void VolumeRenderingWidget::addGradientOpacity | ( | int | grayLevel, |
double | opacity | ||
) |
|
virtualslot |
void VolumeRenderingWidget::addTransparency | ( | int | grayLevel, |
double | transparency | ||
) |
|
virtualslot |
ambient Light Value Editing
|
virtualslot |
|
virtualslot |
Diffuse Light Value Editing.
|
virtualslot |
double VolumeRenderingWidget::getAmbient | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, QColor > VolumeRenderingWidget::getColorPoints | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
double VolumeRenderingWidget::getDiffuse | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, double > VolumeRenderingWidget::getOpacityPoints | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
double VolumeRenderingWidget::getSpecular | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
QMap< int, double > VolumeRenderingWidget::getTransparencyPoints | ( | ) |
Referenced by VolumeRenderingAction::createVolumeRendering().
void VolumeRenderingWidget::load | ( | QString | filename | ) |
References CAMITK_ERROR, setDefaultColors(), setDefaultOpacities(), and setDefaultTransparencies().
Referenced by loadColorMap(), and resetColorMap().
|
virtualslot |
|
signal |
emitted when the user clicked on the Refresh button
Referenced by refreshVolumeRendering().
|
virtualslot |
When to change volume rendering.
References refresh().
void VolumeRenderingWidget::removeColorPoint | ( | ColorPointWidget * | point | ) |
void VolumeRenderingWidget::removeOpacityPoint | ( | GradientOpacityWidget * | point | ) |
void VolumeRenderingWidget::removeTransparencyPoint | ( | TransparencyPointWidget * | point | ) |
|
virtualslot |
References load().
Referenced by updateUI().
|
virtualslot |
References CAMITK_ERROR.
void VolumeRenderingWidget::setAmbient | ( | double | ambient | ) |
void VolumeRenderingWidget::setDefaultColors | ( | QMap< int, QColor > | defaultColors | ) |
References addColor().
Referenced by load().
void VolumeRenderingWidget::setDefaultOpacities | ( | QMap< int, double > | defaultOpacities | ) |
References addGradientOpacity().
Referenced by load().
void VolumeRenderingWidget::setDefaultTransparencies | ( | QMap< int, double > | defaultTransparencies | ) |
References addTransparency().
Referenced by load().
void VolumeRenderingWidget::setDiffuse | ( | double | diffuse | ) |
void VolumeRenderingWidget::setSpecular | ( | double | specular | ) |
|
virtualslot |
Specular Light Value Editing.
|
virtualslot |
void VolumeRenderingWidget::updateUI | ( | QString | name, |
bool | existVR | ||
) |
update the UI using the given name (current image name) and its visibility existVR should be true if the volume rendering component of the image was alread created using a colormap visibility is given by the action's proprety
References resetColorMap().
Referenced by VolumeRenderingAction::getWidget().
bool VolumeRenderingWidget::visibility | ( | ) |
get the current visibility value
Referenced by visibilityToggled().
|
virtualslot |