Computer Assisted Medical Intervention Tool Kit  version 6.0
Loading...
Searching...
No Matches
VolumeRenderingWidget Class Reference

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

#include <VolumeRenderingWidget.h>

Public Slots

virtual void addColor ()
 Color.
virtual void addGradientOpacity ()
 Gradient Opacity.
virtual void addTransparency ()
 Transparency.
virtual void ambientLightSliderChanged (int)
 ambient Light Value Editing
virtual void ambientLightSpinBoxChanged (double)
virtual void diffuseLightSliderChanged (int)
 Diffuse Light Value Editing.
virtual void diffuseLightSpinBoxChanged (double)
virtual void loadColorMap ()
 Load / Save / Reset colormaps.
virtual void refreshVolumeRendering ()
 When to change volume rendering.
virtual void resetColorMap ()
virtual void saveColorMap ()
virtual void specularLightSliderChanged (int)
 Specular Light Value Editing.
virtual void specularLightSpinBoxChanged (double)
virtual void visibilityToggled (bool)

Signals

void refresh ()
 emitted when the user clicked on the Refresh button

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
bool visibility ()
 get the current visibility value
 VolumeRenderingWidget (VolumeRenderingAction *myAction, QWidget *parent=nullptr)
 Default construtor.
 ~VolumeRenderingWidget () override

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.

The transfer function widget.

Constructor & Destructor Documentation

◆ VolumeRenderingWidget()

VolumeRenderingWidget::VolumeRenderingWidget ( VolumeRenderingAction * myAction,
QWidget * parent = nullptr )

Default construtor.

◆ ~VolumeRenderingWidget()

VolumeRenderingWidget::~VolumeRenderingWidget ( )
override

Member Function Documentation

◆ addColor [1/2]

void VolumeRenderingWidget::addColor ( )
virtualslot

Color.

Referenced by setDefaultColors().

◆ addColor() [2/2]

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

◆ addGradientOpacity [1/2]

void VolumeRenderingWidget::addGradientOpacity ( )
virtualslot

Gradient Opacity.

Referenced by setDefaultOpacities().

◆ addGradientOpacity() [2/2]

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

◆ addTransparency [1/2]

void VolumeRenderingWidget::addTransparency ( )
virtualslot

Transparency.

Referenced by setDefaultTransparencies().

◆ addTransparency() [2/2]

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

◆ ambientLightSliderChanged

void VolumeRenderingWidget::ambientLightSliderChanged ( int value)
virtualslot

ambient Light Value Editing

◆ ambientLightSpinBoxChanged

void VolumeRenderingWidget::ambientLightSpinBoxChanged ( double value)
virtualslot

◆ diffuseLightSliderChanged

void VolumeRenderingWidget::diffuseLightSliderChanged ( int value)
virtualslot

Diffuse Light Value Editing.

◆ diffuseLightSpinBoxChanged

void VolumeRenderingWidget::diffuseLightSpinBoxChanged ( double value)
virtualslot

◆ getAmbient()

double VolumeRenderingWidget::getAmbient ( )

◆ 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()

void VolumeRenderingWidget::load ( QString filename)

◆ loadColorMap

void VolumeRenderingWidget::loadColorMap ( )
virtualslot

Load / Save / Reset colormaps.

References load().

◆ refresh

void VolumeRenderingWidget::refresh ( )
signal

emitted when the user clicked on the Refresh button

Referenced by refreshVolumeRendering().

◆ refreshVolumeRendering

void VolumeRenderingWidget::refreshVolumeRendering ( )
virtualslot

When to change volume rendering.

References refresh().

◆ removeColorPoint()

void VolumeRenderingWidget::removeColorPoint ( ColorPointWidget * point)

◆ removeOpacityPoint()

void VolumeRenderingWidget::removeOpacityPoint ( GradientOpacityWidget * point)

◆ removeTransparencyPoint()

void VolumeRenderingWidget::removeTransparencyPoint ( TransparencyPointWidget * point)

◆ resetColorMap

void VolumeRenderingWidget::resetColorMap ( )
virtualslot

References load().

Referenced by updateUI().

◆ saveColorMap

void VolumeRenderingWidget::saveColorMap ( )
virtualslot

References CAMITK_ERROR.

◆ setAmbient()

void VolumeRenderingWidget::setAmbient ( double ambient)

◆ setDefaultColors()

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

References addColor().

Referenced by load().

◆ setDefaultOpacities()

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

References addGradientOpacity().

Referenced by load().

◆ setDefaultTransparencies()

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

References addTransparency().

Referenced by load().

◆ setDiffuse()

void VolumeRenderingWidget::setDiffuse ( double diffuse)

◆ setSpecular()

void VolumeRenderingWidget::setSpecular ( double specular)

◆ specularLightSliderChanged

void VolumeRenderingWidget::specularLightSliderChanged ( int value)
virtualslot

Specular Light Value Editing.

◆ specularLightSpinBoxChanged

void VolumeRenderingWidget::specularLightSpinBoxChanged ( double value)
virtualslot

◆ updateUI()

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().

◆ visibility()

bool VolumeRenderingWidget::visibility ( )

get the current visibility value

Referenced by visibilityToggled().

◆ visibilityToggled

void VolumeRenderingWidget::visibilityToggled ( bool visibility)
virtualslot

References visibility().


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